#[repr(C)]pub struct AVHWAccel {
pub name: *const c_char,
pub type_: AVMediaType,
pub id: AVCodecID,
pub pix_fmt: AVPixelFormat,
pub capabilities: c_int,
}展开描述
@defgroup lavc_hwaccel AVHWAccel
@note Nothing in this structure should be accessed by the user. At some point in future it will not be externally visible at all.
@{
Fields§
§name: *const c_charName of the hardware accelerated codec. The name is globally unique among encoders and among decoders (but an encoder and a decoder can share the same name).
type_: AVMediaTypeType of codec implemented by the hardware accelerator.
See AVMEDIA_TYPE_xxx
id: AVCodecIDCodec implemented by the hardware accelerator.
See AV_CODEC_ID_xxx
pix_fmt: AVPixelFormatSupported pixel format.
Only hardware accelerated formats are supported here.
capabilities: c_intHardware accelerated codec capabilities. see AV_HWACCEL_CODEC_CAP_*
trait 实现§
impl Copy for AVHWAccel
impl Eq for AVHWAccel
impl StructuralPartialEq for AVHWAccel
自动 trait 实现§
impl Freeze for AVHWAccel
impl RefUnwindSafe for AVHWAccel
impl !Send for AVHWAccel
impl !Sync for AVHWAccel
impl Unpin for AVHWAccel
impl UnsafeUnpin for AVHWAccel
impl UnwindSafe for AVHWAccel
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
从拥有的值可变地借用。 阅读更多