Home
last modified time | relevance | path

Searched refs:png_uint_16 (Results 1 – 25 of 25) sorted by relevance

/third_party/skia/third_party/externals/libpng/
Dpngstruct.h121 png_uint_16 rendering_intent; /* Rendering intent of a profile */
125 png_uint_16 flags; /* As defined below */
240 png_uint_16 num_palette; /* number of color entries in palette */
247 png_uint_16 num_trans; /* number of transparency values */
270 png_uint_16 filler; /* filler bytes for pixel expansion */
344 png_uint_16 offset_table_number;
345 png_uint_16 offset_table_count;
346 png_uint_16 offset_table_count_free;
390 png_uint_16 rgb_to_gray_red_coeff;
391 png_uint_16 rgb_to_gray_green_coeff;
Dpngrtran.c750 png_ptr->num_palette = (png_uint_16)num_palette; in png_set_quantize()
1015 png_uint_16 red_int, green_int; in png_set_rgb_to_gray_fixed()
1022 red_int = (png_uint_16)(((png_uint_32)red*32768)/100000); in png_set_rgb_to_gray_fixed()
1023 green_int = (png_uint_16)(((png_uint_32)green*32768)/100000); in png_set_rgb_to_gray_fixed()
1278 png_ptr->background.blue = (png_uint_16)gray; in png_init_rgb_transformations()
1283 png_ptr->trans_color.blue = (png_uint_16)trans_gray; in png_init_rgb_transformations()
1516 # define CHOP(x) (x)=((png_uint_16)PNG_DIV257(x)) in png_init_read_transformations()
1539 png_ptr->background.red = (png_uint_16)(png_ptr->background.red * 257); in png_init_read_transformations()
1541 (png_uint_16)(png_ptr->background.green * 257); in png_init_read_transformations()
1542 png_ptr->background.blue = (png_uint_16)(png_ptr->background.blue * 257); in png_init_read_transformations()
[all …]
Dpng.h491 png_uint_16 red; /* for use in red green blue files */
492 png_uint_16 green;
493 png_uint_16 blue;
494 png_uint_16 gray; /* for use in grayscale files */
518 png_uint_16 red;
519 png_uint_16 green;
520 png_uint_16 blue;
521 png_uint_16 alpha;
522 png_uint_16 frequency;
602 png_uint_16 year; /* full year, as in, 1995 */
[all …]
Dpngconf.h495 typedef unsigned int png_uint_16; typedef
497 typedef unsigned short png_uint_16; typedef
585 typedef png_uint_16 * png_uint_16p;
586 typedef const png_uint_16 * png_const_uint_16p;
609 typedef png_uint_16 * * png_uint_16pp;
Dpnginfo.h63 png_uint_16 num_palette; /* number of color entries in "palette" (PLTE) */
64 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */
Dpngwrite.c476 ptime->year = (png_uint_16)(1900 + ttime->tm_year); in png_convert_from_struct_tm()
1576 png_uint_16 alpha = in_ptr[aindex]; in png_write_image_16bit()
1593 png_uint_16 component = *in_ptr++; in png_write_image_16bit()
1612 component = (png_uint_16)(calc >> 15); in png_write_image_16bit()
1625 input_row += (png_uint_16)display->row_bytes/(sizeof (png_uint_16)); in png_write_image_16bit()
1728 png_uint_16 alpha = in_ptr[aindex]; in png_write_image_8bit()
1751 input_row += (png_uint_16)display->row_bytes/(sizeof (png_uint_16)); in png_write_image_8bit()
1776 input_row += (png_uint_16)display->row_bytes/(sizeof (png_uint_16)); in png_write_image_8bit()
1846 png_uint_16 alpha = entry[afirst ? 0 : channels-1]; in png_image_set_PLTE()
2055 png_uint_16 le = 0x0001; in png_image_write_main()
[all …]
Dpng.c1939 colorspace->rendering_intent = (png_uint_16)intent;
2251 png_uint_16 intent;
2518 png_ptr->rgb_to_gray_red_coeff = (png_uint_16)r;
2519 png_ptr->rgb_to_gray_green_coeff = (png_uint_16)g;
3850 static png_uint_16
3858 return (png_uint_16)((x + 32767U) >> 16);
3911 png_uint_16
3924 return (png_uint_16)r;
3937 return (png_uint_16)value;
3946 png_uint_16 /* PRIVATE */
[all …]
Dpngread.c1902 entry[afirst ? 0 : 3] = (png_uint_16)alpha; in png_create_colormap_entry()
1918 entry[afirst + (2 ^ bgr)] = (png_uint_16)blue; in png_create_colormap_entry()
1919 entry[afirst + 1] = (png_uint_16)green; in png_create_colormap_entry()
1920 entry[afirst + bgr] = (png_uint_16)red; in png_create_colormap_entry()
1924 entry[1 ^ afirst] = (png_uint_16)alpha; in png_create_colormap_entry()
1936 entry[afirst] = (png_uint_16)green; in png_create_colormap_entry()
2307 c.gray = c.red = c.green = c.blue = (png_uint_16)gray; in png_image_read_colormap()
2420 c.gray = c.red = c.green = c.blue = (png_uint_16)gray; in png_image_read_colormap()
2624 c.gray = c.red = c.green = c.blue = (png_uint_16)gray; in png_image_read_colormap()
2776 c.red = (png_uint_16)back_r; in png_image_read_colormap()
[all …]
Dpngtrans.c141 png_ptr->filler = (png_uint_16)filler; in png_set_filler()
335 *(png_uint_16*)rp = __builtin_bswap16(*(png_uint_16*)rp); in png_do_swap()
Dpngrutil.c102 png_uint_16 (PNGAPI in png_uint_16() function
114 return (png_uint_16)val; in png_uint_16()
1894 png_ptr->num_trans = (png_uint_16)length; in png_handle_tRNS()
1986 background.red = (png_uint_16)png_ptr->palette[buf[0]].red; in png_handle_bKGD()
1987 background.green = (png_uint_16)png_ptr->palette[buf[0]].green; in png_handle_bKGD()
1988 background.blue = (png_uint_16)png_ptr->palette[buf[0]].blue; in png_handle_bKGD()
2105 png_uint_16 readbuf[PNG_MAX_PALETTE_LENGTH]; in png_handle_hIST()
3556 png_isaligned(dp, png_uint_16) && in png_combine_row()
3557 png_isaligned(sp, png_uint_16) && in png_combine_row()
3558 bytes_to_copy % (sizeof (png_uint_16)) == 0 && in png_combine_row()
[all …]
Dpngpriv.h943 PNG_INTERNAL_DATA(const png_uint_16, png_sRGB_table, [256]);
949 PNG_INTERNAL_DATA(const png_uint_16, png_sRGB_base, [512]);
2019 PNG_INTERNAL_FUNCTION(png_uint_16,png_gamma_correct,(png_structrp png_ptr,
2021 PNG_INTERNAL_FUNCTION(png_uint_16,png_gamma_16bit_correct,(unsigned int value,
Dpngset.c235 PNG_MAX_PALETTE_LENGTH * (sizeof (png_uint_16)))); in png_set_hIST()
629 info_ptr->num_palette = png_ptr->num_palette = (png_uint_16)num_palette; in png_set_PLTE()
1050 info_ptr->num_trans = (png_uint_16)num_trans; in png_set_tRNS()
Dpngwutil.c880 png_ptr->num_palette = (png_uint_16)num_pal; in png_write_PLTE()
Dlibpng-manual.txt1476 png_uint_16)
3125 png_uint_16) (PNG_INFO_hIST)
3999 png_uint_16 colormap[PNG_IMAGE_MAXIMUM_COLORMAP_COMPONENTS(linear_fmt)];
4117 row_stride is the step, in png_byte or png_uint_16 units
4179 (png_uint_16) data then setting convert_to_8_bit will cause the output to be
DCHANGES2403 Changed typecast of filler from png_byte to png_uint_16 in png_set_filler().
/third_party/skia/third_party/externals/libpng/contrib/libtests/
Dpngstest-errors.h17 static png_uint_16 gpc_error[16/*in*/][16/*out*/][4/*a*/] =
101 static png_uint_16 gpc_error_via_linear[16][4/*out*/][4] =
137 static png_uint_16 gpc_error_to_colormap[8/*i*/][8/*o*/][4] =
Dpngstest.c142 static png_uint_16
146 return (png_uint_16)d; in u16d()
198 static png_uint_16
204 static png_uint_16
210 static png_uint_16
217 static png_uint_16
587 png_uint_16 colormap[256*4];
2051 png_uint_16 error[4];
2056 png_uint_16 *error_ptr;
2462 transform->error[3] = (png_uint_16)err_a; in cmppixel()
[all …]
Dtarith.c763 static png_uint_16 png_exp16bit(png_uint_32 log) in png_exp16bit()
765 return (png_uint_16)floor(.5 + exp(log * -LN2) * 65535); in png_exp16bit()
922 png_uint_16 out = png_gamma_16bit_correct(j, gfp); in validation_gamma()
Dpngvalid.c321 static png_uint_16
3700 png_uint_16 mask = (png_uint_16)((1U << bit_depth)-1); in set_random_tRNS()
3719 tRNS.green = (png_uint_16)(tRNS.red * 257); in set_random_tRNS()
3720 tRNS.blue = (png_uint_16)(tRNS.green * 17); in set_random_tRNS()
4961 png_uint_16 red;
4962 png_uint_16 green;
4963 png_uint_16 blue;
8305 back.red = (png_uint_16)data.red; in image_transform_png_set_background_set()
8306 back.green = (png_uint_16)data.green; in image_transform_png_set_background_set()
8307 back.blue = (png_uint_16)data.blue; in image_transform_png_set_background_set()
[all …]
Dmakepng.c1340 png_uint_16 freq[256]; in insert_hIST()
1352 freq[i] = (png_uint_16)l; in insert_hIST()
Dpngunknown.c105 #define PNG_U16(b1, b2) ((png_uint_16)PNG_u2(b1, b2))
/third_party/skia/third_party/externals/libpng/contrib/tools/
DmakesRGB.c36 static png_uint_16 png_sRGB_table[256];
37 static png_uint_16 png_sRGB_base[512];
60 png_uint_16
71 return (png_uint_16)x; in invsRGB()
213 png_uint_16 base = png_sRGB_base[ibase >> 7], trybase = base, ob=base; in main()
Dpngfix.c173 typedef png_uint_16 udigit; /* A 'unum' is an array of these */
192 result[ndigits++] = (png_uint_16)(val & 0xffff); in uarb_set()
226 num[out_digits++] = (png_uint_16)(add & 0xffff); in uarb_inc()
232 num[out_digits++] = (png_uint_16)(add & 0xffff); in uarb_inc()
267 png_uint_16 val) in uarb_mult_digit()
296 acc[out_digits++] = (png_uint_16)(carry & 0xffff); in uarb_mult_digit()
319 (png_uint_16)(val & 0xffff)); in uarb_mult32()
324 (png_uint_16)val) + 1; in uarb_mult32()
340 png_uint_16 carry = 0; in uarb_shift()
346 png_uint_16 temp = (png_uint_16)(carry | (inout[i] >> right_shift)); in uarb_shift()
[all …]
Dgenpng.c737 p[0] = (png_uint_16)/*SAFE*/round(r * 65535); in pixel()
738 p[1] = (png_uint_16)/*SAFE*/round(g * 65535); in pixel()
739 p[2] = (png_uint_16)/*SAFE*/round(b * 65535); in pixel()
740 p[3] = (png_uint_16)/*SAFE*/round(a * 65535); in pixel()
/third_party/skia/third_party/externals/libpng/contrib/examples/
Dsimpleover.c104 png_imagep image, const png_uint_16 *buffer) in sprite_op()
133 const png_uint_16 *in_pixel = buffer + (y * image->width + x)*4; in sprite_op()
141 png_uint_16 *out_pixel = sprite->buffer + in sprite_op()
431 buf_size = sizeof (png_uint_16 [4]); in simpleover_process()
440 if (tmp == sizeof (png_uint_16 [4])) in simpleover_process()