pub enum BufferFormat {
Argb = 0,
Rgb = 1,
Nv12 = 2,
Yuv444p = 3,
Rgba = 4,
Bgra = 5,
}Variants§
Argb = 0
Data will be converted to ARGB8888 byte-order format. 32 bpp.
Rgb = 1
Data will be converted to RGB888 byte-order format. 24 bpp.
Nv12 = 2
Data will be converted to NV12 format using HDTV weights according to ITU-R BT.709. 12 bpp.
Yuv444p = 3
Data will be converted to YUV 444 planar format using HDTV weights according to ITU-R BT.709. 24 bpp
Rgba = 4
Data will be converted to RGBA8888 byte-order format. 32 bpp.
Bgra = 5
Native format. No pixel conversion needed. BGRA8888 byte-order format. 32 bpp.
Trait Implementations§
Source§impl Clone for BufferFormat
impl Clone for BufferFormat
Source§fn clone(&self) -> BufferFormat
fn clone(&self) -> BufferFormat
Returns a duplicate 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 BufferFormat
impl Debug for BufferFormat
impl Copy for BufferFormat
Auto Trait Implementations§
impl Freeze for BufferFormat
impl RefUnwindSafe for BufferFormat
impl Send for BufferFormat
impl Sync for BufferFormat
impl Unpin for BufferFormat
impl UnwindSafe for BufferFormat
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