Struct AVCodecHWConfig
#[repr(C)]pub struct AVCodecHWConfig {
pub pix_fmt: i32,
pub methods: i32,
pub device_type: u32,
}
Fields§
§pix_fmt: i32
For 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: i32
Bit set of AV_CODEC_HW_CONFIG_METHOD_* flags, describing the possible setup methods which can be used with this configuration.
device_type: u32
The 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§
§impl Clone for AVCodecHWConfig
impl Clone for AVCodecHWConfig
§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 more§impl Debug for AVCodecHWConfig
impl Debug for AVCodecHWConfig
impl Copy for AVCodecHWConfig
Auto Trait Implementations§
impl Freeze for AVCodecHWConfig
impl RefUnwindSafe for AVCodecHWConfig
impl Send for AVCodecHWConfig
impl Sync for AVCodecHWConfig
impl Unpin for AVCodecHWConfig
impl UnwindSafe for AVCodecHWConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more