Function
Bablspace_from_chromaticities
Declaration [src]
const Babl*
babl_space_from_chromaticities (
const char* name,
double wx,
double wy,
double rx,
double ry,
double gx,
double gy,
double bx,
double by,
const Babl* trc_red,
const Babl* trc_green,
const Babl* trc_blue,
BablSpaceFlags flags
)
Description [src]
Creates a new babl-space/ RGB matrix color space definition with the
specified CIE xy(Y) values for white point: wx, wy and primary
chromaticities: rx,ry,gx,gy,bx,by and TRCs to be used. After registering a
new babl-space it can be used with babl_space() passing its name;
Internally this does the math to derive the RGBXYZ matrix as used in an ICC profile.
Parameters
name-
Type:
const char*The name for the color space.
The argument can be NULL.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. wx-
Type:
doubleThe X-coordinate of the color space’s white point.
wy-
Type:
doubleThe Y-coordinate of the color space’s white point.
rx-
Type:
doubleThe X-coordinate of the red primary.
ry-
Type:
doubleThe Y-coordinate of the red primary.
gx-
Type:
doubleThe X-coordinate of the green primary.
gy-
Type:
doubleThe Y-coordinate of the green primary.
bx-
Type:
doubleThe X-coordinate of the blue primary.
by-
Type:
doubleThe Y-coordinate of the blue primary.
trc_red-
Type:
BablThe red component of the TRC.
The data is owned by the caller of the function. trc_green-
Type:
BablThe green component of the TRC (can be
NULLif it’s the same astrc_red).The argument can be NULL.The data is owned by the caller of the function. trc_blue-
Type:
BablThe blue component of the TRC (can be
NULLif it’s the same astrc_red).The argument can be NULL.The data is owned by the caller of the function. flags-
Type:
BablSpaceFlagsThe
BablSpaceFlags.
Return value
Type: Babl
No description available.
| The data is owned by the called function. |