pub enum PixelFormat {
BGRA,
l10r,
YCbCr_420v,
YCbCr_420f,
}Expand description
Pixel format for captured video frames
Specifies the layout and encoding of pixel data in captured frames.
§Examples
use screencapturekit::stream::configuration::PixelFormat;
let format = PixelFormat::BGRA;
println!("Format: {}", format); // Prints "BGRA"Variants§
BGRA
Packed little endian ARGB8888 (most common)
l10r
Packed little endian ARGB2101010 (10-bit color)
YCbCr_420v
Two-plane “video” range YCbCr 4:2:0
YCbCr_420f
Two-plane “full” range YCbCr 4:2:0
Trait Implementations§
Source§impl Clone for PixelFormat
impl Clone for PixelFormat
Source§fn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
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 PixelFormat
impl Debug for PixelFormat
Source§impl Default for PixelFormat
impl Default for PixelFormat
Source§fn default() -> PixelFormat
fn default() -> PixelFormat
Returns the “default value” for a type. Read more
Source§impl Display for PixelFormat
impl Display for PixelFormat
Source§impl From<FourCharCode> for PixelFormat
impl From<FourCharCode> for PixelFormat
Source§fn from(val: FourCharCode) -> Self
fn from(val: FourCharCode) -> Self
Converts to this type from the input type.
Source§impl From<PixelFormat> for FourCharCode
impl From<PixelFormat> for FourCharCode
Source§fn from(val: PixelFormat) -> Self
fn from(val: PixelFormat) -> Self
Converts to this type from the input type.
Source§impl From<u32> for PixelFormat
impl From<u32> for PixelFormat
Source§impl Hash for PixelFormat
impl Hash for PixelFormat
Source§impl PartialEq for PixelFormat
impl PartialEq for PixelFormat
impl Copy for PixelFormat
impl Eq for PixelFormat
impl StructuralPartialEq for PixelFormat
Auto Trait Implementations§
impl Freeze for PixelFormat
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnwindSafe for PixelFormat
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