HEVC P010LE lossless encoding support on Xavier NX

I want to compress depth data (10bit) as descibed here using the HEVC hardware encoder on Xavier NX but it is unclear to me if HEVC P010LE lossless compression is available.

Can someone please give me a definitive answer or reference me to the relevant docs? Thank you!

Hi,
On Xavier NX, we support HEVC P01010LE hardware encoding but does not support lossless encoding. For lossless encoing, we support encoding YUV444 into H264. Please refer to
H.264 lossless encoding - #2 by DaneLLL

Thank you @DaneLLL!

H.264 4:4:4 support is only planar and 10-bit 4:2:0 is not supported if I’m not mistaken. That would require data reordering as we need more than 8bits for depth.
However, near-lossless H.265 is more suitable as there would be no reordering involved.

Do you have any pointers for H.265 settings to get near-lossless compression? Thanks again.

Hi,
You may try to set qp=0 for all frames. Please refer to the pipeline:
Nvv4l2h265enc quant-p-frames - #3 by DaneLLL
and try quant-i-frames=0 quant-p-frames=0

Thank you. I will try!