pub struct Mp4Track {
pub trak: TrakBox,
pub trafs: Vec<TrafBox>,
pub moof_offsets: Vec<u64>,
pub default_sample_duration: u32,
}
Fields§
§trak: TrakBox
§trafs: Vec<TrafBox>
§moof_offsets: Vec<u64>
§default_sample_duration: u32
Implementations§
source§impl Mp4Track
impl Mp4Track
pub fn track_id(&self) -> u32
pub fn track_type(&self) -> Result<TrackType>
pub fn media_type(&self) -> Result<MediaType>
pub fn box_type(&self) -> Result<FourCC>
pub fn width(&self) -> u16
pub fn height(&self) -> u16
pub fn frame_rate(&self) -> f64
pub fn sample_freq_index(&self) -> Result<SampleFreqIndex>
pub fn channel_config(&self) -> Result<ChannelConfig>
pub fn language(&self) -> &str
pub fn timescale(&self) -> u32
pub fn duration(&self) -> Duration
pub fn bitrate(&self) -> u32
pub fn sample_count(&self) -> u32
pub fn video_profile(&self) -> Result<AvcProfile>
pub fn sequence_parameter_set(&self) -> Result<&[u8]>
pub fn picture_parameter_set(&self) -> Result<&[u8]>
pub fn audio_profile(&self) -> Result<AudioObjectType>
pub fn sample_offset(&self, sample_id: u32) -> Result<u64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mp4Track
impl RefUnwindSafe for Mp4Track
impl Send for Mp4Track
impl Sync for Mp4Track
impl Unpin for Mp4Track
impl UnwindSafe for Mp4Track
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