pub struct Mp4Demuxer {
pub video_samples: Vec<Mp4Sample>,
pub audio_samples: Vec<Mp4Sample>,
pub duration_ms: u64,
pub video_avcc: Option<Vec<u8>>,
pub audio_asc: Option<Vec<u8>>,
}Fields§
§video_samples: Vec<Mp4Sample>§audio_samples: Vec<Mp4Sample>§duration_ms: u64§video_avcc: Option<Vec<u8>>映像トラックの avcC(AVCDecoderConfigurationRecord)。SPS/PPS と NAL 長さフィールドのサイズを内包する。H.264 デコーダの初期化に使う。
audio_asc: Option<Vec<u8>>音声トラックの AudioSpecificConfig(mp4a の esds の DecoderSpecificInfo)。AAC の初期化に使う。
Implementations§
Source§impl Mp4Demuxer
impl Mp4Demuxer
pub fn parse(data: &[u8]) -> Result<Self, &'static str>
fn parse_moov(&mut self, data: &[u8]) -> Result<(), &'static str>
fn parse_mvhd(&mut self, payload: &[u8]) -> Result<(), &'static str>
fn parse_trak(&mut self, data: &[u8]) -> Result<(), &'static str>
fn parse_stbl( &mut self, data: &[u8], is_video: bool, timescale: u32, ) -> Result<(), &'static str>
Auto Trait Implementations§
impl Freeze for Mp4Demuxer
impl RefUnwindSafe for Mp4Demuxer
impl Send for Mp4Demuxer
impl Sync for Mp4Demuxer
impl Unpin for Mp4Demuxer
impl UnsafeUnpin for Mp4Demuxer
impl UnwindSafe for Mp4Demuxer
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