Home
last modified time | relevance | path

Searched refs:cielab (Results 1 – 5 of 5) sorted by relevance

/external/pdfium/third_party/libtiff/
Dtif_color.c46 TIFFCIELabToXYZ(TIFFCIELabToRGB *cielab, uint32 l, int32 a, int32 b, in TIFFCIELabToXYZ() argument
53 *Y = (L * cielab->Y0) / 903.292F; in TIFFCIELabToXYZ()
54 cby = 7.787F * (*Y / cielab->Y0) + 16.0F / 116.0F; in TIFFCIELabToXYZ()
57 *Y = cielab->Y0 * cby * cby * cby; in TIFFCIELabToXYZ()
62 *X = cielab->X0 * (tmp - 0.13793F) / 7.787F; in TIFFCIELabToXYZ()
64 *X = cielab->X0 * tmp * tmp * tmp; in TIFFCIELabToXYZ()
68 *Z = cielab->Z0 * (tmp - 0.13793F) / 7.787F; in TIFFCIELabToXYZ()
70 *Z = cielab->Z0 * tmp * tmp * tmp; in TIFFCIELabToXYZ()
78 TIFFXYZToRGB(TIFFCIELabToRGB *cielab, float X, float Y, float Z, in TIFFXYZToRGB() argument
83 float *matrix = &cielab->display.d_mat[0][0]; in TIFFXYZToRGB()
[all …]
D0011-fix-leak-imagebegin2.patch13 + img->cielab = NULL;
27 - img->cielab = NULL;
Dtif_getimage.c225 if (img->cielab) in TIFFRGBAImageEnd()
226 _TIFFfree(img->cielab), img->cielab = NULL; in TIFFRGBAImageEnd()
275 img->cielab = NULL; in TIFFRGBAImageBegin()
1744 TIFFCIELabToXYZ(img->cielab, in DECLAREContigPutFunc()
1749 TIFFXYZToRGB(img->cielab, X, Y, Z, &r, &g, &b); in DECLAREContigPutFunc()
2277 if (!img->cielab) { in initCIELabConversion()
2278 img->cielab = (TIFFCIELabToRGB *) in initCIELabConversion()
2280 if (!img->cielab) { in initCIELabConversion()
2292 if (TIFFCIELabToRGBInit(img->cielab, &display_sRGB, refWhite) < 0) { in initCIELabConversion()
2295 _TIFFfree(img->cielab); in initCIELabConversion()
Dtiffio.h226 TIFFCIELabToRGB* cielab; /* CIE L*a*b conversion state */ member
/external/pdfium/third_party/libopenjpeg20/
Djp2.c1418 OPJ_UINT32 *cielab; in opj_jp2_read_colr() local
1421 cielab = (OPJ_UINT32*)opj_malloc(9 * sizeof(OPJ_UINT32)); in opj_jp2_read_colr()
1422 cielab[0] = 14; /* enumcs */ in opj_jp2_read_colr()
1427 cielab[1] = 0x44454600;/* DEF */ in opj_jp2_read_colr()
1446 cielab[1] = 0; in opj_jp2_read_colr()
1452 cielab[2] = rl; cielab[4] = ra; cielab[6] = rb; in opj_jp2_read_colr()
1453 cielab[3] = ol; cielab[5] = oa; cielab[7] = ob; in opj_jp2_read_colr()
1454 cielab[8] = il; in opj_jp2_read_colr()
1456 jp2->color.icc_profile_buf = (OPJ_BYTE*)cielab; in opj_jp2_read_colr()