Home
last modified time | relevance | path

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

12

/external/pdfium/samples/fx_lpng/lpng_v163/
Dpngstruct.h122 png_uint_16 rendering_intent; /* Rendering intent of a profile */
126 png_uint_16 flags; /* As defined below */
239 png_uint_16 num_palette; /* number of color entries in palette */
246 png_uint_16 num_trans; /* number of transparency values */
266 png_uint_16 filler; /* filler bytes for pixel expansion */
340 png_uint_16 offset_table_number;
341 png_uint_16 offset_table_count;
342 png_uint_16 offset_table_count_free;
396 png_uint_16 rgb_to_gray_red_coeff;
397 png_uint_16 rgb_to_gray_green_coeff;
Dfx_pngrtran.c731 png_ptr->num_palette = (png_uint_16)num_palette; in png_set_quantize()
997 png_uint_16 red_int, green_int; in png_set_rgb_to_gray_fixed()
1004 red_int = (png_uint_16)(((png_uint_32)red*32768)/100000); in png_set_rgb_to_gray_fixed()
1005 green_int = (png_uint_16)(((png_uint_32)green*32768)/100000); in png_set_rgb_to_gray_fixed()
1254 png_ptr->background.blue = (png_uint_16)gray; in png_init_rgb_transformations()
1259 png_ptr->trans_color.blue = (png_uint_16)trans_gray; in png_init_rgb_transformations()
1492 # define CHOP(x) (x)=((png_uint_16)PNG_DIV257(x)) in png_init_read_transformations()
1515 png_ptr->background.red = (png_uint_16)(png_ptr->background.red * 257); in png_init_read_transformations()
1517 (png_uint_16)(png_ptr->background.green * 257); in png_init_read_transformations()
1518 png_ptr->background.blue = (png_uint_16)(png_ptr->background.blue * 257); in png_init_read_transformations()
[all …]
Dpngconf.h490 typedef unsigned int png_uint_16; typedef
492 typedef unsigned short png_uint_16; typedef
579 typedef png_uint_16 * png_uint_16p;
580 typedef const png_uint_16 * png_const_uint_16p;
603 typedef png_uint_16 * * png_uint_16pp;
Dfx_pngwrite.c454 ptime->year = (png_uint_16)(1900 + ttime->tm_year); in png_convert_from_struct_tm()
1118 (png_uint_32)((sizeof (png_uint_16)) * num_weights)); in png_init_filter_heuristics()
1121 (png_uint_32)((sizeof (png_uint_16)) * num_weights)); in png_init_filter_heuristics()
1139 (png_uint_32)((sizeof (png_uint_16)) * PNG_FILTER_VALUE_LAST)); in png_init_filter_heuristics()
1142 (png_uint_32)((sizeof (png_uint_16)) * PNG_FILTER_VALUE_LAST)); in png_init_filter_heuristics()
1199 (png_uint_16)(PNG_WEIGHT_FACTOR*filter_weights[i]+.5); in png_set_filter_heuristics()
1202 (png_uint_16)(PNG_WEIGHT_FACTOR/filter_weights[i]+.5); in png_set_filter_heuristics()
1216 (png_uint_16)(PNG_COST_FACTOR / filter_costs[i] + .5); in png_set_filter_heuristics()
1219 (png_uint_16)(PNG_COST_FACTOR * filter_costs[i] + .5); in png_set_filter_heuristics()
1253 png_ptr->inv_filter_weights[i] = (png_uint_16) in png_set_filter_heuristics_fixed()
[all …]
Dpng.h852 png_uint_16 red; /* for use in red green blue files */
853 png_uint_16 green;
854 png_uint_16 blue;
855 png_uint_16 gray; /* for use in grayscale files */
879 png_uint_16 red;
880 png_uint_16 green;
881 png_uint_16 blue;
882 png_uint_16 alpha;
883 png_uint_16 frequency;
963 png_uint_16 year; /* full year, as in, 1995 */
[all …]
Dpnginfo.h64 png_uint_16 num_palette; /* number of color entries in "palette" (PLTE) */
65 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */
Dfx_png.c1805 colorspace->rendering_intent = (png_uint_16)intent;
2081 png_uint_16 intent;
2340 png_ptr->rgb_to_gray_red_coeff = (png_uint_16)r;
2341 png_ptr->rgb_to_gray_green_coeff = (png_uint_16)g;
3594 static png_uint_16
3602 return (png_uint_16)((x + 32767U) >> 16);
3629 png_uint_16
3636 return (png_uint_16)r;
3649 return (png_uint_16)value;
3657 png_uint_16 /* PRIVATE */
[all …]
Dfx_pngread.c1757 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()
2160 c.gray = c.red = c.green = c.blue = (png_uint_16)gray; in png_image_read_colormap()
2267 c.gray = c.red = c.green = c.blue = (png_uint_16)gray; in png_image_read_colormap()
2464 c.gray = c.red = c.green = c.blue = (png_uint_16)gray; in png_image_read_colormap()
2616 c.red = (png_uint_16)back_r; in png_image_read_colormap()
[all …]
Dfx_pngrutil.c95 png_uint_16 (PNGAPI in png_uint_16() function
107 return (png_uint_16)val; in png_uint_16()
1822 png_ptr->num_trans = (png_uint_16)length; in png_handle_tRNS()
1914 background.red = (png_uint_16)png_ptr->palette[buf[0]].red; in png_handle_bKGD()
1915 background.green = (png_uint_16)png_ptr->palette[buf[0]].green; in png_handle_bKGD()
1916 background.blue = (png_uint_16)png_ptr->palette[buf[0]].blue; in png_handle_bKGD()
1952 png_uint_16 readbuf[PNG_MAX_PALETTE_LENGTH]; in png_handle_hIST()
3351 png_isaligned(dp, png_uint_16) && in png_combine_row()
3352 png_isaligned(sp, png_uint_16) && in png_combine_row()
3353 bytes_to_copy % (sizeof (png_uint_16)) == 0 && in png_combine_row()
[all …]
Dpngpriv.h797 PNG_INTERNAL_DATA(const png_uint_16, png_sRGB_table, [256]);
803 PNG_INTERNAL_DATA(const png_uint_16, png_sRGB_base, [512]);
1917 PNG_INTERNAL_FUNCTION(png_uint_16,png_gamma_correct,(png_structrp png_ptr,
1919 PNG_INTERNAL_FUNCTION(png_uint_16,png_gamma_16bit_correct,(unsigned int value,
/external/libpng/
Dpngstruct.h122 png_uint_16 rendering_intent; /* Rendering intent of a profile */
126 png_uint_16 flags; /* As defined below */
286 png_uint_16 num_palette; /* number of color entries in palette */
293 png_uint_16 num_trans; /* number of transparency values */
313 png_uint_16 filler; /* filler bytes for pixel expansion */
387 png_uint_16 offset_table_number;
388 png_uint_16 offset_table_count;
389 png_uint_16 offset_table_count_free;
443 png_uint_16 rgb_to_gray_red_coeff;
444 png_uint_16 rgb_to_gray_green_coeff;
Dpngrtran.c732 png_ptr->num_palette = (png_uint_16)num_palette; in png_set_quantize()
998 png_uint_16 red_int, green_int; in png_set_rgb_to_gray_fixed()
1005 red_int = (png_uint_16)(((png_uint_32)red*32768)/100000); in png_set_rgb_to_gray_fixed()
1006 green_int = (png_uint_16)(((png_uint_32)green*32768)/100000); in png_set_rgb_to_gray_fixed()
1261 png_ptr->background.blue = (png_uint_16)gray; in png_init_rgb_transformations()
1266 png_ptr->trans_color.blue = (png_uint_16)trans_gray; in png_init_rgb_transformations()
1499 # define CHOP(x) (x)=((png_uint_16)PNG_DIV257(x)) in png_init_read_transformations()
1522 png_ptr->background.red = (png_uint_16)(png_ptr->background.red * 257); in png_init_read_transformations()
1524 (png_uint_16)(png_ptr->background.green * 257); in png_init_read_transformations()
1525 png_ptr->background.blue = (png_uint_16)(png_ptr->background.blue * 257); in png_init_read_transformations()
[all …]
Dpng.h613 png_uint_16 red; /* for use in red green blue files */
614 png_uint_16 green;
615 png_uint_16 blue;
616 png_uint_16 gray; /* for use in grayscale files */
640 png_uint_16 red;
641 png_uint_16 green;
642 png_uint_16 blue;
643 png_uint_16 alpha;
644 png_uint_16 frequency;
724 png_uint_16 year; /* full year, as in, 1995 */
[all …]
Dpngconf.h517 typedef unsigned int png_uint_16; typedef
519 typedef unsigned short png_uint_16; typedef
606 typedef png_uint_16 * png_uint_16p;
607 typedef const png_uint_16 * png_const_uint_16p;
630 typedef png_uint_16 * * png_uint_16pp;
Dpngwrite.c455 ptime->year = (png_uint_16)(1900 + ttime->tm_year); in png_convert_from_struct_tm()
1184 (png_uint_32)((sizeof (png_uint_16)) * num_weights)); in png_init_filter_heuristics()
1187 (png_uint_32)((sizeof (png_uint_16)) * num_weights)); in png_init_filter_heuristics()
1205 (png_uint_32)((sizeof (png_uint_16)) * PNG_FILTER_VALUE_LAST)); in png_init_filter_heuristics()
1208 (png_uint_32)((sizeof (png_uint_16)) * PNG_FILTER_VALUE_LAST)); in png_init_filter_heuristics()
1265 (png_uint_16)(PNG_WEIGHT_FACTOR*filter_weights[i]+.5); in png_set_filter_heuristics()
1268 (png_uint_16)(PNG_WEIGHT_FACTOR/filter_weights[i]+.5); in png_set_filter_heuristics()
1282 (png_uint_16)(PNG_COST_FACTOR / filter_costs[i] + .5); in png_set_filter_heuristics()
1285 (png_uint_16)(PNG_COST_FACTOR * filter_costs[i] + .5); in png_set_filter_heuristics()
1319 png_ptr->inv_filter_weights[i] = (png_uint_16) in png_set_filter_heuristics_fixed()
[all …]
Dpnginfo.h64 png_uint_16 num_palette; /* number of color entries in "palette" (PLTE) */
65 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */
Dpng.c1872 colorspace->rendering_intent = (png_uint_16)intent;
2148 png_uint_16 intent;
2408 png_ptr->rgb_to_gray_red_coeff = (png_uint_16)r;
2409 png_ptr->rgb_to_gray_green_coeff = (png_uint_16)g;
3694 static png_uint_16
3702 return (png_uint_16)((x + 32767U) >> 16);
3731 png_uint_16
3738 return (png_uint_16)r;
3751 return (png_uint_16)value;
3760 png_uint_16 /* PRIVATE */
[all …]
Dpngread.c2023 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()
2426 c.gray = c.red = c.green = c.blue = (png_uint_16)gray; in png_image_read_colormap()
2533 c.gray = c.red = c.green = c.blue = (png_uint_16)gray; in png_image_read_colormap()
2730 c.gray = c.red = c.green = c.blue = (png_uint_16)gray; in png_image_read_colormap()
2882 c.red = (png_uint_16)back_r; in png_image_read_colormap()
[all …]
Dpngrutil.c96 png_uint_16 (PNGAPI in png_uint_16() function
108 return (png_uint_16)val; in png_uint_16()
1860 png_ptr->num_trans = (png_uint_16)length; in png_handle_tRNS()
1952 background.red = (png_uint_16)png_ptr->palette[buf[0]].red; in png_handle_bKGD()
1953 background.green = (png_uint_16)png_ptr->palette[buf[0]].green; in png_handle_bKGD()
1954 background.blue = (png_uint_16)png_ptr->palette[buf[0]].blue; in png_handle_bKGD()
1990 png_uint_16 readbuf[PNG_MAX_PALETTE_LENGTH]; in png_handle_hIST()
3388 png_isaligned(dp, png_uint_16) && in png_combine_row()
3389 png_isaligned(sp, png_uint_16) && in png_combine_row()
3390 bytes_to_copy % (sizeof (png_uint_16)) == 0 && in png_combine_row()
[all …]
Dpngpriv.h844 PNG_INTERNAL_DATA(const png_uint_16, png_sRGB_table, [256]);
850 PNG_INTERNAL_DATA(const png_uint_16, png_sRGB_base, [512]);
1849 PNG_INTERNAL_FUNCTION(png_uint_16,png_gamma_correct,(png_structrp png_ptr,
1851 PNG_INTERNAL_FUNCTION(png_uint_16,png_gamma_16bit_correct,(unsigned int value,
Dpngset.c187 PNG_MAX_PALETTE_LENGTH * (sizeof (png_uint_16)))); in png_set_hIST()
553 info_ptr->num_palette = png_ptr->num_palette = (png_uint_16)num_palette; in png_set_PLTE()
960 info_ptr->num_trans = (png_uint_16)num_trans; in png_set_tRNS()
/external/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.c168 typedef png_uint_16 udigit; /* A 'unum' is an array of these */
187 result[ndigits++] = (png_uint_16)(val & 0xffff); in uarb_set()
221 num[out_digits++] = (png_uint_16)(add & 0xffff); in uarb_inc()
227 num[out_digits++] = (png_uint_16)(add & 0xffff); in uarb_inc()
262 png_uint_16 val) in uarb_mult_digit()
291 acc[out_digits++] = (png_uint_16)(carry & 0xffff); in uarb_mult_digit()
314 (png_uint_16)(val & 0xffff)); in uarb_mult32()
322 (png_uint_16)val) + 1; in uarb_mult32()
335 png_uint_16 carry = 0; in uarb_shift()
341 png_uint_16 temp = (png_uint_16)(carry | (inout[i] >> right_shift)); in uarb_shift()
[all …]
/external/libpng/contrib/libtests/
Dpngstest.c126 static png_uint_16
130 return (png_uint_16)d; in u16d()
182 static png_uint_16
188 static png_uint_16
194 static png_uint_16
201 static png_uint_16
562 png_uint_16 colormap[256*4];
1988 static png_uint_16 gpc_error[16/*in*/][16/*out*/][4/*a*/] =
2072 static png_uint_16 gpc_error_via_linear[16][4/*out*/][4] =
2108 static png_uint_16 gpc_error_to_colormap[8/*i*/][8/*o*/][4] =
[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()

12