#[repr(C)]pub struct SampleFlags(/* private fields */);
Implementations§
Source§impl SampleFlags
impl SampleFlags
pub const IS_LEADING: u32 = 48u32
pub const SAMPLE_DEPENDS_ON: u32 = 192u32
pub const SAMPLE_IS_DEPENDED_ON: u32 = 768u32
pub const SAMPLE_HAS_REDUNDANCY: u32 = 3_072u32
pub const SAMPLE_PADDING_VALUE: u32 = 28_672u32
pub const SAMPLE_IS_NON_SYNC_SAMPLE: u32 = 32_768u32
pub const SAMPLE_DEGRADATION_PRIORITY: u32 = 4_294_901_760u32
pub fn raw(&self) -> u32
pub fn new<T: Into<u32>>(bits: T) -> SampleFlags
pub unsafe fn at_addr<'a>(addr: usize) -> &'a SampleFlags
pub unsafe fn at_addr_mut<'a>(addr: usize) -> &'a mut SampleFlags
pub unsafe fn at_ref<'a, T>(r: &T) -> &'a SampleFlags
pub unsafe fn at_ref_mut<'a, T>(r: &mut T) -> &'a mut SampleFlags
pub fn with_is_leading<T: Into<u32>>(val: T) -> SampleFlags
pub fn with_sample_depends_on<T: Into<u32>>(val: T) -> SampleFlags
pub fn with_sample_is_depended_on<T: Into<u32>>(val: T) -> SampleFlags
pub fn with_sample_has_redundancy<T: Into<u32>>(val: T) -> SampleFlags
pub fn with_sample_padding_value<T: Into<u32>>(val: T) -> SampleFlags
pub fn with_sample_is_non_sync_sample() -> SampleFlags
pub fn with_sample_degradation_priority<T: Into<u32>>(val: T) -> SampleFlags
pub fn is_leading(&self) -> u8
pub fn is_leading_tuple(&self) -> (u8, u8)
pub fn is_leading_bools(&self) -> (bool, bool)
pub fn extract_is_leading(&self) -> SampleFlags
pub fn set_is_leading<T: Into<u32>>(&mut self, raw: T)
pub fn sample_depends_on(&self) -> u8
pub fn sample_depends_on_tuple(&self) -> (u8, u8)
pub fn sample_depends_on_bools(&self) -> (bool, bool)
pub fn extract_sample_depends_on(&self) -> SampleFlags
pub fn set_sample_depends_on<T: Into<u32>>(&mut self, raw: T)
pub fn sample_is_depended_on(&self) -> u8
pub fn sample_is_depended_on_tuple(&self) -> (u8, u8)
pub fn sample_is_depended_on_bools(&self) -> (bool, bool)
pub fn extract_sample_is_depended_on(&self) -> SampleFlags
pub fn set_sample_is_depended_on<T: Into<u32>>(&mut self, raw: T)
pub fn sample_has_redundancy(&self) -> u8
pub fn sample_has_redundancy_tuple(&self) -> (u8, u8)
pub fn sample_has_redundancy_bools(&self) -> (bool, bool)
pub fn extract_sample_has_redundancy(&self) -> SampleFlags
pub fn set_sample_has_redundancy<T: Into<u32>>(&mut self, raw: T)
pub fn sample_padding_value(&self) -> u8
pub fn sample_padding_value_tuple(&self) -> (u8, u8, u8)
pub fn sample_padding_value_bools(&self) -> (bool, bool, bool)
pub fn extract_sample_padding_value(&self) -> SampleFlags
pub fn set_sample_padding_value<T: Into<u32>>(&mut self, raw: T)
pub fn sample_is_non_sync_sample(&self) -> bool
pub fn extract_sample_is_non_sync_sample(&self) -> SampleFlags
pub fn set_sample_is_non_sync_sample(&mut self)
pub fn unset_sample_is_non_sync_sample(&mut self)
pub fn toggle_sample_is_non_sync_sample(&mut self)
pub fn sample_degradation_priority(&self) -> u16
pub fn sample_degradation_priority_tuple( &self, ) -> (u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8)
pub fn sample_degradation_priority_bools( &self, ) -> (bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool)
pub fn extract_sample_degradation_priority(&self) -> SampleFlags
pub fn set_sample_degradation_priority<T: Into<u32>>(&mut self, raw: T)
Trait Implementations§
Source§impl<T: Into<u32>> AddAssign<T> for SampleFlags
impl<T: Into<u32>> AddAssign<T> for SampleFlags
Source§fn add_assign(&mut self, other: T)
fn add_assign(&mut self, other: T)
Performs the
+=
operation. Read moreSource§impl<T: Into<u32>> BitAndAssign<T> for SampleFlags
impl<T: Into<u32>> BitAndAssign<T> for SampleFlags
Source§fn bitand_assign(&mut self, other: T)
fn bitand_assign(&mut self, other: T)
Performs the
&=
operation. Read moreSource§impl<T: Into<u32>> BitOrAssign<T> for SampleFlags
impl<T: Into<u32>> BitOrAssign<T> for SampleFlags
Source§fn bitor_assign(&mut self, other: T)
fn bitor_assign(&mut self, other: T)
Performs the
|=
operation. Read moreSource§impl<T: Into<u32>> BitXorAssign<T> for SampleFlags
impl<T: Into<u32>> BitXorAssign<T> for SampleFlags
Source§fn bitxor_assign(&mut self, other: T)
fn bitxor_assign(&mut self, other: T)
Performs the
^=
operation. Read moreSource§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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SampleFlags
impl Debug for SampleFlags
Source§impl Default for SampleFlags
impl Default for SampleFlags
Source§impl Display for SampleFlags
impl Display for SampleFlags
Source§impl<T: Into<u32>> DivAssign<T> for SampleFlags
impl<T: Into<u32>> DivAssign<T> for SampleFlags
Source§fn div_assign(&mut self, other: T)
fn div_assign(&mut self, other: T)
Performs the
/=
operation. Read moreSource§impl From<SampleFlags> for TfhdDefaultSampleFlags
impl From<SampleFlags> for TfhdDefaultSampleFlags
Source§fn from(t: SampleFlags) -> Self
fn from(t: SampleFlags) -> Self
Converts to this type from the input type.
Source§impl From<SampleFlags> for TrunFirstSampleFlags
impl From<SampleFlags> for TrunFirstSampleFlags
Source§fn from(t: SampleFlags) -> Self
fn from(t: SampleFlags) -> Self
Converts to this type from the input type.
Source§impl From<SampleFlags> for TrunSampleFlags
impl From<SampleFlags> for TrunSampleFlags
Source§fn from(t: SampleFlags) -> Self
fn from(t: SampleFlags) -> Self
Converts to this type from the input type.
Source§impl From<SampleFlags> for u32
impl From<SampleFlags> for u32
Source§fn from(orig: SampleFlags) -> u32
fn from(orig: SampleFlags) -> u32
Converts to this type from the input type.
Source§impl From<u32> for SampleFlags
impl From<u32> for SampleFlags
Source§fn from(orig: u32) -> SampleFlags
fn from(orig: u32) -> SampleFlags
Converts to this type from the input type.
Source§impl Hash for SampleFlags
impl Hash for SampleFlags
Source§impl Mp4Readable for SampleFlags
impl Mp4Readable for SampleFlags
Source§impl Mp4Writable for SampleFlags
impl Mp4Writable for SampleFlags
Source§impl<T: Into<u32>> MulAssign<T> for SampleFlags
impl<T: Into<u32>> MulAssign<T> for SampleFlags
Source§fn mul_assign(&mut self, other: T)
fn mul_assign(&mut self, other: T)
Performs the
*=
operation. Read moreSource§impl PartialEq for SampleFlags
impl PartialEq for SampleFlags
Source§impl<T: Into<u32>> ShlAssign<T> for SampleFlags
impl<T: Into<u32>> ShlAssign<T> for SampleFlags
Source§fn shl_assign(&mut self, other: T)
fn shl_assign(&mut self, other: T)
Performs the
<<=
operation. Read moreSource§impl<T: Into<u32>> ShrAssign<T> for SampleFlags
impl<T: Into<u32>> ShrAssign<T> for SampleFlags
Source§fn shr_assign(&mut self, other: T)
fn shr_assign(&mut self, other: T)
Performs the
>>=
operation. Read moreSource§impl<T: Into<u32>> SubAssign<T> for SampleFlags
impl<T: Into<u32>> SubAssign<T> for SampleFlags
Source§fn sub_assign(&mut self, other: T)
fn sub_assign(&mut self, other: T)
Performs the
-=
operation. Read moreimpl Copy for SampleFlags
impl Eq 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<F, T> Mp4VersionedReadable<F> for Twhere
F: FlagTrait,
T: Mp4Readable,
impl<F, T> Mp4VersionedReadable<F> for Twhere
F: FlagTrait,
T: Mp4Readable,
Source§impl<F, T> Mp4VersionedWritable<F> for T
impl<F, T> Mp4VersionedWritable<F> for T
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.