Lines Matching refs:png_byte
114 png_ptr->background_gamma_type = (png_byte)(background_gamma_code); in png_set_background()
157 png_byte left;
158 png_byte right;
179 (png_uint_32)(num_palette * png_sizeof(png_byte))); in png_set_dither()
181 png_ptr->dither_index[i] = (png_byte)i; in png_set_dither()
196 (png_uint_32)(num_palette * png_sizeof(png_byte))); in png_set_dither()
200 png_ptr->dither_sort[i] = (png_byte)i; in png_set_dither()
220 png_byte t; in png_set_dither()
273 png_ptr->dither_index[j] = (png_byte)i; in png_set_dither()
274 png_ptr->dither_index[i] = (png_byte)j; in png_set_dither()
301 png_ptr->dither_index[i] = (png_byte)min_k; in png_set_dither()
328 (png_uint_32)(num_palette * png_sizeof(png_byte))); in png_set_dither()
330 (png_uint_32)(num_palette * png_sizeof(png_byte))); in png_set_dither()
335 png_ptr->index_to_palette[i] = (png_byte)i; in png_set_dither()
336 png_ptr->palette_to_index[i] = (png_byte)i; in png_set_dither()
374 t->left = (png_byte)i; in png_set_dither()
375 t->right = (png_byte)j; in png_set_dither()
436 (png_byte)num_new_palette; in png_set_dither()
438 (png_byte)j; in png_set_dither()
490 (png_uint_32)(num_entries * png_sizeof(png_byte))); in png_set_dither()
493 png_sizeof(png_byte))); in png_set_dither()
494 png_memset(distance, 0xff, num_entries * png_sizeof(png_byte)); in png_set_dither()
528 distance[d_index] = (png_byte)d; in png_set_dither()
529 png_ptr->palette_lookup[d_index] = (png_byte)i; in png_set_dither()
897 png_ptr->trans[i] = (png_byte)(255 - png_ptr->trans[i]); in png_init_read_transformations()
979 back.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
980 back.green = (png_byte)png_ptr->background.green; in png_init_read_transformations()
981 back.blue = (png_byte)png_ptr->background.blue; in png_init_read_transformations()
985 back.red = (png_byte)(pow( in png_init_read_transformations()
987 back.green = (png_byte)(pow( in png_init_read_transformations()
990 back.blue = (png_byte)(pow( in png_init_read_transformations()
994 back_1.red = (png_byte)(pow( in png_init_read_transformations()
996 back_1.green = (png_byte)(pow( in png_init_read_transformations()
998 back_1.blue = (png_byte)(pow( in png_init_read_transformations()
1011 png_byte v, w; in png_init_read_transformations()
1136 back.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1137 back.green = (png_byte)png_ptr->background.green; in png_init_read_transformations()
1138 back.blue = (png_byte)png_ptr->background.blue; in png_init_read_transformations()
1325 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * in png_read_transform_info()
1575 png_ptr->row_info.pixel_depth = (png_byte)(png_ptr->row_info.bit_depth * in png_do_read_transformations()
1614 *dp = (png_byte)((*sp >> shift) & 0x01); in png_do_unpack()
1636 *dp = (png_byte)((*sp >> shift) & 0x03); in png_do_unpack()
1657 *dp = (png_byte)((*sp >> shift) & 0x0f); in png_do_unpack()
1672 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_unpack()
1748 png_byte mask = (png_byte)((((int)0xf0 >> shift[0]) & (int)0xf0) | in png_do_unshift()
1749 (png_byte)((int)0xf >> shift[0])); in png_do_unshift()
1782 *bp++ = (png_byte)(value >> 8); in png_do_unshift()
1783 *bp++ = (png_byte)(value & 0xff); in png_do_unshift()
1845 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_chop()
1869 png_byte save; in png_do_read_swap_alpha()
1886 png_byte save[2]; in png_do_read_swap_alpha()
1911 png_byte save; in png_do_read_swap_alpha()
1926 png_byte save[2]; in png_do_read_swap_alpha()
1966 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
1987 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
1988 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2015 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2028 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2029 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2052 png_byte hi_filler = (png_byte)((filler>>8) & 0xff); in png_do_read_filler()
2053 png_byte lo_filler = (png_byte)(filler & 0xff); in png_do_read_filler()
2295 row_info->channels += (png_byte)2; in png_do_gray_to_rgb()
2297 row_info->pixel_depth = (png_byte)(row_info->channels * in png_do_gray_to_rgb()
2359 png_byte red = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2360 png_byte green = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2361 png_byte blue = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2379 png_byte red = *(sp++); in png_do_rgb_to_gray()
2380 png_byte green = *(sp++); in png_do_rgb_to_gray()
2381 png_byte blue = *(sp++); in png_do_rgb_to_gray()
2385 *(dp++) = (png_byte)((rc*red + gc*green + bc*blue)>>15); in png_do_rgb_to_gray()
2427 *(dp++) = (png_byte)((w>>8) & 0xff); in png_do_rgb_to_gray()
2428 *(dp++) = (png_byte)(w & 0xff); in png_do_rgb_to_gray()
2447 *(dp++) = (png_byte)((gray16>>8) & 0xff); in png_do_rgb_to_gray()
2448 *(dp++) = (png_byte)(gray16 & 0xff); in png_do_rgb_to_gray()
2464 png_byte red = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2465 png_byte green = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2466 png_byte blue = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2481 png_byte red = *(sp++); in png_do_rgb_to_gray()
2482 png_byte green = *(sp++); in png_do_rgb_to_gray()
2483 png_byte blue = *(sp++); in png_do_rgb_to_gray()
2486 *(dp++) = (png_byte)((rc*red + gc*green + bc*blue)>>15); in png_do_rgb_to_gray()
2525 *(dp++) = (png_byte)((w>>8) & 0xff); in png_do_rgb_to_gray()
2526 *(dp++) = (png_byte)(w & 0xff); in png_do_rgb_to_gray()
2545 *(dp++) = (png_byte)((gray16>>8) & 0xff); in png_do_rgb_to_gray()
2546 *(dp++) = (png_byte)(gray16 & 0xff); in png_do_rgb_to_gray()
2553 row_info->channels -= (png_byte)2; in png_do_rgb_to_gray()
2555 row_info->pixel_depth = (png_byte)(row_info->channels * in png_do_rgb_to_gray()
2611 palette[i].red = (png_byte)v; in png_build_grayscale_palette()
2612 palette[i].green = (png_byte)v; in png_build_grayscale_palette()
2613 palette[i].blue = (png_byte)v; in png_build_grayscale_palette()
2659 (png_byte)(pow((double)png_ptr->background.red/255, g) * in png_correct_palette()
2662 (png_byte)(pow((double)png_ptr->background.green/255, g) * in png_correct_palette()
2665 (png_byte)(pow((double)png_ptr->background.blue/255, g) * in png_correct_palette()
2672 (png_byte)(pow((double)png_ptr->background.red/255, g) * in png_correct_palette()
2675 (png_byte)(pow((double)png_ptr->background.green/255, g) * in png_correct_palette()
2678 (png_byte)(pow((double)png_ptr->background.blue/255, g) * in png_correct_palette()
2694 png_byte v, w; in png_correct_palette()
2722 if (palette[i].red == (png_byte)png_ptr->trans_values.gray) in png_correct_palette()
2760 back.red = (png_byte)png_ptr->background.red; in png_correct_palette()
2761 back.green = (png_byte)png_ptr->background.green; in png_correct_palette()
2762 back.blue = (png_byte)png_ptr->background.blue; in png_correct_palette()
2789 if (i == (png_byte)png_ptr->trans_values.gray) in png_correct_palette()
2791 palette[i].red = (png_byte)png_ptr->background.red; in png_correct_palette()
2792 palette[i].green = (png_byte)png_ptr->background.green; in png_correct_palette()
2793 palette[i].blue = (png_byte)png_ptr->background.blue; in png_correct_palette()
2847 *sp &= (png_byte)((0x7f7f >> (7 - shift)) & 0xff); in png_do_background()
2848 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2873 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff); in png_do_background()
2874 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2878 png_byte p = (png_byte)((*sp >> shift) & 0x03); in png_do_background()
2879 png_byte g = (png_byte)((gamma_table [p | (p << 2) | in png_do_background()
2881 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff); in png_do_background()
2882 *sp |= (png_byte)(g << shift); in png_do_background()
2903 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff); in png_do_background()
2904 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2930 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff); in png_do_background()
2931 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2935 png_byte p = (png_byte)((*sp >> shift) & 0x0f); in png_do_background()
2936 png_byte g = (png_byte)((gamma_table[p | in png_do_background()
2938 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff); in png_do_background()
2939 *sp |= (png_byte)(g << shift); in png_do_background()
2960 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff); in png_do_background()
2961 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2985 *sp = (png_byte)background->gray; in png_do_background()
3001 *sp = (png_byte)background->gray; in png_do_background()
3022 *sp = (png_byte)((background->gray >> 8) & 0xff); in png_do_background()
3023 *(sp + 1) = (png_byte)(background->gray & 0xff); in png_do_background()
3028 *sp = (png_byte)((v >> 8) & 0xff); in png_do_background()
3029 *(sp + 1) = (png_byte)(v & 0xff); in png_do_background()
3044 *sp = (png_byte)((background->gray >> 8) & 0xff); in png_do_background()
3045 *(sp + 1) = (png_byte)(background->gray & 0xff); in png_do_background()
3069 *sp = (png_byte)background->red; in png_do_background()
3070 *(sp + 1) = (png_byte)background->green; in png_do_background()
3071 *(sp + 2) = (png_byte)background->blue; in png_do_background()
3091 *sp = (png_byte)background->red; in png_do_background()
3092 *(sp + 1) = (png_byte)background->green; in png_do_background()
3093 *(sp + 2) = (png_byte)background->blue; in png_do_background()
3113 *sp = (png_byte)((background->red >> 8) & 0xff); in png_do_background()
3114 *(sp + 1) = (png_byte)(background->red & 0xff); in png_do_background()
3115 *(sp + 2) = (png_byte)((background->green >> 8) & 0xff); in png_do_background()
3116 *(sp + 3) = (png_byte)(background->green & 0xff); in png_do_background()
3117 *(sp + 4) = (png_byte)((background->blue >> 8) & 0xff); in png_do_background()
3118 *(sp + 5) = (png_byte)(background->blue & 0xff); in png_do_background()
3123 *sp = (png_byte)((v >> 8) & 0xff); in png_do_background()
3124 *(sp + 1) = (png_byte)(v & 0xff); in png_do_background()
3126 *(sp + 2) = (png_byte)((v >> 8) & 0xff); in png_do_background()
3127 *(sp + 3) = (png_byte)(v & 0xff); in png_do_background()
3129 *(sp + 4) = (png_byte)((v >> 8) & 0xff); in png_do_background()
3130 *(sp + 5) = (png_byte)(v & 0xff); in png_do_background()
3147 *sp = (png_byte)((background->red >> 8) & 0xff); in png_do_background()
3148 *(sp + 1) = (png_byte)(background->red & 0xff); in png_do_background()
3149 *(sp + 2) = (png_byte)((background->green >> 8) & 0xff); in png_do_background()
3150 *(sp + 3) = (png_byte)(background->green & 0xff); in png_do_background()
3151 *(sp + 4) = (png_byte)((background->blue >> 8) & 0xff); in png_do_background()
3152 *(sp + 5) = (png_byte)(background->blue & 0xff); in png_do_background()
3181 *dp = (png_byte)background->gray; in png_do_background()
3185 png_byte v, w; in png_do_background()
3200 png_byte a = *(sp + 1); in png_do_background()
3209 *dp = (png_byte)background->gray; in png_do_background()
3216 *dp = (png_byte)background->gray; in png_do_background()
3238 *dp = (png_byte)((v >> 8) & 0xff); in png_do_background()
3239 *(dp + 1) = (png_byte)(v & 0xff); in png_do_background()
3248 *dp = (png_byte)((background->gray >> 8) & 0xff); in png_do_background()
3249 *(dp + 1) = (png_byte)(background->gray & 0xff); in png_do_background()
3259 *dp = (png_byte)((w >> 8) & 0xff); in png_do_background()
3260 *(dp + 1) = (png_byte)(w & 0xff); in png_do_background()
3283 *dp = (png_byte)((background->gray >> 8) & 0xff); in png_do_background()
3284 *(dp + 1) = (png_byte)(background->gray & 0xff); in png_do_background()
3293 *dp = (png_byte)((v >> 8) & 0xff); in png_do_background()
3294 *(dp + 1) = (png_byte)(v & 0xff); in png_do_background()
3315 png_byte a = *(sp + 3); in png_do_background()
3326 *dp = (png_byte)background->red; in png_do_background()
3327 *(dp + 1) = (png_byte)background->green; in png_do_background()
3328 *(dp + 2) = (png_byte)background->blue; in png_do_background()
3332 png_byte v, w; in png_do_background()
3353 png_byte a = *(sp + 3); in png_do_background()
3363 *dp = (png_byte)background->red; in png_do_background()
3364 *(dp + 1) = (png_byte)background->green; in png_do_background()
3365 *(dp + 2) = (png_byte)background->blue; in png_do_background()
3395 *dp = (png_byte)((v >> 8) & 0xff); in png_do_background()
3396 *(dp + 1) = (png_byte)(v & 0xff); in png_do_background()
3398 *(dp + 2) = (png_byte)((v >> 8) & 0xff); in png_do_background()
3399 *(dp + 3) = (png_byte)(v & 0xff); in png_do_background()
3401 *(dp + 4) = (png_byte)((v >> 8) & 0xff); in png_do_background()
3402 *(dp + 5) = (png_byte)(v & 0xff); in png_do_background()
3407 *dp = (png_byte)((background->red >> 8) & 0xff); in png_do_background()
3408 *(dp + 1) = (png_byte)(background->red & 0xff); in png_do_background()
3409 *(dp + 2) = (png_byte)((background->green >> 8) & 0xff); in png_do_background()
3410 *(dp + 3) = (png_byte)(background->green & 0xff); in png_do_background()
3411 *(dp + 4) = (png_byte)((background->blue >> 8) & 0xff); in png_do_background()
3412 *(dp + 5) = (png_byte)(background->blue & 0xff); in png_do_background()
3421 *dp = (png_byte)((x >> 8) & 0xff); in png_do_background()
3422 *(dp + 1) = (png_byte)(x & 0xff); in png_do_background()
3426 *(dp + 2) = (png_byte)((x >> 8) & 0xff); in png_do_background()
3427 *(dp + 3) = (png_byte)(x & 0xff); in png_do_background()
3431 *(dp + 4) = (png_byte)((x >> 8) & 0xff); in png_do_background()
3432 *(dp + 5) = (png_byte)(x & 0xff); in png_do_background()
3451 *dp = (png_byte)((background->red >> 8) & 0xff); in png_do_background()
3452 *(dp + 1) = (png_byte)(background->red & 0xff); in png_do_background()
3453 *(dp + 2) = (png_byte)((background->green >> 8) & 0xff); in png_do_background()
3454 *(dp + 3) = (png_byte)(background->green & 0xff); in png_do_background()
3455 *(dp + 4) = (png_byte)((background->blue >> 8) & 0xff); in png_do_background()
3456 *(dp + 5) = (png_byte)(background->blue & 0xff); in png_do_background()
3469 *dp = (png_byte)((v >> 8) & 0xff); in png_do_background()
3470 *(dp + 1) = (png_byte)(v & 0xff); in png_do_background()
3472 *(dp + 2) = (png_byte)((v >> 8) & 0xff); in png_do_background()
3473 *(dp + 3) = (png_byte)(v & 0xff); in png_do_background()
3475 *(dp + 4) = (png_byte)((v >> 8) & 0xff); in png_do_background()
3476 *(dp + 5) = (png_byte)(v & 0xff); in png_do_background()
3489 row_info->pixel_depth = (png_byte)(row_info->channels * in png_do_background()
3547 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3548 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3551 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3552 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3555 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3556 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3585 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3586 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3589 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3590 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3593 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3594 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3618 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3619 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3638 *sp = (png_byte)( in png_do_gamma()
3655 *sp = (png_byte)((((int)gamma_table[msb | (msb >> 4)]) & 0xf0) in png_do_gamma()
3677 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3678 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3746 *dp = (png_byte)value; in png_do_expand_palette()
3768 *dp = (png_byte)value; in png_do_expand_palette()
3897 *dp = (png_byte)(value | (value << 2) | (value << 4) | in png_do_expand()
3921 *dp = (png_byte)(value | (value << 4)); in png_do_expand()
3960 png_byte gray_high = (gray >> 8) & 0xff; in png_do_expand()
3961 png_byte gray_low = gray & 0xff; in png_do_expand()
3983 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 1); in png_do_expand()
3992 png_byte red = trans_value->red & 0xff; in png_do_expand()
3993 png_byte green = trans_value->green & 0xff; in png_do_expand()
3994 png_byte blue = trans_value->blue & 0xff; in png_do_expand()
4010 png_byte red_high = (trans_value->red >> 8) & 0xff; in png_do_expand()
4011 png_byte green_high = (trans_value->green >> 8) & 0xff; in png_do_expand()
4012 png_byte blue_high = (trans_value->blue >> 8) & 0xff; in png_do_expand()
4013 png_byte red_low = trans_value->red & 0xff; in png_do_expand()
4014 png_byte green_low = trans_value->green & 0xff; in png_do_expand()
4015 png_byte blue_low = trans_value->blue & 0xff; in png_do_expand()
4045 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 2); in png_do_expand()
4203 png_ptr->gamma_table[i] = (png_byte)(pow((double)i / 255.0, in png_build_gamma_table()
4219 png_ptr->gamma_to_1[i] = (png_byte)(pow((double)i / 255.0, in png_build_gamma_table()
4235 png_ptr->gamma_from_1[i] = (png_byte)(pow((double)i / 255.0, in png_build_gamma_table()
4282 png_ptr->gamma_shift = (png_byte)shift; in png_build_gamma_table()
4433 *(rp) = (png_byte)((256 + *rp + *(rp+1))&0xff); in png_do_read_intrapixel()
4434 *(rp+2) = (png_byte)((256 + *(rp+2) + *(rp+1))&0xff); in png_do_read_intrapixel()
4458 *(rp ) = (png_byte)((red >> 8) & 0xff); in png_do_read_intrapixel()
4459 *(rp+1) = (png_byte)(red & 0xff); in png_do_read_intrapixel()
4460 *(rp+4) = (png_byte)((blue >> 8) & 0xff); in png_do_read_intrapixel()
4461 *(rp+5) = (png_byte)(blue & 0xff); in png_do_read_intrapixel()