#[repr(C)]
pub enum Codec {
Show 18 variants
MPEG1,
MPEG2,
MPEG4,
VC1,
H264,
JPEG,
H264_SVC,
H264_MVC,
HEVC,
VP8,
VP9,
AV1,
NumCodecs,
Uncompressed_YUV420,
Uncompressed_YV12,
Uncompressed_NV12,
Uncompressed_YUYV,
Uncompressed_UYVY,
}
Expand description
Video codecs supported by cudacodec::VideoReader .
Variants
MPEG1
MPEG2
MPEG4
VC1
H264
JPEG
H264_SVC
H264_MVC
HEVC
VP8
VP9
AV1
NumCodecs
Uncompressed_YUV420
Y,U,V (4:2:0)
Uncompressed_YV12
Y,V,U (4:2:0)
Uncompressed_NV12
Y,UV (4:2:0)
Uncompressed_YUYV
YUYV/YUY2 (4:2:2)
Uncompressed_UYVY
UYVY (4:2:2)
Trait Implementations
impl Copy for Codec
impl StructuralPartialEq for Codec
Auto Trait Implementations
impl RefUnwindSafe for Codec
impl Send for Codec
impl Sync for Codec
impl Unpin for Codec
impl UnwindSafe for Codec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more