How can I copy the Blocklinear type NvSciBuf data to cuda

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
[*] DRIVE OS 6.0.4 SDK
other

Target Operating System
[*] Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
[*] other

SDK Manager Version
1.9.0.10816
[*] other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
[*] other

I use nvm_ide_sci to capture an image, I set the type as BlockLinear in NvSciBuf, I don’t want to use VIC to convert to PitchLinear, I want to deal with it directly with cuda, please ask how to parse the format of BlockLinear with cuda。

Dear @haihua.wei,
As I understand you want to use NvSciBuf with CUDA directly for further processing. Does cudaNvSci sample(/usr/local/cuda/samples/0_Simple/cudaNvSci) helps for your case?

Okay, I’ll take a look at this

Sample is NvSciBufImage_PitchLinearType,but we want NvSciBufImage_BlockLinearType

Dear @haihua.wei,
I see below snippet in sample. Could you confirm?

void setImageBufAttrList(uint32_t width, uint32_t height) {
NvSciBufType bufType = NvSciBufType_Image;
NvSciBufAttrValImageLayoutType layout = NvSciBufImage_BlockLinearType;
NvSciBufAttrValAccessPerm perm = NvSciBufAccessPerm_ReadWrite;

See, let’s look into it