pub struct MbusFrameFormat {
pub width: u32,
pub height: u32,
pub code: MediaBusFmt,
pub field: u32,
pub colorspace: u32,
pub quantization: u16,
pub xfer_func: u16,
pub flags: MbusFrameFormatFlags,
}
Fields§
§width: u32
Image width in pixels.
height: u32
Image height in pixels. If field is one of V4L2_FIELD_TOP, V4L2_FIELD_BOTTOM or V4L2_FIELD_ALTERNATE then height refers to the number of lines in the field, otherwise it refers to the number of lines in the frame (which is twice the field height for interlaced formats).
code: MediaBusFmt
§field: u32
Field order. Zero for metadata mbus codes.
colorspace: u32
Image colorspace. If the driver cannot handle the requested conversion, it will return another supported colorspace.
quantization: u16
Quantization range. If the driver cannot handle the requested conversion, it will return another supported quantization.
xfer_func: u16
Transfer function. If the driver cannot handle the requested conversion, it will return another supported transfer function.
flags: MbusFrameFormatFlags
Trait Implementations§
Source§impl Clone for MbusFrameFormat
impl Clone for MbusFrameFormat
Source§fn clone(&self) -> MbusFrameFormat
fn clone(&self) -> MbusFrameFormat
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MbusFrameFormat
impl Debug for MbusFrameFormat
Source§impl From<MbusFrameFormat> for v4l2_mbus_framefmt
impl From<MbusFrameFormat> for v4l2_mbus_framefmt
Source§fn from(value: MbusFrameFormat) -> Self
fn from(value: MbusFrameFormat) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MbusFrameFormat
impl RefUnwindSafe for MbusFrameFormat
impl Send for MbusFrameFormat
impl Sync for MbusFrameFormat
impl Unpin for MbusFrameFormat
impl UnwindSafe for MbusFrameFormat
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