Struct ffprobe::Stream

source ·
pub struct Stream {
Show 47 fields pub index: i64, pub codec_name: Option<String>, pub sample_aspect_ratio: Option<String>, pub display_aspect_ratio: Option<String>, pub color_range: Option<String>, pub color_space: Option<String>, pub bits_per_raw_sample: Option<String>, pub channel_layout: Option<String>, pub max_bit_rate: Option<String>, pub nb_frames: Option<String>, pub nb_read_frames: Option<String>, pub codec_long_name: Option<String>, pub codec_type: Option<String>, pub codec_time_base: Option<String>, pub codec_tag_string: String, pub codec_tag: String, pub sample_fmt: Option<String>, pub sample_rate: Option<String>, pub channels: Option<i64>, pub bits_per_sample: Option<i64>, pub r_frame_rate: String, pub avg_frame_rate: String, pub time_base: String, pub start_pts: Option<i64>, pub start_time: Option<String>, pub duration_ts: Option<i64>, pub duration: Option<String>, pub bit_rate: Option<String>, pub disposition: Disposition, pub tags: Option<StreamTags>, pub profile: Option<String>, pub width: Option<i64>, pub height: Option<i64>, pub coded_width: Option<i64>, pub coded_height: Option<i64>, pub closed_captions: Option<i64>, pub has_b_frames: Option<i64>, pub pix_fmt: Option<String>, pub level: Option<i64>, pub chroma_location: Option<String>, pub refs: Option<i64>, pub is_avc: Option<String>, pub nal_length: Option<String>, pub nal_length_size: Option<String>, pub field_order: Option<String>, pub id: Option<String>, pub side_data_list: Vec<SideData>,
}

Fields§

§index: i64§codec_name: Option<String>§sample_aspect_ratio: Option<String>§display_aspect_ratio: Option<String>§color_range: Option<String>§color_space: Option<String>§bits_per_raw_sample: Option<String>§channel_layout: Option<String>§max_bit_rate: Option<String>§nb_frames: Option<String>§nb_read_frames: Option<String>

Number of frames seen by the decoder. Requires full decoding and is only available if the ‘count_frames’ setting was enabled.

§codec_long_name: Option<String>§codec_type: Option<String>§codec_time_base: Option<String>§codec_tag_string: String§codec_tag: String§sample_fmt: Option<String>§sample_rate: Option<String>§channels: Option<i64>§bits_per_sample: Option<i64>§r_frame_rate: String§avg_frame_rate: String§time_base: String§start_pts: Option<i64>§start_time: Option<String>§duration_ts: Option<i64>§duration: Option<String>§bit_rate: Option<String>§disposition: Disposition§tags: Option<StreamTags>§profile: Option<String>§width: Option<i64>§height: Option<i64>§coded_width: Option<i64>§coded_height: Option<i64>§closed_captions: Option<i64>§has_b_frames: Option<i64>§pix_fmt: Option<String>§level: Option<i64>§chroma_location: Option<String>§refs: Option<i64>§is_avc: Option<String>§nal_length: Option<String>§nal_length_size: Option<String>§field_order: Option<String>§id: Option<String>§side_data_list: Vec<SideData>

Trait Implementations§

source§

impl Clone for Stream

source§

fn clone(&self) -> Stream

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Stream

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Stream

source§

fn default() -> Stream

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Stream

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for Stream

source§

fn eq(&self, other: &Stream) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Stream

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,