#include "babl-db.h"
#include "babl-ref-pixels.h"
-#if 0
-static int model_is_rgba (const Babl *model)
-{
- const Babl *RGBA = babl_model_from_id (BABL_RGBA);
- if (model == RGBA || model->model.model == RGBA)
- return 1;
- return 0;
-}
-#endif
-
-
static void
babl_conversion_plane_process (BablConversion *conversion,
const void *source,
}
/* color space conversions */
- if ((babl_space ("babl-rgb")!=
+ if ((babl_space ("scRGB")!=
((babl->fish.destination)->format.space)))
{
double matrix[9];
double *rgba = rgba_double_buf;
babl_matrix_mul_matrix (
(babl->fish.destination)->format.space->space.XYZtoRGB,
- babl_space("babl-rgb")->space.RGBtoXYZ,
+ babl_space("scRGB")->space.RGBtoXYZ,
matrix);
babl_matrix_mul_vector_buf4 (matrix, rgba, rgba, n);
#ifdef HAVE_LCMS
if (sRGBProfile == 0)
{
- const Babl *rgb = babl_space("babl-rgb"); /* should use a forced linear profile */
+ const Babl *rgb = babl_space("scRGB"); /* should use a forced linear profile */
sRGBProfile = cmsOpenProfileFromMem(rgb->space.icc_profile, rgb->space.icc_length);
}
0);
/* hard-coded pre-quantized values - to match exactly what is used in standards see issue #18 */
#endif
- babl_space_from_chromaticities ("babl-rgb",
+
+ /* sRGB with linear TRCs is scRGB.
+ */
+ babl_space_from_chromaticities ("scRGB",
0.3127, 0.3290, /* D65 */
0.639998686, 0.330010138,
0.300003784, 0.600003357,