[][src]Struct av_data::frame::VideoInfo

pub struct VideoInfo {
    pub width: usize,
    pub height: usize,
    pub flipped: bool,
    pub frame_type: FrameType,
    pub format: Arc<Formaton>,
    pub bits: u8,
}

Video stream information.

Fields

width: usize

Frame width.

height: usize

Frame height.

flipped: bool

Frame is stored downside up.

frame_type: FrameType

Frame type.

format: Arc<Formaton>

Frame pixel format.

bits: u8

Declared bits per sample.

Implementations

impl VideoInfo[src]

pub fn new(
    width: usize,
    height: usize,
    flipped: bool,
    frame_type: FrameType,
    format: Arc<Formaton>
) -> Self
[src]

Constructs a new VideoInfo instance.

pub fn get_width(&self) -> usize[src]

Returns frame width.

pub fn get_height(&self) -> usize[src]

Returns frame height.

pub fn is_flipped(&self) -> bool[src]

Returns frame orientation.

pub fn get_frame_type(&self) -> &FrameType[src]

Returns frame type.

pub fn get_format(&self) -> Formaton[src]

Returns frame pixel format.

pub fn set_width(&mut self, width: usize)[src]

Sets new frame width.

pub fn set_height(&mut self, height: usize)[src]

Sets new frame height.

pub fn size(&self, align: usize) -> usize[src]

Returns video stream size with the specified alignment.

Trait Implementations

impl Clone for VideoInfo[src]

impl Debug for VideoInfo[src]

impl Display for VideoInfo[src]

impl From<VideoInfo> for MediaKind[src]

impl PartialEq<VideoInfo> for VideoInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.