pub struct FragSample {
pub track_id: u32,
pub dts: u64,
pub pts: i64,
pub duration: u32,
pub keyframe: bool,
pub data: Vec<u8>,
}Expand description
1 サンプル(映像なら 1 アクセスユニット、AAC なら 1 フレーム)。時刻は timescale 単位。
Fields§
§track_id: u32§dts: u64復号時刻。
pts: i64表示時刻(dts + composition offset)。
duration: u32§keyframe: bool§data: Vec<u8>Trait Implementations§
Source§impl Clone for FragSample
impl Clone for FragSample
Source§fn clone(&self) -> FragSample
fn clone(&self) -> FragSample
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 FragSample
impl RefUnwindSafe for FragSample
impl Send for FragSample
impl Sync for FragSample
impl Unpin for FragSample
impl UnsafeUnpin for FragSample
impl UnwindSafe for FragSample
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