pub struct AsfFile {
pub video_streams: Vec<VideoStreamInfo>,
pub audio_streams: Vec<AudioStreamInfo>,
pub data_offset: u64,
pub packet_count: u64,
pub packet_size: u32,
pub min_packet_size: u32,
pub preroll_ms: u32,
/* private fields */
}Fields§
§video_streams: Vec<VideoStreamInfo>§audio_streams: Vec<AudioStreamInfo>§data_offset: u64§packet_count: u64§packet_size: u32§min_packet_size: u32§preroll_ms: u32Implementations§
Source§impl AsfFile
impl AsfFile
Sourcepub fn open<R: Read + Seek>(reader: &mut R) -> Result<Self>
pub fn open<R: Read + Seek>(reader: &mut R) -> Result<Self>
Parse the ASF header and locate the Data section.
Sourcepub fn read_packet<R: Read + Seek>(
&mut self,
reader: &mut R,
) -> Result<Vec<AsfPayload>>
pub fn read_packet<R: Read + Seek>( &mut self, reader: &mut R, ) -> Result<Vec<AsfPayload>>
Read the next ASF packet and return any completed media objects.
This is stateful and matches upstream’s asf_get_packet + asf_parse_packet assembly.
Auto Trait Implementations§
impl Freeze for AsfFile
impl RefUnwindSafe for AsfFile
impl Send for AsfFile
impl Sync for AsfFile
impl Unpin for AsfFile
impl UnwindSafe for AsfFile
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