Enum libvda::PixelFormat
source · #[repr(u32)]
pub enum PixelFormat {
YV12,
NV12,
}
Expand description
Represents a raw pixel format.
Variants§
Implementations§
source§impl PixelFormat
impl PixelFormat
pub(crate) fn new(f: c_uint) -> Result<PixelFormat>
pub(crate) fn to_raw_pixel_format(self) -> c_uint
pub(crate) unsafe fn from_raw_parts(
data: *const c_uint,
len: usize
) -> Result<Vec<Self>>
Trait Implementations§
source§impl Clone for PixelFormat
impl Clone for PixelFormat
source§fn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
Returns a copy 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 more