pub enum CodecConfig<'a> {
Hvcc(&'a [u8]),
Av1c(&'a [u8]),
}Expand description
The codec configuration record of a still-decode request. The variant is
the codec: an Hvcc request is an HEVC request and
an Av1c request is an AV1 request, so a mismatched
codec/config pair is unrepresentable.
The bytes are the raw record body as stored in the container property
(the hvcC HEVCDecoderConfigurationRecord per ISO/IEC 14496-15 §8.3.3.1,
or the av1C AV1CodecConfigurationRecord), without any box header.
Variants§
Hvcc(&'a [u8])
An hvcC HEVCDecoderConfigurationRecord body. The matching
StillDecodeRequest::payload is the length-prefixed NAL stream of
the coded item.
Av1c(&'a [u8])
An av1C AV1CodecConfigurationRecord body. The matching
StillDecodeRequest::payload is the OBU stream of the coded item.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for CodecConfig<'a>
impl<'a> Clone for CodecConfig<'a>
impl<'a> Copy for CodecConfig<'a>
Source§impl<'a> Debug for CodecConfig<'a>
impl<'a> Debug for CodecConfig<'a>
impl<'a> Eq for CodecConfig<'a>
Source§impl<'a> PartialEq for CodecConfig<'a>
impl<'a> PartialEq for CodecConfig<'a>
impl<'a> StructuralPartialEq for CodecConfig<'a>
Auto Trait Implementations§
impl<'a> Freeze for CodecConfig<'a>
impl<'a> RefUnwindSafe for CodecConfig<'a>
impl<'a> Send for CodecConfig<'a>
impl<'a> Sync for CodecConfig<'a>
impl<'a> Unpin for CodecConfig<'a>
impl<'a> UnsafeUnpin for CodecConfig<'a>
impl<'a> UnwindSafe for CodecConfig<'a>
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