pub struct StreamInfo {
pub index: u32,
pub time_base: TimeBase,
pub duration: Option<i64>,
pub start_time: Option<i64>,
pub params: CodecParameters,
}Expand description
Description of a single stream inside a container.
Fields§
§index: u320-based index of the stream within its container.
time_base: TimeBaseTime base in which this stream’s packet timestamps (and
duration / start_time below) are expressed.
duration: Option<i64>Stream duration in time_base units, when the container
declares one.
start_time: Option<i64>Presentation timestamp of the first packet, in time_base
units, when known.
params: CodecParametersCodec-level parameters (codec id, format, extradata, …).
Trait Implementations§
Source§impl Clone for StreamInfo
impl Clone for StreamInfo
Source§fn clone(&self) -> StreamInfo
fn clone(&self) -> StreamInfo
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 StreamInfo
impl RefUnwindSafe for StreamInfo
impl Send for StreamInfo
impl Sync for StreamInfo
impl Unpin for StreamInfo
impl UnsafeUnpin for StreamInfo
impl UnwindSafe for StreamInfo
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