pub struct Stream {
pub format: String,
pub language: String,
pub parent_index: u32,
pub stream_index: u32,
pub raw_log_message: String,
pub type_specific_data: StreamTypeSpecificData,
}
Expand description
Represents metadata about a stream.
Fields§
§format: String
Corresponds to stream -f
parameter, e.g. rawvideo
, h264
, opus
or srt
.
language: String
§parent_index: u32
The index of the input or output that this stream belongs to.
stream_index: u32
The index of the stream inside the input.
raw_log_message: String
The stderr line that this stream was parsed from.
type_specific_data: StreamTypeSpecificData
Implementations§
Source§impl Stream
impl Stream
pub fn is_audio(&self) -> bool
pub fn is_subtitle(&self) -> bool
pub fn is_video(&self) -> bool
pub fn is_other(&self) -> bool
pub fn audio_data(&self) -> Option<&AudioStream>
pub fn video_data(&self) -> Option<&VideoStream>
Trait Implementations§
impl StructuralPartialEq for Stream
Auto Trait Implementations§
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnwindSafe for Stream
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