Home
last modified time | relevance | path

Searched refs:afirst (Results 1 – 4 of 4) sorted by relevance

/external/pdfium/samples/fx_lpng/lpng_v163/
Dfx_pngwrite.c1884 const int afirst = (format & PNG_FORMAT_FLAG_AFIRST) != 0 && in png_image_set_PLTE() local
1887 # define afirst 0 in png_image_set_PLTE() macro
1933 png_uint_16 alpha = entry[afirst ? 0 : channels-1]; in png_image_set_PLTE()
1950 palette[i].blue = png_unpremultiply(entry[afirst + (2 ^ bgr)], in png_image_set_PLTE()
1952 palette[i].green = png_unpremultiply(entry[afirst + 1], alpha, in png_image_set_PLTE()
1954 palette[i].red = png_unpremultiply(entry[afirst + bgr], alpha, in png_image_set_PLTE()
1960 png_unpremultiply(entry[afirst], alpha, reciprocal); in png_image_set_PLTE()
1973 tRNS[i] = entry[afirst ? 0 : 3]; in png_image_set_PLTE()
1978 palette[i].blue = entry[afirst + (2 ^ bgr)]; in png_image_set_PLTE()
1979 palette[i].green = entry[afirst + 1]; in png_image_set_PLTE()
[all …]
Dfx_pngread.c1733 const int afirst = (image->format & PNG_FORMAT_FLAG_AFIRST) != 0 && in png_create_colormap_entry() local
1736 # define afirst 0 in png_create_colormap_entry()
1757 entry[afirst ? 0 : 3] = (png_uint_16)alpha; in png_create_colormap_entry()
1773 entry[afirst + (2 ^ bgr)] = (png_uint_16)blue; in png_create_colormap_entry()
1774 entry[afirst + 1] = (png_uint_16)green; in png_create_colormap_entry()
1775 entry[afirst + bgr] = (png_uint_16)red; in png_create_colormap_entry()
1779 entry[1 ^ afirst] = (png_uint_16)alpha; in png_create_colormap_entry()
1791 entry[afirst] = (png_uint_16)green; in png_create_colormap_entry()
1808 entry[afirst ? 0 : 3] = (png_byte)alpha; in png_create_colormap_entry()
1810 entry[afirst + (2 ^ bgr)] = (png_byte)blue; in png_create_colormap_entry()
[all …]
/external/libpng/
Dpngwrite.c1991 const int afirst = (format & PNG_FORMAT_FLAG_AFIRST) != 0 && in png_image_set_PLTE() local
1994 # define afirst 0 in png_image_set_PLTE() macro
2040 png_uint_16 alpha = entry[afirst ? 0 : channels-1]; in png_image_set_PLTE()
2057 palette[i].blue = png_unpremultiply(entry[afirst + (2 ^ bgr)], in png_image_set_PLTE()
2059 palette[i].green = png_unpremultiply(entry[afirst + 1], alpha, in png_image_set_PLTE()
2061 palette[i].red = png_unpremultiply(entry[afirst + bgr], alpha, in png_image_set_PLTE()
2067 png_unpremultiply(entry[afirst], alpha, reciprocal); in png_image_set_PLTE()
2080 tRNS[i] = entry[afirst ? 0 : 3]; in png_image_set_PLTE()
2085 palette[i].blue = entry[afirst + (2 ^ bgr)]; in png_image_set_PLTE()
2086 palette[i].green = entry[afirst + 1]; in png_image_set_PLTE()
[all …]
Dpngread.c1999 const int afirst = (image->format & PNG_FORMAT_FLAG_AFIRST) != 0 && in png_create_colormap_entry() local
2002 # define afirst 0 in png_create_colormap_entry()
2023 entry[afirst ? 0 : 3] = (png_uint_16)alpha; in png_create_colormap_entry()
2039 entry[afirst + (2 ^ bgr)] = (png_uint_16)blue; in png_create_colormap_entry()
2040 entry[afirst + 1] = (png_uint_16)green; in png_create_colormap_entry()
2041 entry[afirst + bgr] = (png_uint_16)red; in png_create_colormap_entry()
2045 entry[1 ^ afirst] = (png_uint_16)alpha; in png_create_colormap_entry()
2057 entry[afirst] = (png_uint_16)green; in png_create_colormap_entry()
2074 entry[afirst ? 0 : 3] = (png_byte)alpha; in png_create_colormap_entry()
2076 entry[afirst + (2 ^ bgr)] = (png_byte)blue; in png_create_colormap_entry()
[all …]