pub struct Mp4Track {
pub trak: TrakBox,
pub trafs: Vec<TrafBox>,
pub default_sample_duration: u32,
}
Fields§
§trak: TrakBox
§trafs: Vec<TrafBox>
§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>
Trait Implementations§
Auto Trait Implementations§
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