pub struct ImageColorInfo {
pub encoding: ImageEncoding,
pub range: ColorRange,
pub matrix: YuvMatrix,
pub primaries: ColorPrimaries,
pub transfer: TransferFunction,
pub chroma_siting: Option<ChromaSiting>,
}Expand description
Stable metadata describing how to interpret pixel bytes for streaming images (ADR 0124).
Fields§
§encoding: ImageEncoding§range: ColorRange§matrix: YuvMatrix§primaries: ColorPrimaries§transfer: TransferFunction§chroma_siting: Option<ChromaSiting>Implementations§
Source§impl ImageColorInfo
impl ImageColorInfo
pub const fn srgb_rgba() -> ImageColorInfo
pub const fn linear_rgba() -> ImageColorInfo
Trait Implementations§
Source§impl Clone for ImageColorInfo
impl Clone for ImageColorInfo
Source§fn clone(&self) -> ImageColorInfo
fn clone(&self) -> ImageColorInfo
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 ImageColorInfo
impl Debug for ImageColorInfo
Source§impl Hash for ImageColorInfo
impl Hash for ImageColorInfo
Source§impl PartialEq for ImageColorInfo
impl PartialEq for ImageColorInfo
impl Copy for ImageColorInfo
impl Eq for ImageColorInfo
impl StructuralPartialEq for ImageColorInfo
Auto Trait Implementations§
impl Freeze for ImageColorInfo
impl RefUnwindSafe for ImageColorInfo
impl Send for ImageColorInfo
impl Sync for ImageColorInfo
impl Unpin for ImageColorInfo
impl UnsafeUnpin for ImageColorInfo
impl UnwindSafe for ImageColorInfo
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