pub enum CodecType {
Encoder(VideoEncoderType),
Decoder(VideoDecoderType),
}Variants§
Encoder(VideoEncoderType)
Decoder(VideoDecoderType)
Implementations§
Source§impl CodecType
impl CodecType
pub fn is_supported(&self) -> bool
pub const fn is_encoder(&self) -> bool
pub fn is_qsv(self) -> bool
pub fn is_hardware(&self) -> bool
pub unsafe fn find_av_codec(&self) -> *const AVCodec
Trait Implementations§
Source§impl From<VideoDecoderType> for CodecType
impl From<VideoDecoderType> for CodecType
Source§fn from(value: VideoDecoderType) -> Self
fn from(value: VideoDecoderType) -> Self
Converts to this type from the input type.
Source§impl From<VideoEncoderType> for CodecType
impl From<VideoEncoderType> for CodecType
Source§fn from(value: VideoEncoderType) -> Self
fn from(value: VideoEncoderType) -> Self
Converts to this type from the input type.
impl Copy for CodecType
impl Eq for CodecType
impl StructuralPartialEq for CodecType
Auto Trait Implementations§
impl Freeze for CodecType
impl RefUnwindSafe for CodecType
impl Send for CodecType
impl Sync for CodecType
impl Unpin for CodecType
impl UnwindSafe for CodecType
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