pub struct SegmentInfo {
pub sequence_number: u32,
pub path: PathBuf,
pub byte_size: u64,
pub duration_ticks: u64,
}Expand description
Per-segment metadata returned by CmafVideoMuxer::flush_segment /
CmafAudioMuxer::flush_segment. These records form the input to
the HLS playlist writer (Phase 3) and the segment-alignment validator
(Phase 5).
Fields§
§sequence_number: u321-based monotonically increasing sequence number per track.
path: PathBufPath of the seg-NNNNN.m4s file on disk.
byte_size: u64Total file size in bytes (moof + mdat header + payload).
duration_ticks: u64Sum of per-sample durations in track-timescale ticks. The HLS
EXTINF line is written from this divided by the timescale.
Trait Implementations§
Source§impl Clone for SegmentInfo
impl Clone for SegmentInfo
Source§fn clone(&self) -> SegmentInfo
fn clone(&self) -> SegmentInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SegmentInfo
impl RefUnwindSafe for SegmentInfo
impl Send for SegmentInfo
impl Sync for SegmentInfo
impl Unpin for SegmentInfo
impl UnsafeUnpin for SegmentInfo
impl UnwindSafe for SegmentInfo
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