Struct ffmpeg_sys_next::AVCodecHWConfig
source · #[repr(C)]pub struct AVCodecHWConfig {
pub pix_fmt: AVPixelFormat,
pub methods: c_int,
pub device_type: AVHWDeviceType,
}Fields§
§pix_fmt: AVPixelFormatFor decoders, a hardware pixel format which that decoder may be able to decode to if suitable hardware is available.
For encoders, a pixel format which the encoder may be able to accept. If set to AV_PIX_FMT_NONE, this applies to all pixel formats supported by the codec.
methods: c_intBit set of AV_CODEC_HW_CONFIG_METHOD_* flags, describing the possible setup methods which can be used with this configuration.
device_type: AVHWDeviceTypeThe device type associated with the configuration.
Must be set for AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX and AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX, otherwise unused.
Trait Implementations§
source§impl Clone for AVCodecHWConfig
impl Clone for AVCodecHWConfig
source§fn clone(&self) -> AVCodecHWConfig
fn clone(&self) -> AVCodecHWConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AVCodecHWConfig
impl Debug for AVCodecHWConfig
source§impl PartialEq<AVCodecHWConfig> for AVCodecHWConfig
impl PartialEq<AVCodecHWConfig> for AVCodecHWConfig
source§fn eq(&self, other: &AVCodecHWConfig) -> bool
fn eq(&self, other: &AVCodecHWConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.