#[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: JxlColorSpaceColor space of the image data.
white_point: JxlWhitePointBuilt-in white point. If this value is JxlWhitePoint::Custom, must
use the numerical white point values from Self::white_point_xy.
white_point_xy: [f64; 2]Numerical whitepoint values in CIE xy space.
primaries: JxlPrimariesBuilt-in RGB primaries. If this value is JxlPrimaries::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
JxlColorSpace::Gray or JxlColorSpace::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: JxlTransferFunctionTransfer function if have_gamma is 0.
gamma: f64Gamma value used when Self::transfer_function is JxlTransferFunction::Gamma.
rendering_intent: JxlRenderingIntentRendering intent defined for the color profile.
Trait Implementations§
Source§impl Clone for JxlColorEncoding
impl Clone for JxlColorEncoding
Source§fn clone(&self) -> JxlColorEncoding
fn clone(&self) -> JxlColorEncoding
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more