#[non_exhaustive]pub enum CicpError {
NonIdentityMatrix(u8),
UnmappedPrimaries(u8),
UnmappedTransfer(u8),
InvalidFullRangeFlag(u8),
MalformedTag,
InvalidCustomPrimaries,
}Expand description
Failure parsing a raw wire CICP payload or projecting a Cicp / CicpTag into an RGB ColorSpace.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonIdentityMatrix(u8)
Non-zero matrix coefficients (YCbCr, ICtCp, etc.) require component reconstruction before RGB projection.
UnmappedPrimaries(u8)
color_primaries code has no built-in Primaries mapping (and no custom-primaries extension was supplied).
UnmappedTransfer(u8)
transfer_characteristics code has no built-in Transfer mapping.
InvalidFullRangeFlag(u8)
Wire video_full_range_flag byte was neither 0 nor 1 (ITU-T H.273 §8.3 / PNG 3 §11.3.2.1).
MalformedTag
Raw ICC cicpType tag bytes had an invalid length, type signature, or non-zero reserved field.
InvalidCustomPrimaries
ICC cicpType 32-byte custom-primaries extension contained invalid, non-physical, or degenerate chromaticities.
Trait Implementations§
impl Copy for CicpError
impl Eq for CicpError
Source§impl Error for CicpError
impl Error for CicpError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for CicpError
Auto Trait Implementations§
impl Freeze for CicpError
impl RefUnwindSafe for CicpError
impl Send for CicpError
impl Sync for CicpError
impl Unpin for CicpError
impl UnsafeUnpin for CicpError
impl UnwindSafe for CicpError
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