pub struct FrameLayout {
pub width: u32,
pub height: u32,
pub format: PixelFormat,
pub planes: Vec<PlaneLayout>,
pub color: ColorInfo,
pub orientation: Orientation,
pub bottom_up: bool,
}Expand description
Values for FrameLayout.
Fields§
§width: u32Frame width in pixels.
height: u32Frame height in pixels.
format: PixelFormatPixel or capture format.
planes: Vec<PlaneLayout>Plane layouts in storage order.
color: ColorInfoColor-space metadata.
orientation: OrientationDisplay orientation metadata.
bottom_up: boolWhether row zero is the bottom image row (e.g. a Windows RGB DIB).
Implementations§
Source§impl FrameLayout
impl FrameLayout
Sourcepub fn validate(&self, length: usize) -> CameraResult<()>
pub fn validate(&self, length: usize) -> CameraResult<()>
Performs the validate operation.
Trait Implementations§
Source§impl Clone for FrameLayout
impl Clone for FrameLayout
Source§impl Debug for FrameLayout
impl Debug for FrameLayout
impl Eq for FrameLayout
Source§impl PartialEq for FrameLayout
impl PartialEq for FrameLayout
impl StructuralPartialEq for FrameLayout
Auto Trait Implementations§
impl Forget for FrameLayout
impl Freeze for FrameLayout
impl RefUnwindSafe for FrameLayout
impl Send for FrameLayout
impl Sync for FrameLayout
impl Unpin for FrameLayout
impl UnsafeUnpin for FrameLayout
impl UnwindSafe for FrameLayout
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