Skip to main content

set_bit_depth

Function set_bit_depth 

Source
fn set_bit_depth(
    config: &mut NV_ENC_CONFIG,
    codec: Codec,
    bit_depth: u32,
    api: (u32, u32),
)
Expand description

Stamp an HEVC or AV1 config with bit_depth as API api reads it. From 12.2 the session names its input and output depths; before it HEVC carries the output’s minus eight in the bitfield the pinned layout keeps as reserved3, its input following the buffer format, and AV1 (12.0 and 12.1) the input’s and the output’s in the bits 13.0 gave its LTR, SVC and HDR flags. The offsets count from the codec config’s first bitfield, at byte 16.