Nvmedia: image data

Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):
Software Version
DRIVE OS Linux 5.2.0
[yes] DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
[yes] Linux
QNX
other

Hardware Platform
[yes] NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
[yes] 1.6.0.8170
1.5.1.7815
1.5.0.7774
other

Host Machine Version
[yes] native Ubuntu 18.04
other

How can I get image data which I need to memcpy to GPU or CPU.

Dear @wang_chen2,
Is it like you want to obtain camera captured image and do some processing on GPU or CUDA?

Dear SivaRamaKrishnaNV,
Yes.
Now, I am review image_jpgdec demo and in this demo the jpg image decoded into nvmediaImage struct. But I do not understand how to get image data in NvMediaImage struct.

Please refer to NvMedia Surface. Thanks.