Hi,
The decoder output is NV12 and it calls NvBufferTransform() to convert to other format. There is an option of selecting format:
-f <out_pixfmt> 1 NV12, 2 I420, 3 NV16, 4 NV24 [Default = 1]
And the mapping is
if (ctx->out_pixfmt == 1)
input_params.colorFormat = NvBufferColorFormat_NV12;
else if (ctx->out_pixfmt == 2)
input_params.colorFormat = NvBufferColorFormat_YUV420;
else if (ctx->out_pixfmt == 3)
input_params.colorFormat = NvBufferColorFormat_NV16;
else if (ctx->out_pixfmt == 4)
input_params.colorFormat = NvBufferColorFormat_NV24;