Enum ravif::ColorSpace
source · pub enum ColorSpace {
YCbCr,
RGB,
}
Expand description
Variants§
YCbCr
Standard color space for photographic content. Usually the best choice. This library always uses full-resolution color (4:4:4). This library will automatically choose between BT.601 or BT.709.
RGB
RGB channels are encoded without colorspace transformation.
Usually results in larger file sizes, and is less compatible than YCbCr
.
Use only if the content really makes use of RGB, e.g. anaglyph images or RGB subpixel anti-aliasing.
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
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