Deinitializes the babl library and frees any resources used when matched with the number of calls to babl_init().
Create a faster than normal fish with specified performance (and thus corresponding precision tradeoff), values tolerance can hold: NULL and "default", means do same as babl_fish(), other values understood in increasing order of speed gain are: "exact" "precise" "fast" "glitch"
Fast fishes should be cached, since they are not internally kept track of/made into singletons by babl and many creations of fast fishes will otherwise be a leak.
Returns 1 if the provided format name is known by babl or 0 if it is not. Can also be used to verify that specific extension formats are available (though this can also be inferred from the version of babl).
Returns the babl object representing the color format given by
name
such as for example "RGB u8", "R'G'B'A float", "Y float" with
a specific RGB working space used as the space, the resulting format
has -space suffixed to it, unless the space requested is sRGB then
the unsuffixed version is used. If a format is passed in as space
the space of the format is used.
Get the version information on the babl library
Initializes the babl library.
create a new palette based format, name is optional pass in NULL to get an anonymous format. If you pass in with_alpha the format also gets an 8bit alpha channel. Returns the BablModel of the color model. If you pass in the same name the previous formats will be provided again.
create a new palette based format, name is optional pass in NULL to get an anonymous format. If you pass in with_alpha the format also gets an 8bit alpha channel. Returns the BablModel of the color model. If you pass in the same name the previous formats will be provided again.
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.
The name for the color space
The X-coordinate of the color space's white point
The Y-coordinate of the color space's white point
The X-coordinate of the red primary
The Y-coordinate of the red primary
The X-coordinate of the green primary
The Y-coordinate of the green primary
The X-coordinate of the blue primary
The Y-coordinate of the blue primary
The red component of the TRC.
The green component of the TRC (can be %NULL if it's the same as trc_red)
.
The blue component of the TRC (can be %NULL if it's the same as trc_red)
.
The #BablSpaceFlags
Create a babl space from an in memory ICC profile, the profile does no longer need to be loaded for the space to work, multiple calls with the same icc profile and same intent will result in the same babl space.
On a profile that doesn't contain A2B0 and B2A0 CLUTs perceptual and relative-colorimetric intents are treated the same.
If a BablSpace cannot be created from the profile NULL is returned and a static string is set on the const char *value pointed at with &value containing a message describing why the provided data does not yield a babl space.
pointer to icc profile in memory
length of icc profile in bytes
the intent from the ICC profile to use.
Creates a new RGB matrix color space definition using a precomputed D50 adapted 3x3 matrix and associated CIE XYZ whitepoint, as possibly read from an ICC profile.
The name for the color space
The X-coordinate of the color space's white point
The Y-coordinate of the color space's white point
The Z-coordinate of the color space's white point
The X-coordinate of the red primary
The X-coordinate of the green primary
The X-coordinate of the blue primary
The Y-coordinate of the red primary
The Y-coordinate of the green primary
The Y-coordinate of the blue primary
The Z-coordinate of the red primary
The Z-coordinate of the green primary
The Z-coordinate of the blue primary
The red component of the TRC.
The green component of the TRC (can be %NULL if it's the same as trc_red)
.
The blue component of the TRC (can be %NULL if it's the same as trc_red)
.
Returns the babl object representing the color component given by
name
such as for example "R", "cyan" or "CIE L".