Struct libjxl_sys::JxlColorEncoding
source · [−]#[repr(C)]pub struct JxlColorEncoding {
pub color_space: JxlColorSpace,
pub white_point: JxlWhitePoint,
pub white_point_xy: [f64; 2],
pub primaries: JxlPrimaries,
pub primaries_red_xy: [f64; 2],
pub primaries_green_xy: [f64; 2],
pub primaries_blue_xy: [f64; 2],
pub transfer_function: JxlTransferFunction,
pub gamma: f64,
pub rendering_intent: JxlRenderingIntent,
}
Expand description
Color encoding of the image as structured information.
Fields
color_space: JxlColorSpace
Color space of the image data.
white_point: JxlWhitePoint
Built-in white point. If this value is JXL_WHITE_POINT_CUSTOM, must use the numerical whitepoint values from white_point_xy.
white_point_xy: [f64; 2]
Numerical whitepoint values in CIE xy space.
primaries: JxlPrimaries
Built-in RGB primaries. If this value is JXL_PRIMARIES_CUSTOM, must use the numerical primaries values below. This field and the custom values below are unused and must be ignored if the color space is JXL_COLOR_SPACE_GRAY or JXL_COLOR_SPACE_XYB.
primaries_red_xy: [f64; 2]
Numerical red primary values in CIE xy space.
primaries_green_xy: [f64; 2]
Numerical green primary values in CIE xy space.
primaries_blue_xy: [f64; 2]
Numerical blue primary values in CIE xy space.
transfer_function: JxlTransferFunction
Transfer function if have_gamma is 0
gamma: f64
Gamma value used when transfer_function is JXL_TRANSFER_FUNCTION_GAMMA
rendering_intent: JxlRenderingIntent
Rendering intent defined for the color profile.
Trait Implementations
sourceimpl Clone for JxlColorEncoding
impl Clone for JxlColorEncoding
sourcefn clone(&self) -> JxlColorEncoding
fn clone(&self) -> JxlColorEncoding
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for JxlColorEncoding
impl Debug for JxlColorEncoding
sourceimpl Default for JxlColorEncoding
impl Default for JxlColorEncoding
impl Copy for JxlColorEncoding
Auto Trait Implementations
impl RefUnwindSafe for JxlColorEncoding
impl Send for JxlColorEncoding
impl Sync for JxlColorEncoding
impl Unpin for JxlColorEncoding
impl UnwindSafe for JxlColorEncoding
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more