10 bit pixel format and color space

We have two 10 bit pixfmt for decoder:


with colorspace BT.601

i decode 4K hevc yuv420p10le bt2020 with capture dma buffer (NvBufferColorFormat_NV12_10LE),
then comosite decoded buffer on V4L2_PIX_FMT_YUV420M dma buffer (NvBufferColorFormat_YUV420) for encoding to FHD h264.

It’work fine.
But i see faded colors in player after encoder.

is there a nv buffer color format suitable for bt2020?

Transcoded image:

Original image:

May be losses occur at the stage of composite buffer with NvBufferColorFormat_NV12_10LE from the decoder to the encoder buffer with NvBufferColorFormat_YUV420?

There is a format defined for 2020:

There is sample code in drm rendering. Please check 08_video_dec_drm.

head -1 /etc/nv_tegra_release
# R32 (release), REVISION: 2.3, GCID: 17644089, BOARD: t186ref, EABI: aarch64, DATE: Tue Nov  5 21:48:17 UTC 2019

this is my version. i don’t find NvBufferColorFormat_NV12_10LE_2020 in nvbuf_utils.h

It is supported in r32.3.1. You would need to upgrade to r32.3.1(Jetpack4.3).