[−][src]Struct av_data::frame::VideoInfo
Video stream information.
Fields
width: usizeFrame width.
height: usizeFrame height.
flipped: boolFrame is stored downside up.
frame_type: FrameTypeFrame type.
format: Arc<Formaton>Frame pixel format.
bits: u8Declared bits per sample.
Implementations
impl VideoInfo[src]
pub fn new(
width: usize,
height: usize,
flipped: bool,
frame_type: FrameType,
format: Arc<Formaton>
) -> Self[src]
width: usize,
height: usize,
flipped: bool,
frame_type: FrameType,
format: Arc<Formaton>
) -> Self
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
impl RefUnwindSafe for VideoInfo[src]
impl Send for VideoInfo[src]
impl Sync for VideoInfo[src]
impl Unpin for VideoInfo[src]
impl UnwindSafe for VideoInfo[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,