pub enum VideoDecodeProfile {
H264 {
profile: H264Profile,
picture_layout: H264PictureLayout,
chroma_subsampling: VideoChromaSubsampling,
luma_bit_depth: VideoComponentBitDepth,
chroma_bit_depth: VideoComponentBitDepth,
},
H265 {
profile: H265Profile,
chroma_subsampling: VideoChromaSubsampling,
luma_bit_depth: VideoComponentBitDepth,
chroma_bit_depth: VideoComponentBitDepth,
},
Av1 {
profile: Av1Profile,
film_grain_support: bool,
chroma_subsampling: VideoChromaSubsampling,
luma_bit_depth: VideoComponentBitDepth,
chroma_bit_depth: VideoComponentBitDepth,
},
Vp9 {
profile: Vp9Profile,
chroma_subsampling: VideoChromaSubsampling,
luma_bit_depth: VideoComponentBitDepth,
chroma_bit_depth: VideoComponentBitDepth,
},
}Expand description
One complete decode profile presented to the selected device.
Variants§
H264
Fields
§
profile: H264Profile§
picture_layout: H264PictureLayout§
chroma_subsampling: VideoChromaSubsampling§
luma_bit_depth: VideoComponentBitDepth§
chroma_bit_depth: VideoComponentBitDepthH265
Fields
§
profile: H265Profile§
chroma_subsampling: VideoChromaSubsampling§
luma_bit_depth: VideoComponentBitDepth§
chroma_bit_depth: VideoComponentBitDepthAv1
Fields
§
profile: Av1Profile§
chroma_subsampling: VideoChromaSubsampling§
luma_bit_depth: VideoComponentBitDepth§
chroma_bit_depth: VideoComponentBitDepthVp9
Fields
§
profile: Vp9Profile§
chroma_subsampling: VideoChromaSubsampling§
luma_bit_depth: VideoComponentBitDepth§
chroma_bit_depth: VideoComponentBitDepthImplementations§
Source§impl VideoDecodeProfile
impl VideoDecodeProfile
Sourcepub const fn h264_420_8bit(profile: H264Profile) -> Self
pub const fn h264_420_8bit(profile: H264Profile) -> Self
Construct the common progressive H.264 4:2:0 8-bit profile.
Sourcepub const fn h265_420(
profile: H265Profile,
bit_depth: VideoComponentBitDepth,
) -> Self
pub const fn h265_420( profile: H265Profile, bit_depth: VideoComponentBitDepth, ) -> Self
Construct the common H.265 4:2:0 profile at one component precision.
Sourcepub const fn av1_420(
profile: Av1Profile,
bit_depth: VideoComponentBitDepth,
film_grain_support: bool,
) -> Self
pub const fn av1_420( profile: Av1Profile, bit_depth: VideoComponentBitDepth, film_grain_support: bool, ) -> Self
Construct the common AV1 4:2:0 profile at one component precision.
Sourcepub const fn vp9_420(
profile: Vp9Profile,
bit_depth: VideoComponentBitDepth,
) -> Self
pub const fn vp9_420( profile: Vp9Profile, bit_depth: VideoComponentBitDepth, ) -> Self
Construct the common VP9 4:2:0 profile at one component precision.
Trait Implementations§
Source§impl Clone for VideoDecodeProfile
impl Clone for VideoDecodeProfile
impl Copy for VideoDecodeProfile
Source§impl Debug for VideoDecodeProfile
impl Debug for VideoDecodeProfile
impl Eq for VideoDecodeProfile
Source§impl PartialEq for VideoDecodeProfile
impl PartialEq for VideoDecodeProfile
impl StructuralPartialEq for VideoDecodeProfile
Auto Trait Implementations§
impl Forget for VideoDecodeProfile
impl Freeze for VideoDecodeProfile
impl Move for VideoDecodeProfile
impl RefUnwindSafe for VideoDecodeProfile
impl Send for VideoDecodeProfile
impl Sync for VideoDecodeProfile
impl Unpin for VideoDecodeProfile
impl UnsafeUnpin for VideoDecodeProfile
impl UnwindSafe for VideoDecodeProfile
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