Struct TfhdFlags

Source
#[repr(C)]
pub struct TfhdFlags(/* private fields */);

Implementations§

Source§

impl TfhdFlags

Source

pub const HAS_BASE_DATA_OFFSET: u32 = 1u32

Source

pub const HAS_SAMPLE_DESCRIPTION_INDEX: u32 = 2u32

Source

pub const HAS_DEFAULT_SAMPLE_DURATION: u32 = 8u32

Source

pub const HAS_DEFAULT_SAMPLE_SIZE: u32 = 16u32

Source

pub const HAS_DEFAULT_SAMPLE_FLAGS: u32 = 32u32

Source

pub const DURATION_IS_EMPTY: u32 = 65_536u32

Source

pub const DEFAULT_BASE_IS_MOOF: u32 = 131_072u32

Source

pub fn raw(&self) -> u32

Source

pub fn new<T: Into<u32>>(bits: T) -> TfhdFlags

Source

pub unsafe fn at_addr<'a>(addr: usize) -> &'a TfhdFlags

Source

pub unsafe fn at_addr_mut<'a>(addr: usize) -> &'a mut TfhdFlags

Source

pub unsafe fn at_ref<'a, T>(r: &T) -> &'a TfhdFlags

Source

pub unsafe fn at_ref_mut<'a, T>(r: &mut T) -> &'a mut TfhdFlags

Source

pub fn with_has_base_data_offset() -> TfhdFlags

Source

pub fn with_has_sample_description_index() -> TfhdFlags

Source

pub fn with_has_default_sample_duration() -> TfhdFlags

Source

pub fn with_has_default_sample_size() -> TfhdFlags

Source

pub fn with_has_default_sample_flags() -> TfhdFlags

Source

pub fn with_duration_is_empty() -> TfhdFlags

Source

pub fn with_default_base_is_moof() -> TfhdFlags

Source

pub fn has_base_data_offset(&self) -> bool

Source

pub fn extract_has_base_data_offset(&self) -> TfhdFlags

Source

pub fn set_has_base_data_offset(&mut self)

Source

pub fn unset_has_base_data_offset(&mut self)

Source

pub fn toggle_has_base_data_offset(&mut self)

Source

pub fn has_sample_description_index(&self) -> bool

Source

pub fn extract_has_sample_description_index(&self) -> TfhdFlags

Source

pub fn set_has_sample_description_index(&mut self)

Source

pub fn unset_has_sample_description_index(&mut self)

Source

pub fn toggle_has_sample_description_index(&mut self)

Source

pub fn has_default_sample_duration(&self) -> bool

Source

pub fn extract_has_default_sample_duration(&self) -> TfhdFlags

Source

pub fn set_has_default_sample_duration(&mut self)

Source

pub fn unset_has_default_sample_duration(&mut self)

Source

pub fn toggle_has_default_sample_duration(&mut self)

Source

pub fn has_default_sample_size(&self) -> bool

Source

pub fn extract_has_default_sample_size(&self) -> TfhdFlags

Source

pub fn set_has_default_sample_size(&mut self)

Source

pub fn unset_has_default_sample_size(&mut self)

Source

pub fn toggle_has_default_sample_size(&mut self)

Source

pub fn has_default_sample_flags(&self) -> bool

Source

pub fn extract_has_default_sample_flags(&self) -> TfhdFlags

Source

pub fn set_has_default_sample_flags(&mut self)

Source

pub fn unset_has_default_sample_flags(&mut self)

Source

pub fn toggle_has_default_sample_flags(&mut self)

Source

pub fn duration_is_empty(&self) -> bool

Source

pub fn extract_duration_is_empty(&self) -> TfhdFlags

Source

pub fn set_duration_is_empty(&mut self)

Source

pub fn unset_duration_is_empty(&mut self)

Source

pub fn toggle_duration_is_empty(&mut self)

Source

pub fn default_base_is_moof(&self) -> bool

Source

pub fn extract_default_base_is_moof(&self) -> TfhdFlags

Source

pub fn set_default_base_is_moof(&mut self)

Source

pub fn unset_default_base_is_moof(&mut self)

Source

pub fn toggle_default_base_is_moof(&mut self)

Trait Implementations§

Source§

impl<T: Into<u32>> Add<T> for TfhdFlags

Source§

type Output = TfhdFlags

The resulting type after applying the + operator.
Source§

fn add(self, other: T) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: Into<u32>> AddAssign<T> for TfhdFlags

Source§

fn add_assign(&mut self, other: T)

Performs the += operation. Read more
Source§

impl<T: Into<u32>> BitAnd<T> for TfhdFlags

Source§

type Output = TfhdFlags

The resulting type after applying the & operator.
Source§

fn bitand(self, other: T) -> Self::Output

Performs the & operation. Read more
Source§

impl<T: Into<u32>> BitAndAssign<T> for TfhdFlags

Source§

fn bitand_assign(&mut self, other: T)

Performs the &= operation. Read more
Source§

impl<T: Into<u32>> BitOr<T> for TfhdFlags

Source§

type Output = TfhdFlags

The resulting type after applying the | operator.
Source§

fn bitor(self, other: T) -> Self::Output

Performs the | operation. Read more
Source§

impl<T: Into<u32>> BitOrAssign<T> for TfhdFlags

Source§

fn bitor_assign(&mut self, other: T)

Performs the |= operation. Read more
Source§

impl<T: Into<u32>> BitXor<T> for TfhdFlags

Source§

type Output = TfhdFlags

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: T) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<T: Into<u32>> BitXorAssign<T> for TfhdFlags

Source§

fn bitxor_assign(&mut self, other: T)

Performs the ^= operation. Read more
Source§

impl Clone for TfhdFlags

Source§

fn clone(&self) -> TfhdFlags

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TfhdFlags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TfhdFlags

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for TfhdFlags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Into<u32>> Div<T> for TfhdFlags

Source§

type Output = TfhdFlags

The resulting type after applying the / operator.
Source§

fn div(self, other: T) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: Into<u32>> DivAssign<T> for TfhdFlags

Source§

fn div_assign(&mut self, other: T)

Performs the /= operation. Read more
Source§

impl From<TfhdFlags> for u32

Source§

fn from(orig: TfhdFlags) -> u32

Converts to this type from the input type.
Source§

impl From<u32> for TfhdFlags

Source§

fn from(orig: u32) -> TfhdFlags

Converts to this type from the input type.
Source§

impl Hash for TfhdFlags

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Mp4VersionedReadable<TfhdFlags> for TfhdDataOffset

Source§

fn versioned_read<'life0, 'async_trait, R>( version: u8, flags: TfhdFlags, reader: &'life0 mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, MP4Error>> + Send + 'async_trait>>
where R: 'async_trait + ReadMp4, Self: 'async_trait, 'life0: 'async_trait,

Source§

impl Mp4VersionedReadable<TfhdFlags> for TfhdDefaultSampleDuration

Source§

fn versioned_read<'life0, 'async_trait, R>( version: u8, flags: TfhdFlags, reader: &'life0 mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, MP4Error>> + Send + 'async_trait>>
where R: 'async_trait + ReadMp4, Self: 'async_trait, 'life0: 'async_trait,

Source§

impl Mp4VersionedReadable<TfhdFlags> for TfhdDefaultSampleFlags

Source§

fn versioned_read<'life0, 'async_trait, R>( version: u8, flags: TfhdFlags, reader: &'life0 mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, MP4Error>> + Send + 'async_trait>>
where R: 'async_trait + ReadMp4, Self: 'async_trait, 'life0: 'async_trait,

Source§

impl Mp4VersionedReadable<TfhdFlags> for TfhdDefaultSampleSize

Source§

fn versioned_read<'life0, 'async_trait, R>( version: u8, flags: TfhdFlags, reader: &'life0 mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, MP4Error>> + Send + 'async_trait>>
where R: 'async_trait + ReadMp4, Self: 'async_trait, 'life0: 'async_trait,

Source§

impl Mp4VersionedReadable<TfhdFlags> for TfhdSampleDescriptionIndex

Source§

fn versioned_read<'life0, 'async_trait, R>( version: u8, flags: TfhdFlags, reader: &'life0 mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, MP4Error>> + Send + 'async_trait>>
where R: 'async_trait + ReadMp4, Self: 'async_trait, 'life0: 'async_trait,

Source§

impl Mp4VersionedWritable<TfhdFlags> for TfhdDataOffset

Source§

fn required_flags(&self) -> TfhdFlags

Source§

fn versioned_byte_size(&self, version: u8, flags: TfhdFlags) -> usize

Source§

fn versioned_write<W: WriteMp4>( &self, version: u8, flags: TfhdFlags, writer: &mut W, ) -> Result<usize, MP4Error>

Source§

fn required_version(&self) -> u8

Source§

impl Mp4VersionedWritable<TfhdFlags> for TfhdDefaultSampleDuration

Source§

fn required_flags(&self) -> TfhdFlags

Source§

fn versioned_byte_size(&self, version: u8, flags: TfhdFlags) -> usize

Source§

fn versioned_write<W: WriteMp4>( &self, version: u8, flags: TfhdFlags, writer: &mut W, ) -> Result<usize, MP4Error>

Source§

fn required_version(&self) -> u8

Source§

impl Mp4VersionedWritable<TfhdFlags> for TfhdDefaultSampleFlags

Source§

fn required_flags(&self) -> TfhdFlags

Source§

fn versioned_byte_size(&self, version: u8, flags: TfhdFlags) -> usize

Source§

fn versioned_write<W: WriteMp4>( &self, version: u8, flags: TfhdFlags, writer: &mut W, ) -> Result<usize, MP4Error>

Source§

fn required_version(&self) -> u8

Source§

impl Mp4VersionedWritable<TfhdFlags> for TfhdDefaultSampleSize

Source§

fn required_flags(&self) -> TfhdFlags

Source§

fn versioned_byte_size(&self, version: u8, flags: TfhdFlags) -> usize

Source§

fn versioned_write<W: WriteMp4>( &self, version: u8, flags: TfhdFlags, writer: &mut W, ) -> Result<usize, MP4Error>

Source§

fn required_version(&self) -> u8

Source§

impl Mp4VersionedWritable<TfhdFlags> for TfhdSampleDescriptionIndex

Source§

fn required_flags(&self) -> TfhdFlags

Source§

fn versioned_byte_size(&self, version: u8, flags: TfhdFlags) -> usize

Source§

fn versioned_write<W: WriteMp4>( &self, version: u8, flags: TfhdFlags, writer: &mut W, ) -> Result<usize, MP4Error>

Source§

fn required_version(&self) -> u8

Source§

impl<T: Into<u32>> Mul<T> for TfhdFlags

Source§

type Output = TfhdFlags

The resulting type after applying the * operator.
Source§

fn mul(self, other: T) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: Into<u32>> MulAssign<T> for TfhdFlags

Source§

fn mul_assign(&mut self, other: T)

Performs the *= operation. Read more
Source§

impl PartialEq for TfhdFlags

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: Into<u32>> Shl<T> for TfhdFlags

Source§

type Output = TfhdFlags

The resulting type after applying the << operator.
Source§

fn shl(self, other: T) -> Self::Output

Performs the << operation. Read more
Source§

impl<T: Into<u32>> ShlAssign<T> for TfhdFlags

Source§

fn shl_assign(&mut self, other: T)

Performs the <<= operation. Read more
Source§

impl<T: Into<u32>> Shr<T> for TfhdFlags

Source§

type Output = TfhdFlags

The resulting type after applying the >> operator.
Source§

fn shr(self, other: T) -> Self::Output

Performs the >> operation. Read more
Source§

impl<T: Into<u32>> ShrAssign<T> for TfhdFlags

Source§

fn shr_assign(&mut self, other: T)

Performs the >>= operation. Read more
Source§

impl<T: Into<u32>> Sub<T> for TfhdFlags

Source§

type Output = TfhdFlags

The resulting type after applying the - operator.
Source§

fn sub(self, other: T) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: Into<u32>> SubAssign<T> for TfhdFlags

Source§

fn sub_assign(&mut self, other: T)

Performs the -= operation. Read more
Source§

impl Copy for TfhdFlags

Source§

impl Eq for TfhdFlags

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

Source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
Source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

Source§

fn lossy_into(self) -> Dst

Performs the conversion.
Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> FlagTrait for T
where T: Copy + Default + BitOr<Output = T> + Into<u32> + From<u32> + Send + Sync + 'static,