Struct rutabaga_gfx::DrmFormat
source · pub struct DrmFormat(pub u32);
Expand description
A fourcc format identifier.
Tuple Fields§
§0: u32
Implementations§
source§impl DrmFormat
impl DrmFormat
sourcepub fn new(a: u8, b: u8, c: u8, d: u8) -> DrmFormat
pub fn new(a: u8, b: u8, c: u8, d: u8) -> DrmFormat
Constructs a format identifer using a fourcc byte sequence.
sourcepub fn planar_layout(&self) -> RutabagaResult<PlanarLayout>
pub fn planar_layout(&self) -> RutabagaResult<PlanarLayout>
Returns the planar layout of the format.
Trait Implementations§
source§impl PartialEq for DrmFormat
impl PartialEq for DrmFormat
impl Copy for DrmFormat
impl Eq for DrmFormat
impl StructuralPartialEq for DrmFormat
Auto Trait Implementations§
impl RefUnwindSafe for DrmFormat
impl Send for DrmFormat
impl Sync for DrmFormat
impl Unpin for DrmFormat
impl UnwindSafe for DrmFormat
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