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: 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§
Source§impl 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 Freeze for VideoInfo
impl RefUnwindSafe for VideoInfo
impl Send for VideoInfo
impl Sync for VideoInfo
impl Unpin for VideoInfo
impl UnwindSafe for VideoInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more