Struct matroska_demuxer::Video

source ·
pub struct Video { /* private fields */ }
Expand description

Video settings.

Implementations§

source§

impl Video

source

pub fn flag_interlaced(&self) -> FlagInterlaced

A flag to declare if the video is known to be progressive, or interlaced, and if applicable to declare details about the interlacement.

source

pub fn stereo_mode(&self) -> Option<StereoMode>

Stereo-3D video mode.

source

pub fn alpha_mode(&self) -> Option<u64>

Alpha Video Mode. Presence of this Element indicates that the BlockAdditional Element could contain Alpha data.

source

pub fn pixel_width(&self) -> NonZeroU64

Width of the encoded video frames in pixels.

source

pub fn pixel_height(&self) -> NonZeroU64

Height of the encoded video frames in pixels.

source

pub fn pixel_crop_bottom(&self) -> Option<u64>

The number of video pixels to remove at the bottom of the image.

source

pub fn pixel_crop_top(&self) -> Option<u64>

The number of video pixels to remove at the top of the image.

source

pub fn pixel_crop_left(&self) -> Option<u64>

The number of video pixels to remove on the left of the image.

source

pub fn pixel_crop_right(&self) -> Option<u64>

The number of video pixels to remove on the right of the image.

source

pub fn display_width(&self) -> Option<NonZeroU64>

Width of the video frames to display. Applies to the video frame after cropping (PixelCrop* Elements).

source

pub fn display_height(&self) -> Option<NonZeroU64>

Height of the video frames to display. Applies to the video frame after cropping (PixelCrop* Elements).

source

pub fn display_unit(&self) -> Option<DisplayUnit>

How DisplayWidth & DisplayHeight are interpreted.

source

pub fn aspect_ratio_type(&self) -> Option<AspectRatioType>

Specify the possible modifications to the aspect ratio.

source

pub fn colour(&self) -> Option<&Colour>

Settings describing the colour format.

Trait Implementations§

source§

impl Clone for Video

source§

fn clone(&self) -> Video

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 Video

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Video

§

impl Send for Video

§

impl Sync for Video

§

impl Unpin for Video

§

impl UnwindSafe for Video

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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 Twhere 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.