pub struct VideoInfo {
pub width: usize,
pub height: usize,
pub flipped: bool,
pub frame_type: FrameType,
pub format: Arc<Formaton>,
pub bits: u8,
}Expand description
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
sourceimpl VideoInfo
impl VideoInfo
sourcepub fn new(
width: usize,
height: usize,
flipped: bool,
frame_type: FrameType,
format: Arc<Formaton>
) -> Self
pub fn new(
width: usize,
height: usize,
flipped: bool,
frame_type: FrameType,
format: Arc<Formaton>
) -> Self
Constructs a new VideoInfo instance.
sourcepub fn get_height(&self) -> usize
pub fn get_height(&self) -> usize
Returns frame height.
sourcepub fn is_flipped(&self) -> bool
pub fn is_flipped(&self) -> bool
Returns frame orientation.
sourcepub fn get_frame_type(&self) -> &FrameType
pub fn get_frame_type(&self) -> &FrameType
Returns frame type.
sourcepub fn get_format(&self) -> Formaton
pub fn get_format(&self) -> Formaton
Returns frame pixel format.
sourcepub fn set_height(&mut self, height: usize)
pub fn set_height(&mut self, height: usize)
Sets new frame height.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VideoInfo
impl Send for VideoInfo
impl Sync for VideoInfo
impl Unpin for VideoInfo
impl UnwindSafe for VideoInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more