Home
last modified time | relevance | path

Searched refs:chrm (Results 1 – 3 of 3) sorted by relevance

/external/skia/src/codec/
DSkPngCodec.cpp387 png_fixed_point chrm[8]; in read_color_profile() local
389 if (png_get_cHRM_fixed(png_ptr, info_ptr, &chrm[0], &chrm[1], &chrm[2], &chrm[3], &chrm[4], in read_color_profile()
390 &chrm[5], &chrm[6], &chrm[7])) in read_color_profile()
392 float rx = png_fixed_point_to_float(chrm[2]); in read_color_profile()
393 float ry = png_fixed_point_to_float(chrm[3]); in read_color_profile()
394 float gx = png_fixed_point_to_float(chrm[4]); in read_color_profile()
395 float gy = png_fixed_point_to_float(chrm[5]); in read_color_profile()
396 float bx = png_fixed_point_to_float(chrm[6]); in read_color_profile()
397 float by = png_fixed_point_to_float(chrm[7]); in read_color_profile()
398 float wx = png_fixed_point_to_float(chrm[0]); in read_color_profile()
[all …]
/external/skqp/src/codec/
DSkPngCodec.cpp387 png_fixed_point chrm[8]; in read_color_profile() local
389 if (png_get_cHRM_fixed(png_ptr, info_ptr, &chrm[0], &chrm[1], &chrm[2], &chrm[3], &chrm[4], in read_color_profile()
390 &chrm[5], &chrm[6], &chrm[7])) in read_color_profile()
392 float rx = png_fixed_point_to_float(chrm[2]); in read_color_profile()
393 float ry = png_fixed_point_to_float(chrm[3]); in read_color_profile()
394 float gx = png_fixed_point_to_float(chrm[4]); in read_color_profile()
395 float gy = png_fixed_point_to_float(chrm[5]); in read_color_profile()
396 float bx = png_fixed_point_to_float(chrm[6]); in read_color_profile()
397 float by = png_fixed_point_to_float(chrm[7]); in read_color_profile()
398 float wx = png_fixed_point_to_float(chrm[0]); in read_color_profile()
[all …]
/external/pdfium/third_party/lcms/src/
Dcmstypes.c356 cmsCIExyYTRIPLE* chrm; in Type_Chromaticity_Read() local
360 chrm = (cmsCIExyYTRIPLE*) _cmsMallocZero(self ->ContextID, sizeof(cmsCIExyYTRIPLE)); in Type_Chromaticity_Read()
361 if (chrm == NULL) return NULL; in Type_Chromaticity_Read()
376 if (!_cmsRead15Fixed16Number(io, &chrm ->Red.x)) goto Error; in Type_Chromaticity_Read()
377 if (!_cmsRead15Fixed16Number(io, &chrm ->Red.y)) goto Error; in Type_Chromaticity_Read()
379 chrm ->Red.Y = 1.0; in Type_Chromaticity_Read()
381 if (!_cmsRead15Fixed16Number(io, &chrm ->Green.x)) goto Error; in Type_Chromaticity_Read()
382 if (!_cmsRead15Fixed16Number(io, &chrm ->Green.y)) goto Error; in Type_Chromaticity_Read()
384 chrm ->Green.Y = 1.0; in Type_Chromaticity_Read()
386 if (!_cmsRead15Fixed16Number(io, &chrm ->Blue.x)) goto Error; in Type_Chromaticity_Read()
[all …]