Constant rsmpeg::ffi::AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX[][src]

pub const AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX: u32 = 2; // 0x0000_0002u32
Expand description

The codec supports this format via the hw_frames_ctx interface.

When selecting this format for a decoder, AVCodecContext.hw_frames_ctx should be set to a suitable frames context inside the get_format() callback. The frames context must have been created on a device of the specified type.

When selecting this format for an encoder, AVCodecContext.hw_frames_ctx should be set to the context which will be used for the input frames before calling avcodec_open2().