#[repr(C, packed(1))]pub struct SdrFormat { /* private fields */ }
Expand description
SDR format definition
Implementations§
Source§impl SdrFormat
impl SdrFormat
Sourcepub fn pixel_format(&self) -> FourCc
pub fn pixel_format(&self) -> FourCc
Pixel format
Sourcepub fn buffer_size(&self) -> u32
pub fn buffer_size(&self) -> u32
Buffer size
Source§impl SdrFormat
impl SdrFormat
Sourcepub fn set_pixel_format(&mut self, val: FourCc) -> &mut Self
pub fn set_pixel_format(&mut self, val: FourCc) -> &mut Self
Pixel format
Sourcepub fn set_buffer_size(&mut self, val: u32) -> &mut Self
pub fn set_buffer_size(&mut self, val: u32) -> &mut Self
Buffer size
Trait Implementations§
Source§impl IsFormatData for SdrFormat
impl IsFormatData for SdrFormat
Source§const TYPES: &'static [BufferType]
const TYPES: &'static [BufferType]
Buffer types which corresponds to format type
impl Copy for SdrFormat
Auto Trait Implementations§
impl Freeze for SdrFormat
impl RefUnwindSafe for SdrFormat
impl Send for SdrFormat
impl Sync for SdrFormat
impl Unpin for SdrFormat
impl UnwindSafe for SdrFormat
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