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

Target Operating System
[yes] Linux

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

SDK Manager Version

Host Machine Version
[yes] native Ubuntu 18.04

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,
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.