Skip to main content

codes_ten_bit

Function codes_ten_bit 

Source
unsafe fn codes_ten_bit(
    function_list: &NV_ENCODE_API_FUNCTION_LIST,
    session: *mut c_void,
    codec: Codec,
    guid: GUID,
) -> bool
Expand description

Whether a session of codec codes 10 bits: HEVC and AV1 where the device reports it, at whichever API the session negotiated (set_bit_depth). The session converts its 8-bit RGB to 10-bit samples itself (ConvertLayout). H.264 stays 8-bit, which only the newest engines code at 10.