I am developing a plugin for DeepStream SDK.
DeepStream SDK dsexample_lib I am referring to it.
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.
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 ?
I understand that I use the NvSurfaceMap () API to refer to surface-> surfaceList-> mappedAddr-> addr .
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)