• Home
  • Raw
  • Download

Lines Matching refs:png_byte

158    png_ptr->background_gamma_type = (png_byte)(background_gamma_code);  in png_set_background_fixed()
421 png_byte left;
422 png_byte right;
444 (png_alloc_size_t)((png_uint_32)num_palette * (sizeof (png_byte)))); in png_set_quantize()
446 png_ptr->quantize_index[i] = (png_byte)i; in png_set_quantize()
461 (png_alloc_size_t)((png_uint_32)num_palette * (sizeof (png_byte)))); in png_set_quantize()
465 png_ptr->quantize_sort[i] = (png_byte)i; in png_set_quantize()
485 png_byte t; in png_set_quantize()
540 png_ptr->quantize_index[j] = (png_byte)i; in png_set_quantize()
541 png_ptr->quantize_index[i] = (png_byte)j; in png_set_quantize()
568 png_ptr->quantize_index[i] = (png_byte)min_k; in png_set_quantize()
596 (sizeof (png_byte)))); in png_set_quantize()
599 (sizeof (png_byte)))); in png_set_quantize()
604 png_ptr->index_to_palette[i] = (png_byte)i; in png_set_quantize()
605 png_ptr->palette_to_index[i] = (png_byte)i; in png_set_quantize()
645 t->left = (png_byte)i; in png_set_quantize()
646 t->right = (png_byte)j; in png_set_quantize()
709 (png_byte)num_new_palette; in png_set_quantize()
712 (png_byte)j; in png_set_quantize()
764 (png_alloc_size_t)(num_entries * (sizeof (png_byte)))); in png_set_quantize()
767 (sizeof (png_byte)))); in png_set_quantize()
769 memset(distance, 0xff, num_entries * (sizeof (png_byte))); in png_set_quantize()
803 distance[d_index] = (png_byte)d; in png_set_quantize()
804 png_ptr->palette_lookup[d_index] = (png_byte)i; in png_set_quantize()
1196 (png_byte)(255 - png_ptr->trans_alpha[i]); in png_init_palette_transformations()
1663 back.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1664 back.green = (png_byte)png_ptr->background.green; in png_init_read_transformations()
1665 back.blue = (png_byte)png_ptr->background.blue; in png_init_read_transformations()
1680 back_1.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1681 back_1.green = (png_byte)png_ptr->background.green; in png_init_read_transformations()
1682 back_1.blue = (png_byte)png_ptr->background.blue; in png_init_read_transformations()
1697 png_byte v, w; in png_init_read_transformations()
1859 back.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1860 back.green = (png_byte)png_ptr->background.green; in png_init_read_transformations()
1861 back.blue = (png_byte)png_ptr->background.blue; in png_init_read_transformations()
1909 png_ptr->palette[i].red = (png_byte)component; in png_init_read_transformations()
1919 png_ptr->palette[i].green = (png_byte)component; in png_init_read_transformations()
1929 png_ptr->palette[i].blue = (png_byte)component; in png_init_read_transformations()
2042 info_ptr->color_type = (png_byte)(info_ptr->color_type | in png_read_transform_info()
2048 info_ptr->color_type = (png_byte)(info_ptr->color_type & in png_read_transform_info()
2091 info_ptr->color_type = (png_byte)(info_ptr->color_type & in png_read_transform_info()
2125 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * in png_read_transform_info()
2170 *dp = (png_byte)((*sp >> shift) & 0x01); in png_do_unpack()
2194 *dp = (png_byte)((*sp >> shift) & 0x03); in png_do_unpack()
2217 *dp = (png_byte)((*sp >> shift) & 0x0f); in png_do_unpack()
2237 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_unpack()
2319 *bp++ = (png_byte)b; in png_do_unshift()
2338 *bp++ = (png_byte)b; in png_do_unshift()
2355 *bp++ = (png_byte)b; in png_do_unshift()
2375 *bp++ = (png_byte)(value >> 8); in png_do_unshift()
2376 *bp++ = (png_byte)value; in png_do_unshift()
2435 *dp++ = (png_byte)tmp; in png_do_scale_16_to_8()
2439 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_scale_16_to_8()
2467 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_chop()
2488 png_byte save; in png_do_read_swap_alpha()
2507 png_byte save[2]; in png_do_read_swap_alpha()
2534 png_byte save; in png_do_read_swap_alpha()
2551 png_byte save[2]; in png_do_read_swap_alpha()
2588 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2611 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2612 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2640 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2655 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2656 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2680 png_byte hi_filler = (png_byte)(filler>>8); in png_do_read_filler()
2682 png_byte lo_filler = (png_byte)filler; in png_do_read_filler()
2936 row_info->channels = (png_byte)(row_info->channels + 2); in png_do_gray_to_rgb()
2938 row_info->pixel_depth = (png_byte)(row_info->channels * in png_do_gray_to_rgb()
3030 png_byte red = *(sp++); in png_do_rgb_to_gray()
3031 png_byte green = *(sp++); in png_do_rgb_to_gray()
3032 png_byte blue = *(sp++); in png_do_rgb_to_gray()
3069 png_byte red = *(sp++); in png_do_rgb_to_gray()
3070 png_byte green = *(sp++); in png_do_rgb_to_gray()
3071 png_byte blue = *(sp++); in png_do_rgb_to_gray()
3079 *(dp++) = (png_byte)((rc*red + gc*green + bc*blue)>>15); in png_do_rgb_to_gray()
3103 png_byte hi,lo; in png_do_rgb_to_gray()
3135 *(dp++) = (png_byte)((w>>8) & 0xff); in png_do_rgb_to_gray()
3136 *(dp++) = (png_byte)(w & 0xff); in png_do_rgb_to_gray()
3155 png_byte hi,lo; in png_do_rgb_to_gray()
3170 *(dp++) = (png_byte)((gray16 >> 8) & 0xff); in png_do_rgb_to_gray()
3171 *(dp++) = (png_byte)(gray16 & 0xff); in png_do_rgb_to_gray()
3182 row_info->channels = (png_byte)(row_info->channels - 2); in png_do_rgb_to_gray()
3183 row_info->color_type = (png_byte)(row_info->color_type & in png_do_rgb_to_gray()
3185 row_info->pixel_depth = (png_byte)(row_info->channels * in png_do_rgb_to_gray()
3238 *sp = (png_byte)(tmp & 0xff); in png_do_compose()
3268 *sp = (png_byte)(tmp & 0xff); in png_do_compose()
3278 *sp = (png_byte)(tmp & 0xff); in png_do_compose()
3305 *sp = (png_byte)(tmp & 0xff); in png_do_compose()
3336 *sp = (png_byte)(tmp & 0xff); in png_do_compose()
3346 *sp = (png_byte)(tmp & 0xff); in png_do_compose()
3373 *sp = (png_byte)(tmp & 0xff); in png_do_compose()
3398 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3411 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3432 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3434 *(sp + 1) = (png_byte)(png_ptr->background.gray in png_do_compose()
3441 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3442 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3458 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3460 *(sp + 1) = (png_byte)(png_ptr->background.gray in png_do_compose()
3488 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3489 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
3490 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
3511 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3512 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
3513 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
3539 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3540 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3541 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
3543 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
3545 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
3547 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
3553 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3554 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3557 *(sp + 2) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3558 *(sp + 3) = (png_byte)(v & 0xff); in png_do_compose()
3561 *(sp + 4) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3562 *(sp + 5) = (png_byte)(v & 0xff); in png_do_compose()
3585 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3586 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3587 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
3589 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
3591 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
3593 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
3620 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3625 png_byte v, w; in png_do_compose()
3641 png_byte a = *(sp + 1); in png_do_compose()
3644 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3668 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3669 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3675 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3677 *(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff); in png_do_compose()
3691 *sp = (png_byte)((w >> 8) & 0xff); in png_do_compose()
3692 *(sp + 1) = (png_byte)(w & 0xff); in png_do_compose()
3707 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3709 *(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff); in png_do_compose()
3718 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3719 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3738 png_byte a = *(sp + 3); in png_do_compose()
3750 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3751 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
3752 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
3757 png_byte v, w; in png_do_compose()
3782 png_byte a = *(sp + 3); in png_do_compose()
3786 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3787 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
3788 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
3821 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3822 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3825 *(sp + 2) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3826 *(sp + 3) = (png_byte)(v & 0xff); in png_do_compose()
3829 *(sp + 4) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3830 *(sp + 5) = (png_byte)(v & 0xff); in png_do_compose()
3836 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3837 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3838 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
3840 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
3842 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
3844 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
3856 *sp = (png_byte)((w >> 8) & 0xff); in png_do_compose()
3857 *(sp + 1) = (png_byte)(w & 0xff); in png_do_compose()
3865 *(sp + 2) = (png_byte)((w >> 8) & 0xff); in png_do_compose()
3866 *(sp + 3) = (png_byte)(w & 0xff); in png_do_compose()
3874 *(sp + 4) = (png_byte)((w >> 8) & 0xff); in png_do_compose()
3875 *(sp + 5) = (png_byte)(w & 0xff); in png_do_compose()
3891 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3892 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3893 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
3895 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
3897 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
3899 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
3913 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3914 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3917 *(sp + 2) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3918 *(sp + 3) = (png_byte)(v & 0xff); in png_do_compose()
3921 *(sp + 4) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3922 *(sp + 5) = (png_byte)(v & 0xff); in png_do_compose()
3985 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3986 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3990 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3991 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3995 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3996 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4029 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4030 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4034 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4035 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4039 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4040 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4065 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4066 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4085 *sp = (png_byte)( in png_do_gamma()
4102 *sp = (png_byte)((((int)gamma_table[msb | (msb >> 4)]) & 0xf0) in png_do_gamma()
4124 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4125 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4188 *row = (png_byte)((v >> 8) & 0xff); in png_do_encode_alpha()
4189 *(row + 1) = (png_byte)(v & 0xff); in png_do_encode_alpha()
4261 *dp = (png_byte)value; in png_do_expand_palette()
4284 *dp = (png_byte)value; in png_do_expand_palette()
4438 *dp = (png_byte)(value | (value << 2) | (value << 4) | in png_do_expand()
4463 *dp = (png_byte)(value | (value << 4)); in png_do_expand()
4535 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 1); in png_do_expand()
4545 png_byte red = (png_byte)(trans_color->red & 0xff); in png_do_expand()
4546 png_byte green = (png_byte)(trans_color->green & 0xff); in png_do_expand()
4547 png_byte blue = (png_byte)(trans_color->blue & 0xff); in png_do_expand()
4565 png_byte red_high = (png_byte)((trans_color->red >> 8) & 0xff); in png_do_expand()
4566 png_byte green_high = (png_byte)((trans_color->green >> 8) & 0xff); in png_do_expand()
4567 png_byte blue_high = (png_byte)((trans_color->blue >> 8) & 0xff); in png_do_expand()
4568 png_byte red_low = (png_byte)(trans_color->red & 0xff); in png_do_expand()
4569 png_byte green_low = (png_byte)(trans_color->green & 0xff); in png_do_expand()
4570 png_byte blue_low = (png_byte)(trans_color->blue & 0xff); in png_do_expand()
4602 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 2); in png_do_expand()
4627 png_byte *sp = row + row_info->rowbytes; /* source, last byte + 1 */ in png_do_expand_16()
4628 png_byte *dp = sp + row_info->rowbytes; /* destination, end + 1 */ in png_do_expand_16()
4636 row_info->pixel_depth = (png_byte)(row_info->channels * 16); in png_do_expand_16()
5035 row_info->pixel_depth = (png_byte)(row_info->bit_depth * in png_do_read_transformations()