#[repr(C)]pub struct VSLFormat {
pub fourcc: u32,
pub description: [c_char; 32],
pub flags: u32,
pub compressed: bool,
pub resolutions: *mut VSLResolution,
pub num_resolutions: usize,
}Expand description
@struct VSLFormat @brief Pixel format descriptor
Describes a pixel format supported by a V4L2 device, including its fourcc code, human-readable description, and optionally the supported resolutions.
@since 2.2
Fields§
§fourcc: u32V4L2 pixel format fourcc code (e.g., V4L2_PIX_FMT_NV12)
description: [c_char; 32]Human-readable description from driver
flags: u32V4L2_FMT_FLAG_* flags
compressed: boolTrue if this is a compressed format (H.264, HEVC, MJPEG, etc.)
resolutions: *mut VSLResolutionSupported resolutions (populated by vsl_v4l2_enum_resolutions)
num_resolutions: usizeNumber of valid entries in resolutions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VSLFormat
impl RefUnwindSafe for VSLFormat
impl !Send for VSLFormat
impl !Sync for VSLFormat
impl Unpin for VSLFormat
impl UnsafeUnpin for VSLFormat
impl UnwindSafe for VSLFormat
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