Enum v4l::format::colorspace::Colorspace
source · #[repr(u32)]pub enum Colorspace {
Default = 0,
SMPTE170M = 1,
SMPTE240M = 2,
Rec709 = 3,
NTSC = 5,
EBUTech3212 = 6,
JPEG = 7,
SRGB = 8,
OPRGB = 9,
Rec2020 = 10,
RAW = 11,
DCIP3 = 12,
}
Expand description
Colorspace for pixels.
The driver decides this for capture streams and the user sets it for output streams.
Variants§
Default = 0
driver will pick default
SMPTE170M = 1
SMPTE 170M
SMPTE240M = 2
SMPTE 240M
Rec709 = 3
Rec. 709, aka BT.709
NTSC = 5
NTSC
EBUTech3212 = 6
EBU Tech 3213
JPEG = 7
use for JPEGs: sRGB colorspace, YCbCr encoding, and full range quantization
SRGB = 8
sRGB
OPRGB = 9
opRGB
Rec2020 = 10
Rec. 2020, aka BT.2020
RAW = 11
for RAW images
DCIP3 = 12
DCI-P3
Trait Implementations§
source§impl Clone for Colorspace
impl Clone for Colorspace
source§fn clone(&self) -> Colorspace
fn clone(&self) -> Colorspace
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 moresource§impl Debug for Colorspace
impl Debug for Colorspace
source§impl Display for Colorspace
impl Display for Colorspace
source§impl TryFrom<u32> for Colorspace
impl TryFrom<u32> for Colorspace
impl Copy for Colorspace
Auto Trait Implementations§
impl Freeze for Colorspace
impl RefUnwindSafe for Colorspace
impl Send for Colorspace
impl Sync for Colorspace
impl Unpin for Colorspace
impl UnwindSafe for Colorspace
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)