Encode 16-bit greyscale?

Is there a way to encode 16-bit greyscale pixels? I don’t see anything suitable in nvEncodeAPI.h. Would the closest be 10-bit, using NV_ENC_BUFFER_FORMAT_YUV420_10BIT?

Hi,
You are correct. Encoding 16-bit GRAY is not supported. Please convert data to YUV420 8-bit or 10-bit.