I am using Nvidia Video Codec to encode RGB stream to H.264 (I convert RGB frames to NV12 format before encoding).
I would like to enable lossless:
I changed the buffer format from NV_ENC_BUFFER_FORMAT_NV12 to NV_ENC_BUFFER_FORMAT_YUV444.
I set QP to 0 and RC_mode to NV_ENC_PARAMS_RC_CONSTQP
I set the presetGUID to NV_ENC_PRESET_LOSSLESS_DEFAULT_GUID and the profileGUID to NV_ENC_H264_PROFILE_HIGH_444_GUID.
I set the flags qpPrimeYZeroTransformBypassFlag to 1 and chromaFormatIDC to 3.
But I got the error NV_ENC_ERR_INVALID_PARAM when nvEncEncodePicture() is executing.
If I enable the separate colour plane mode (separateColourPlaneFlag = 1), the error is not displayed.
Is it mandatory to enable separateColourPlaneFlag for lossless mode ?