Flutter Engine
The Flutter Engine
skcms_public.h
Go to the documentation of this file.
1/*
2 * Copyright 2018 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#pragma once
9
10// skcms_public.h contains the entire public API for skcms.
11
12#ifndef SKCMS_API
13 #define SKCMS_API
14#endif
15
16#include <stdbool.h>
17#include <stddef.h>
18#include <stdint.h>
19#include <string.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25// A row-major 3x3 matrix (ie vals[row][col])
26typedef struct skcms_Matrix3x3 {
27 float vals[3][3];
29
30// It is _not_ safe to alias the pointers to invert in-place.
33
34// A row-major 3x4 matrix (ie vals[row][col])
35typedef struct skcms_Matrix3x4 {
36 float vals[3][4];
38
39// A transfer function mapping encoded values to linear values,
40// represented by this 7-parameter piecewise function:
41//
42// linear = sign(encoded) * (c*|encoded| + f) , 0 <= |encoded| < d
43// = sign(encoded) * ((a*|encoded| + b)^g + e), d <= |encoded|
44//
45// (A simple gamma transfer function sets g to gamma and a to 1.)
46typedef struct skcms_TransferFunction {
47 float g, a,b,c,d,e,f;
49
53
54typedef enum skcms_TFType {
61
62// Identify which kind of transfer function is encoded in an skcms_TransferFunction
64
65// We can jam a couple alternate transfer function forms into skcms_TransferFunction,
66// including those matching the general forms of the SMPTE ST 2084 PQ function or HLG.
67//
68// PQish:
69// max(A + B|encoded|^C, 0)
70// linear = sign(encoded) * (------------------------) ^ F
71// D + E|encoded|^C
73 float A, float B, float C,
74 float D, float E, float F);
75// HLGish:
76// { K * sign(encoded) * ( (R|encoded|)^G ) when 0 <= |encoded| <= 1/R
77// linear = { K * sign(encoded) * ( e^(a(|encoded|-c)) + b ) when 1/R < |encoded|
79 float K, float R, float G,
80 float a, float b, float c);
81
82// Compatibility shim with K=1 for old callers.
84 float R, float G,
85 float a, float b, float c) {
86 return skcms_TransferFunction_makeScaledHLGish(fn, 1.0f, R,G, a,b,c);
87}
88
89// PQ mapping encoded [0,1] to linear [0,1].
91 return skcms_TransferFunction_makePQish(tf, -107/128.0f, 1.0f, 32/2523.0f
92 , 2413/128.0f, -2392/128.0f, 8192/1305.0f);
93}
94// HLG mapping encoded [0,1] to linear [0,12].
96 return skcms_TransferFunction_makeHLGish(tf, 2.0f, 2.0f
97 , 1/0.17883277f, 0.28466892f, 0.55991073f);
98}
99
100// Is this an ordinary sRGB-ish transfer function, or one of the HDR forms we support?
104
105// Unified representation of 'curv' or 'para' tag data, or a 1D table from 'mft1' or 'mft2'
106typedef union skcms_Curve {
107 struct {
110 };
111 struct {
113 const uint8_t* table_8;
114 const uint8_t* table_16;
115 };
117
118// Complex transforms between device space (A) and profile connection space (B):
119// A2B: device -> [ "A" curves -> CLUT ] -> [ "M" curves -> matrix ] -> "B" curves -> PCS
120// B2A: device <- [ "A" curves <- CLUT ] <- [ "M" curves <- matrix ] <- "B" curves <- PCS
121
122typedef struct skcms_A2B {
123 // Optional: N 1D "A" curves, followed by an N-dimensional CLUT.
124 // If input_channels == 0, these curves and CLUT are skipped,
125 // Otherwise, input_channels must be in [1, 4].
128 uint8_t grid_points[4];
129 const uint8_t* grid_8;
130 const uint8_t* grid_16;
131
132 // Optional: 3 1D "M" curves, followed by a color matrix.
133 // If matrix_channels == 0, these curves and matrix are skipped,
134 // Otherwise, matrix_channels must be 3.
138
139 // Required: 3 1D "B" curves. Always present, and output_channels must be 3.
143
144typedef struct skcms_B2A {
145 // Required: 3 1D "B" curves. Always present, and input_channels must be 3.
148
149 // Optional: a color matrix, followed by 3 1D "M" curves.
150 // If matrix_channels == 0, this matrix and these curves are skipped,
151 // Otherwise, matrix_channels must be 3.
155
156 // Optional: an N-dimensional CLUT, followed by N 1D "A" curves.
157 // If output_channels == 0, this CLUT and these curves are skipped,
158 // Otherwise, output_channels must be in [1, 4].
160 uint8_t grid_points[4];
161 const uint8_t* grid_8;
162 const uint8_t* grid_16;
165
166typedef struct skcms_CICP {
172
173typedef struct skcms_ICCProfile {
174 const uint8_t* buffer;
175
176 uint32_t size;
178 uint32_t pcs;
179 uint32_t tag_count;
180
181 // skcms_Parse() will set commonly-used fields for you when possible:
182
183 // If we can parse red, green and blue transfer curves from the profile,
184 // trc will be set to those three curves, and has_trc will be true.
187
188 // If this profile's gamut can be represented by a 3x3 transform to XYZD50,
189 // skcms_Parse() sets toXYZD50 to that transform and has_toXYZD50 to true.
192
193 // If the profile has a valid A2B0 or A2B1 tag, skcms_Parse() sets A2B to
194 // that data, and has_A2B to true. skcms_ParseWithA2BPriority() does the
195 // same following any user-provided prioritization of A2B0, A2B1, or A2B2.
198
199 // If the profile has a valid B2A0 or B2A1 tag, skcms_Parse() sets B2A to
200 // that data, and has_B2A to true. skcms_ParseWithA2BPriority() does the
201 // same following any user-provided prioritization of B2A0, B2A1, or B2A2.
204
205 // If the profile has a valid CICP tag, skcms_Parse() sets CICP to that data,
206 // and has_CICP to true.
210
211// The sRGB color profile is so commonly used that we offer a canonical skcms_ICCProfile for it.
213// Ditto for XYZD50, the most common profile connection space.
215
219
220// Practical equality test for two skcms_ICCProfiles.
221// The implementation is subject to change, but it will always try to answer
222// "can I substitute A for B?" and "can I skip transforming from A to B?".
224 const skcms_ICCProfile* B);
225
226// Practical test that answers: Is curve roughly the inverse of inv_tf? Typically used by passing
227// the inverse of a known parametric transfer function (like sRGB), to determine if a particular
228// curve is very close to sRGB.
230 const skcms_TransferFunction* inv_tf);
231
232// Similar to above, answering the question for all three TRC curves of the given profile. Again,
233// passing skcms_sRGB_InverseTransferFunction as inv_tf will answer the question:
234// "Does this profile have a transfer function that is very close to sRGB?"
236 const skcms_TransferFunction* inv_tf);
237
238// Parse an ICC profile and return true if possible, otherwise return false.
239// Selects an A2B profile (if present) according to priority list (each entry 0-2).
240// The buffer is not copied; it must remain valid as long as the skcms_ICCProfile will be used.
241SKCMS_API bool skcms_ParseWithA2BPriority(const void*, size_t,
242 const int priority[], int priorities,
244
245static inline bool skcms_Parse(const void* buf, size_t len, skcms_ICCProfile* profile) {
246 // For continuity of existing user expectations,
247 // prefer A2B0 (perceptual) over A2B1 (relative colormetric), and ignore A2B2 (saturation).
248 const int priority[] = {0,1};
250 priority, sizeof(priority)/sizeof(*priority),
251 profile);
252}
253
256 float* max_error);
257
259SKCMS_API bool skcms_GetWTPT(const skcms_ICCProfile*, float xyz[3]);
260
261// These are common ICC signature values
262enum {
263 // data_color_space
267
268 // pcs
271};
272
273typedef enum skcms_PixelFormat {
278
281
284
289 skcms_PixelFormat_RGBA_8888_sRGB, // Automatic sRGB encoding / decoding.
290 skcms_PixelFormat_BGRA_8888_sRGB, // (Generally used with linear transfer functions.)
291
294
295 skcms_PixelFormat_RGB_161616LE, // Little-endian. Pointers must be 16-bit aligned.
299
300 skcms_PixelFormat_RGB_161616BE, // Big-endian. Pointers must be 16-bit aligned.
304
305 skcms_PixelFormat_RGB_hhh_Norm, // 1-5-10 half-precision float in [0,1]
306 skcms_PixelFormat_BGR_hhh_Norm, // Pointers must be 16-bit aligned.
309
310 skcms_PixelFormat_RGB_hhh, // 1-5-10 half-precision float.
311 skcms_PixelFormat_BGR_hhh, // Pointers must be 16-bit aligned.
314
315 skcms_PixelFormat_RGB_fff, // 1-8-23 single-precision float (the normal kind).
316 skcms_PixelFormat_BGR_fff, // Pointers must be 32-bit aligned.
319
320 skcms_PixelFormat_RGB_101010x_XR, // Note: This is located here to signal no clamping.
321 skcms_PixelFormat_BGR_101010x_XR, // Compatible with MTLPixelFormatBGR10_XR.
322 skcms_PixelFormat_RGBA_10101010_XR, // Note: This is located here to signal no clamping.
323 skcms_PixelFormat_BGRA_10101010_XR, // Compatible with MTLPixelFormatBGRA10_XR.
325
326// We always store any alpha channel linearly. In the chart below, tf-1() is the inverse
327// transfer function for the given color profile (applying the transfer function linearizes).
328
329// We treat opaque as a strong requirement, not just a performance hint: we will ignore
330// any source alpha and treat it as 1.0, and will make sure that any destination alpha
331// channel is filled with the equivalent of 1.0.
332
333// We used to offer multiple types of premultiplication, but now just one, PremulAsEncoded.
334// This is the premul you're probably used to working with.
335
336typedef enum skcms_AlphaFormat {
337 skcms_AlphaFormat_Opaque, // alpha is always opaque
338 // tf-1(r), tf-1(g), tf-1(b), 1.0
339 skcms_AlphaFormat_Unpremul, // alpha and color are unassociated
340 // tf-1(r), tf-1(g), tf-1(b), a
341 skcms_AlphaFormat_PremulAsEncoded, // premultiplied while encoded
342 // tf-1(r)*a, tf-1(g)*a, tf-1(b)*a, a
344
345// Convert npixels pixels from src format and color profile to dst format and color profile
346// and return true, otherwise return false. It is safe to alias dst == src if dstFmt == srcFmt.
347SKCMS_API bool skcms_Transform(const void* src,
348 skcms_PixelFormat srcFmt,
349 skcms_AlphaFormat srcAlpha,
350 const skcms_ICCProfile* srcProfile,
351 void* dst,
352 skcms_PixelFormat dstFmt,
353 skcms_AlphaFormat dstAlpha,
354 const skcms_ICCProfile* dstProfile,
355 size_t npixels);
356
357// If profile can be used as a destination in skcms_Transform, return true. Otherwise, attempt to
358// rewrite it with approximations where reasonable. If successful, return true. If no reasonable
359// approximation exists, leave the profile unchanged and return false.
361
362// If profile can be used as a destination with a single parametric transfer function (ie for
363// rasterization), return true. Otherwise, attempt to rewrite it with approximations where
364// reasonable. If successful, return true. If no reasonable approximation exists, leave the
365// profile unchanged and return false.
367
368// Returns a matrix to adapt XYZ color from given the whitepoint to D50.
369SKCMS_API bool skcms_AdaptToXYZD50(float wx, float wy,
370 skcms_Matrix3x3* toXYZD50);
371
372// Returns a matrix to convert RGB color into XYZ adapted to D50, given the
373// primaries and whitepoint of the RGB model.
374SKCMS_API bool skcms_PrimariesToXYZD50(float rx, float ry,
375 float gx, float gy,
376 float bx, float by,
377 float wx, float wy,
378 skcms_Matrix3x3* toXYZD50);
379
380// Call before your first call to skcms_Transform() to skip runtime CPU detection.
382
383// Utilities for programmatically constructing profiles
384static inline void skcms_Init(skcms_ICCProfile* p) {
385 memset(p, 0, sizeof(*p));
386 p->data_color_space = skcms_Signature_RGB;
387 p->pcs = skcms_Signature_XYZ;
388}
389
391 const skcms_TransferFunction* tf) {
392 p->has_trc = true;
393 for (int i = 0; i < 3; ++i) {
394 p->trc[i].table_entries = 0;
395 p->trc[i].parametric = *tf;
396 }
397}
398
399static inline void skcms_SetXYZD50(skcms_ICCProfile* p, const skcms_Matrix3x3* m) {
400 p->has_toXYZD50 = true;
401 p->toXYZD50 = *m;
402}
403
404#ifdef __cplusplus
405}
406#endif
static const int K
Definition: daa.cpp:21
static bool b
struct MyStruct a[10]
#define R(r)
dst
Definition: cp.py:12
struct skcms_ICCProfile skcms_ICCProfile
SKCMS_API bool skcms_PrimariesToXYZD50(float rx, float ry, float gx, float gy, float bx, float by, float wx, float wy, skcms_Matrix3x3 *toXYZD50)
Definition: skcms.cc:1747
struct skcms_A2B skcms_A2B
SKCMS_API bool skcms_AdaptToXYZD50(float wx, float wy, skcms_Matrix3x3 *toXYZD50)
Definition: skcms.cc:1706
SKCMS_API skcms_Matrix3x3 skcms_Matrix3x3_concat(const skcms_Matrix3x3 *, const skcms_Matrix3x3 *)
Definition: skcms.cc:1849
skcms_PixelFormat
Definition: skcms_public.h:273
@ skcms_PixelFormat_BGRA_ffff
Definition: skcms_public.h:318
@ skcms_PixelFormat_RGBA_8888_sRGB
Definition: skcms_public.h:289
@ skcms_PixelFormat_BGRA_hhhh
Definition: skcms_public.h:313
@ skcms_PixelFormat_RGBA_16161616BE
Definition: skcms_public.h:302
@ skcms_PixelFormat_A_8_
Definition: skcms_public.h:275
@ skcms_PixelFormat_RGB_161616LE
Definition: skcms_public.h:295
@ skcms_PixelFormat_BGR_hhh_Norm
Definition: skcms_public.h:306
@ skcms_PixelFormat_BGR_101010x_XR
Definition: skcms_public.h:321
@ skcms_PixelFormat_RGBA_ffff
Definition: skcms_public.h:317
@ skcms_PixelFormat_BGR_fff
Definition: skcms_public.h:316
@ skcms_PixelFormat_RGBA_1010102
Definition: skcms_public.h:292
@ skcms_PixelFormat_BGR_888
Definition: skcms_public.h:286
@ skcms_PixelFormat_BGRA_8888
Definition: skcms_public.h:288
@ skcms_PixelFormat_BGRA_10101010_XR
Definition: skcms_public.h:323
@ skcms_PixelFormat_RGBA_hhhh
Definition: skcms_public.h:312
@ skcms_PixelFormat_RGB_fff
Definition: skcms_public.h:315
@ skcms_PixelFormat_RGB_hhh_Norm
Definition: skcms_public.h:305
@ skcms_PixelFormat_BGR_161616BE
Definition: skcms_public.h:301
@ skcms_PixelFormat_RGBA_8888
Definition: skcms_public.h:287
@ skcms_PixelFormat_BGRA_hhhh_Norm
Definition: skcms_public.h:308
@ skcms_PixelFormat_RGB_hhh
Definition: skcms_public.h:310
@ skcms_PixelFormat_BGRA_16161616BE
Definition: skcms_public.h:303
@ skcms_PixelFormat_RGB_888
Definition: skcms_public.h:285
@ skcms_PixelFormat_G_8
Definition: skcms_public.h:276
@ skcms_PixelFormat_BGR_hhh
Definition: skcms_public.h:311
@ skcms_PixelFormat_G_8_
Definition: skcms_public.h:277
@ skcms_PixelFormat_BGR_565
Definition: skcms_public.h:280
@ skcms_PixelFormat_ABGR_4444
Definition: skcms_public.h:282
@ skcms_PixelFormat_BGRA_8888_sRGB
Definition: skcms_public.h:290
@ skcms_PixelFormat_A_8
Definition: skcms_public.h:274
@ skcms_PixelFormat_ARGB_4444
Definition: skcms_public.h:283
@ skcms_PixelFormat_BGR_161616LE
Definition: skcms_public.h:296
@ skcms_PixelFormat_RGB_565
Definition: skcms_public.h:279
@ skcms_PixelFormat_RGB_161616BE
Definition: skcms_public.h:300
@ skcms_PixelFormat_BGRA_1010102
Definition: skcms_public.h:293
@ skcms_PixelFormat_RGBA_hhhh_Norm
Definition: skcms_public.h:307
@ skcms_PixelFormat_RGBA_10101010_XR
Definition: skcms_public.h:322
@ skcms_PixelFormat_BGRA_16161616LE
Definition: skcms_public.h:298
@ skcms_PixelFormat_RGB_101010x_XR
Definition: skcms_public.h:320
@ skcms_PixelFormat_RGBA_16161616LE
Definition: skcms_public.h:297
static void skcms_SetXYZD50(skcms_ICCProfile *p, const skcms_Matrix3x3 *m)
Definition: skcms_public.h:399
static void skcms_SetTransferFunction(skcms_ICCProfile *p, const skcms_TransferFunction *tf)
Definition: skcms_public.h:390
struct skcms_CICP skcms_CICP
struct skcms_Matrix3x4 skcms_Matrix3x4
SKCMS_API bool skcms_TransferFunction_makePQish(skcms_TransferFunction *, float A, float B, float C, float D, float E, float F)
Definition: skcms.cc:196
SKCMS_API bool skcms_AreApproximateInverses(const skcms_Curve *curve, const skcms_TransferFunction *inv_tf)
Definition: skcms.cc:285
static bool skcms_Parse(const void *buf, size_t len, skcms_ICCProfile *profile)
Definition: skcms_public.h:245
SKCMS_API float skcms_TransferFunction_eval(const skcms_TransferFunction *, float)
Definition: skcms.cc:212
SKCMS_API bool skcms_MakeUsableAsDestination(skcms_ICCProfile *profile)
Definition: skcms.cc:2821
SKCMS_API const skcms_TransferFunction * skcms_Identity_TransferFunction(void)
Definition: skcms.cc:1597
SKCMS_API bool skcms_ParseWithA2BPriority(const void *, size_t, const int priority[], int priorities, skcms_ICCProfile *)
Definition: skcms.cc:1241
SKCMS_API bool skcms_TransferFunction_invert(const skcms_TransferFunction *, skcms_TransferFunction *)
Definition: skcms.cc:1863
SKCMS_API bool skcms_GetCHAD(const skcms_ICCProfile *, skcms_Matrix3x3 *)
Definition: skcms.cc:396
SKCMS_API bool skcms_Matrix3x3_invert(const skcms_Matrix3x3 *, skcms_Matrix3x3 *)
Definition: skcms.cc:1792
SKCMS_API const skcms_ICCProfile * skcms_XYZD50_profile(void)
Definition: skcms.cc:1490
union skcms_Curve skcms_Curve
SKCMS_API const skcms_TransferFunction * skcms_sRGB_TransferFunction(void)
Definition: skcms.cc:1587
skcms_AlphaFormat
Definition: skcms_public.h:336
@ skcms_AlphaFormat_Unpremul
Definition: skcms_public.h:339
@ skcms_AlphaFormat_PremulAsEncoded
Definition: skcms_public.h:341
@ skcms_AlphaFormat_Opaque
Definition: skcms_public.h:337
SKCMS_API const skcms_TransferFunction * skcms_sRGB_Inverse_TransferFunction(void)
Definition: skcms.cc:1591
static bool skcms_TransferFunction_makeHLG(skcms_TransferFunction *tf)
Definition: skcms_public.h:95
SKCMS_API bool skcms_TransferFunction_makeScaledHLGish(skcms_TransferFunction *, float K, float R, float G, float a, float b, float c)
Definition: skcms.cc:204
SKCMS_API const skcms_ICCProfile * skcms_sRGB_profile(void)
Definition: skcms.cc:1393
SKCMS_API bool skcms_GetWTPT(const skcms_ICCProfile *, float xyz[3])
Definition: skcms.cc:438
@ skcms_Signature_Lab
Definition: skcms_public.h:269
@ skcms_Signature_RGB
Definition: skcms_public.h:266
@ skcms_Signature_Gray
Definition: skcms_public.h:265
@ skcms_Signature_XYZ
Definition: skcms_public.h:270
@ skcms_Signature_CMYK
Definition: skcms_public.h:264
skcms_TFType
Definition: skcms_public.h:54
@ skcms_TFType_Invalid
Definition: skcms_public.h:55
@ skcms_TFType_HLGish
Definition: skcms_public.h:58
@ skcms_TFType_sRGBish
Definition: skcms_public.h:56
@ skcms_TFType_HLGinvish
Definition: skcms_public.h:59
@ skcms_TFType_PQish
Definition: skcms_public.h:57
SKCMS_API bool skcms_MakeUsableAsDestinationWithSingleCurve(skcms_ICCProfile *profile)
Definition: skcms.cc:2854
static bool skcms_TransferFunction_makeHLGish(skcms_TransferFunction *fn, float R, float G, float a, float b, float c)
Definition: skcms_public.h:83
SKCMS_API bool skcms_ApproximateCurve(const skcms_Curve *curve, skcms_TransferFunction *approx, float *max_error)
Definition: skcms.cc:2199
SKCMS_API bool skcms_TransferFunction_isSRGBish(const skcms_TransferFunction *)
Definition: skcms.cc:186
#define SKCMS_API
Definition: skcms_public.h:13
SKCMS_API bool skcms_Transform(const void *src, skcms_PixelFormat srcFmt, skcms_AlphaFormat srcAlpha, const skcms_ICCProfile *srcProfile, void *dst, skcms_PixelFormat dstFmt, skcms_AlphaFormat dstAlpha, const skcms_ICCProfile *dstProfile, size_t npixels)
Definition: skcms.cc:2495
struct skcms_B2A skcms_B2A
SKCMS_API bool skcms_TransferFunction_isHLGish(const skcms_TransferFunction *)
Definition: skcms.cc:192
SKCMS_API void skcms_DisableRuntimeCPUDetection(void)
Definition: skcms.cc:40
SKCMS_API bool skcms_TransferFunction_isPQish(const skcms_TransferFunction *)
Definition: skcms.cc:189
static void skcms_Init(skcms_ICCProfile *p)
Definition: skcms_public.h:384
static bool skcms_TransferFunction_makePQ(skcms_TransferFunction *tf)
Definition: skcms_public.h:90
SKCMS_API skcms_TFType skcms_TransferFunction_getType(const skcms_TransferFunction *)
Definition: skcms.cc:183
struct skcms_TransferFunction skcms_TransferFunction
SKCMS_API bool skcms_ApproximatelyEqualProfiles(const skcms_ICCProfile *A, const skcms_ICCProfile *B)
Definition: skcms.cc:1621
struct skcms_Matrix3x3 skcms_Matrix3x3
SKCMS_API bool skcms_TRCs_AreApproximateInverse(const skcms_ICCProfile *profile, const skcms_TransferFunction *inv_tf)
Definition: skcms.cc:1679
Definition: SkMD5.cpp:120
Definition: SkMD5.cpp:125
uint32_t matrix_channels
Definition: skcms_public.h:135
skcms_Curve matrix_curves[3]
Definition: skcms_public.h:136
const uint8_t * grid_8
Definition: skcms_public.h:129
skcms_Curve output_curves[3]
Definition: skcms_public.h:141
uint32_t output_channels
Definition: skcms_public.h:140
skcms_Matrix3x4 matrix
Definition: skcms_public.h:137
const uint8_t * grid_16
Definition: skcms_public.h:130
uint32_t input_channels
Definition: skcms_public.h:126
uint8_t grid_points[4]
Definition: skcms_public.h:128
skcms_Curve input_curves[4]
Definition: skcms_public.h:127
skcms_Matrix3x4 matrix
Definition: skcms_public.h:153
const uint8_t * grid_16
Definition: skcms_public.h:162
const uint8_t * grid_8
Definition: skcms_public.h:161
skcms_Curve output_curves[4]
Definition: skcms_public.h:163
skcms_Curve matrix_curves[3]
Definition: skcms_public.h:154
uint8_t grid_points[4]
Definition: skcms_public.h:160
skcms_Curve input_curves[3]
Definition: skcms_public.h:147
uint32_t matrix_channels
Definition: skcms_public.h:152
uint32_t input_channels
Definition: skcms_public.h:146
uint32_t output_channels
Definition: skcms_public.h:159
uint8_t color_primaries
Definition: skcms_public.h:167
uint8_t matrix_coefficients
Definition: skcms_public.h:169
uint8_t video_full_range_flag
Definition: skcms_public.h:170
uint8_t transfer_characteristics
Definition: skcms_public.h:168
const uint8_t * buffer
Definition: skcms_public.h:174
skcms_Matrix3x3 toXYZD50
Definition: skcms_public.h:191
skcms_Curve trc[3]
Definition: skcms_public.h:186
uint32_t tag_count
Definition: skcms_public.h:179
skcms_CICP CICP
Definition: skcms_public.h:208
uint32_t data_color_space
Definition: skcms_public.h:177
float vals[3][3]
Definition: skcms_public.h:27
float vals[3][4]
Definition: skcms_public.h:36
const uint8_t * table_16
Definition: skcms_public.h:114
const uint8_t * table_8
Definition: skcms_public.h:113
uint32_t alias_of_table_entries
Definition: skcms_public.h:108
skcms_TransferFunction parametric
Definition: skcms_public.h:109
uint32_t table_entries
Definition: skcms_public.h:112