pub struct SourceFormat {
pub fourcc: u32,
pub modifier: u64,
pub width: u32,
pub height: u32,
}Expand description
What a source’s buffer intrinsically is.
Width and height are the buffer’s own dimensions, not the on-screen rectangle.
Fields§
§fourcc: u32DRM FourCC.
modifier: u64Layout modifier.
width: u32Buffer width in pixels.
height: u32Buffer height in pixels.
Trait Implementations§
Source§impl Clone for SourceFormat
impl Clone for SourceFormat
impl Copy for SourceFormat
Source§impl Debug for SourceFormat
impl Debug for SourceFormat
Source§impl Default for SourceFormat
impl Default for SourceFormat
impl Eq for SourceFormat
Source§impl PartialEq for SourceFormat
impl PartialEq for SourceFormat
impl StructuralPartialEq for SourceFormat
Auto Trait Implementations§
impl Freeze for SourceFormat
impl RefUnwindSafe for SourceFormat
impl Send for SourceFormat
impl Sync for SourceFormat
impl Unpin for SourceFormat
impl UnsafeUnpin for SourceFormat
impl UnwindSafe for SourceFormat
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