pub struct SampleFlags {
pub reserved: u8,
pub is_leading: u8,
pub sample_depends_on: u8,
pub sample_is_depended_on: u8,
pub sample_has_redundancy: u8,
pub sample_padding_value: u8,
pub sample_is_non_sync_sample: bool,
pub sample_degradation_priority: u16,
}Expand description
Sample flags
ISO/IEC 14496-12 - 8.8.3
Fields§
§reserved: u8Reserved 4 bits, must be 0.
is_leading: u80: The leading nature of this sample is unknown;1: This sample is a leading sample that has a dependency before the referenced I-picture (and is therefore not decodable);2: This sample is not a leading sample;3: This sample is a leading sample that has no dependency before the referenced I-picture (and is therefore decodable);
sample_depends_on: u80: The dependency of this sample is unknown;1: This sample does depend on others (not an I picture);2: This sample does not depend on others (I picture);3: Reserved;
sample_is_depended_on: u80: The dependency of other samples on this sample is unknown;1: Other samples may depend on this one (not disposable);2: No other sample depends on this one (disposable);3: Reserved;
sample_has_redundancy: u80: It is unknown whether there is redundant coding in this sample;1: There is redundant coding in this sample;2: There is no redundant coding in this sample;3: Reserved;
sample_padding_value: u8A value from 0 to 7, indicating the number of padding bits at the end of sample.
sample_is_non_sync_sample: boolProvides the same information as the sync sample table 8.6.2. When this value is set to 0 for a sample, it is the same as if the sample were not in a movie fragment and marked with an entry in the sync sample table (or, if all samples are sync samples, the sync sample table were absent).
sample_degradation_priority: u16An integer specifying the degradation priority for each sample.
Trait Implementations§
Source§impl Clone for SampleFlags
impl Clone for SampleFlags
Source§fn clone(&self) -> SampleFlags
fn clone(&self) -> SampleFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SampleFlags
impl Debug for SampleFlags
Source§impl<'a> Deserialize<'a> for SampleFlags
impl<'a> Deserialize<'a> for SampleFlags
Source§fn deserialize<R>(reader: R) -> Result<Self>where
R: ZeroCopyReader<'a>,
fn deserialize<R>(reader: R) -> Result<Self>where
R: ZeroCopyReader<'a>,
Deserialize a value from the given zero-copy reader.
Source§impl IsoSized for SampleFlags
impl IsoSized for SampleFlags
Source§impl PartialEq for SampleFlags
impl PartialEq for SampleFlags
Source§impl Serialize for SampleFlags
impl Serialize for SampleFlags
impl Copy for SampleFlags
impl Eq for SampleFlags
impl StructuralPartialEq for SampleFlags
Auto Trait Implementations§
impl Freeze for SampleFlags
impl RefUnwindSafe for SampleFlags
impl Send for SampleFlags
impl Sync for SampleFlags
impl Unpin for SampleFlags
impl UnwindSafe for SampleFlags
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.