I am developing a plugin for DeepStream SDK.
DeepStream SDK dsexample_lib I am referring to it.
/opt/nvidia/deepstream/deepstream-4.0/sources/gst-plugins/gst-dsexample
I am using Jetson Nano.
I am using a file in the H.264 encoded yuv420 color format.
The sample plug-in is executed with the following command.
$ deepstream-app -c source8_1080p_dec_infer-resnet_tracker_tiled_display_fp16_nano.txt
The following is added to the config file.
[ds-example]
enable=1
processing-width=1920
processing-height=1080
full-frame=0
unique-id=15
gpu-id=0
Ask about the “sourface” value at line 633 of gstdsexample.cpp
I want to read Y pixel data.
Q1) Should I refer to surface-> surfaceList-> mappedAddr-> addr [0]?
I understand that I use the NvSurfaceMap () API to refer to surface-> surfaceList-> mappedAddr-> addr [0].
Ask about the value of surface-> surfaceList-> layout on line 633 of gstdsexample.cpp.
Values are NVBUF_LAYOUT_PITCH orNVBUF_LAYOUT_BLOCK_LINEAR.
Q2)Please tell me the order of pixel data for NVBUF_LAYOUT_PITCH and NVBUF_LAYOUT_BLOCK_LINEAR. (NV12)