Lines Matching refs:png_byte
116 png_ptr->background_gamma_type = (png_byte)(background_gamma_code); in png_set_background_fixed()
374 png_byte left;
375 png_byte right;
397 (png_uint_32)(num_palette * png_sizeof(png_byte))); in png_set_quantize()
399 png_ptr->quantize_index[i] = (png_byte)i; in png_set_quantize()
414 (png_uint_32)(num_palette * png_sizeof(png_byte))); in png_set_quantize()
418 png_ptr->quantize_sort[i] = (png_byte)i; in png_set_quantize()
438 png_byte t; in png_set_quantize()
493 png_ptr->quantize_index[j] = (png_byte)i; in png_set_quantize()
494 png_ptr->quantize_index[i] = (png_byte)j; in png_set_quantize()
521 png_ptr->quantize_index[i] = (png_byte)min_k; in png_set_quantize()
548 (png_uint_32)(num_palette * png_sizeof(png_byte))); in png_set_quantize()
550 (png_uint_32)(num_palette * png_sizeof(png_byte))); in png_set_quantize()
555 png_ptr->index_to_palette[i] = (png_byte)i; in png_set_quantize()
556 png_ptr->palette_to_index[i] = (png_byte)i; in png_set_quantize()
596 t->left = (png_byte)i; in png_set_quantize()
597 t->right = (png_byte)j; in png_set_quantize()
660 (png_byte)num_new_palette; in png_set_quantize()
663 (png_byte)j; in png_set_quantize()
715 (png_uint_32)(num_entries * png_sizeof(png_byte))); in png_set_quantize()
718 png_sizeof(png_byte))); in png_set_quantize()
720 png_memset(distance, 0xff, num_entries * png_sizeof(png_byte)); in png_set_quantize()
754 distance[d_index] = (png_byte)d; in png_set_quantize()
755 png_ptr->palette_lookup[d_index] = (png_byte)i; in png_set_quantize()
1149 png_ptr->trans_alpha[i] = (png_byte)(255 - in png_init_palette_transformations()
1607 back.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1608 back.green = (png_byte)png_ptr->background.green; in png_init_read_transformations()
1609 back.blue = (png_byte)png_ptr->background.blue; in png_init_read_transformations()
1624 back_1.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1625 back_1.green = (png_byte)png_ptr->background.green; in png_init_read_transformations()
1626 back_1.blue = (png_byte)png_ptr->background.blue; in png_init_read_transformations()
1641 png_byte v, w; in png_init_read_transformations()
1802 back.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1803 back.green = (png_byte)png_ptr->background.green; in png_init_read_transformations()
1804 back.blue = (png_byte)png_ptr->background.blue; in png_init_read_transformations()
1851 png_ptr->palette[i].red = (png_byte)component; in png_init_read_transformations()
1860 png_ptr->palette[i].green = (png_byte)component; in png_init_read_transformations()
1869 png_ptr->palette[i].blue = (png_byte)component; in png_init_read_transformations()
1975 info_ptr->color_type = (png_byte)(info_ptr->color_type | in png_read_transform_info()
1981 info_ptr->color_type = (png_byte)(info_ptr->color_type & in png_read_transform_info()
2022 info_ptr->color_type = (png_byte)(info_ptr->color_type & in png_read_transform_info()
2056 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * in png_read_transform_info()
2363 row_info->pixel_depth = (png_byte)(row_info->bit_depth * in png_do_read_transformations()
2397 *dp = (png_byte)((*sp >> shift) & 0x01); in png_do_unpack()
2421 *dp = (png_byte)((*sp >> shift) & 0x03); in png_do_unpack()
2444 *dp = (png_byte)((*sp >> shift) & 0x0f); in png_do_unpack()
2464 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_unpack()
2546 *bp++ = (png_byte)b; in png_do_unshift()
2565 *bp++ = (png_byte)b; in png_do_unshift()
2582 *bp++ = (png_byte)b; in png_do_unshift()
2602 *bp++ = (png_byte)(value >> 8); in png_do_unshift()
2603 *bp++ = (png_byte)(value & 0xff); in png_do_unshift()
2662 *dp++ = (png_byte)tmp; in png_do_scale_16_to_8()
2666 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_scale_16_to_8()
2694 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_chop()
2715 png_byte save; in png_do_read_swap_alpha()
2734 png_byte save[2]; in png_do_read_swap_alpha()
2761 png_byte save; in png_do_read_swap_alpha()
2778 png_byte save[2]; in png_do_read_swap_alpha()
2816 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2839 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2840 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2868 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2883 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2884 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2908 png_byte hi_filler = (png_byte)((filler>>8) & 0xff); in png_do_read_filler()
2910 png_byte lo_filler = (png_byte)(filler & 0xff); in png_do_read_filler()
3164 row_info->channels = (png_byte)(row_info->channels + 2); in png_do_gray_to_rgb()
3166 row_info->pixel_depth = (png_byte)(row_info->channels * in png_do_gray_to_rgb()
3260 png_byte red = *(sp++); in png_do_rgb_to_gray()
3261 png_byte green = *(sp++); in png_do_rgb_to_gray()
3262 png_byte blue = *(sp++); in png_do_rgb_to_gray()
3299 png_byte red = *(sp++); in png_do_rgb_to_gray()
3300 png_byte green = *(sp++); in png_do_rgb_to_gray()
3301 png_byte blue = *(sp++); in png_do_rgb_to_gray()
3309 *(dp++) = (png_byte)((rc*red + gc*green + bc*blue)>>15); in png_do_rgb_to_gray()
3364 *(dp++) = (png_byte)((w>>8) & 0xff); in png_do_rgb_to_gray()
3365 *(dp++) = (png_byte)(w & 0xff); in png_do_rgb_to_gray()
3398 *(dp++) = (png_byte)((gray16>>8) & 0xff); in png_do_rgb_to_gray()
3399 *(dp++) = (png_byte)(gray16 & 0xff); in png_do_rgb_to_gray()
3410 row_info->channels = (png_byte)(row_info->channels - 2); in png_do_rgb_to_gray()
3411 row_info->color_type = (png_byte)(row_info->color_type & in png_do_rgb_to_gray()
3413 row_info->pixel_depth = (png_byte)(row_info->channels * in png_do_rgb_to_gray()
3471 palette[i].red = (png_byte)v; in png_build_grayscale_palette()
3472 palette[i].green = (png_byte)v; in png_build_grayscale_palette()
3473 palette[i].blue = (png_byte)v; in png_build_grayscale_palette()
3523 *sp &= (png_byte)((0x7f7f >> (7 - shift)) & 0xff); in png_do_compose()
3524 *sp |= (png_byte)(png_ptr->background.gray << shift); in png_do_compose()
3551 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff); in png_do_compose()
3552 *sp |= (png_byte)(png_ptr->background.gray << shift); in png_do_compose()
3557 png_byte p = (png_byte)((*sp >> shift) & 0x03); in png_do_compose()
3558 png_byte g = (png_byte)((gamma_table [p | (p << 2) | in png_do_compose()
3560 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff); in png_do_compose()
3561 *sp |= (png_byte)(g << shift); in png_do_compose()
3585 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff); in png_do_compose()
3586 *sp |= (png_byte)(png_ptr->background.gray << shift); in png_do_compose()
3614 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff); in png_do_compose()
3615 *sp |= (png_byte)(png_ptr->background.gray << shift); in png_do_compose()
3620 png_byte p = (png_byte)((*sp >> shift) & 0x0f); in png_do_compose()
3621 png_byte g = (png_byte)((gamma_table[p | in png_do_compose()
3623 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff); in png_do_compose()
3624 *sp |= (png_byte)(g << shift); in png_do_compose()
3648 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff); in png_do_compose()
3649 *sp |= (png_byte)(png_ptr->background.gray << shift); in png_do_compose()
3674 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3687 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3708 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3710 *(sp + 1) = (png_byte)(png_ptr->background.gray in png_do_compose()
3717 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3718 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3734 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3736 *(sp + 1) = (png_byte)(png_ptr->background.gray in png_do_compose()
3764 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3765 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
3766 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
3787 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3788 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
3789 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
3815 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3816 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3817 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
3819 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
3821 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
3823 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
3829 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3830 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3833 *(sp + 2) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3834 *(sp + 3) = (png_byte)(v & 0xff); in png_do_compose()
3837 *(sp + 4) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3838 *(sp + 5) = (png_byte)(v & 0xff); in png_do_compose()
3861 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3862 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3863 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
3865 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
3867 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
3869 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
3896 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3901 png_byte v, w; in png_do_compose()
3917 png_byte a = *(sp + 1); in png_do_compose()
3920 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3944 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3945 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3951 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3953 *(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff); in png_do_compose()
3966 *sp = (png_byte)((w >> 8) & 0xff); in png_do_compose()
3967 *(sp + 1) = (png_byte)(w & 0xff); in png_do_compose()
3982 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3984 *(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff); in png_do_compose()
3993 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3994 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
4013 png_byte a = *(sp + 3); in png_do_compose()
4025 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
4026 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
4027 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
4032 png_byte v, w; in png_do_compose()
4057 png_byte a = *(sp + 3); in png_do_compose()
4061 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
4062 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
4063 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
4096 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
4097 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
4100 *(sp + 2) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
4101 *(sp + 3) = (png_byte)(v & 0xff); in png_do_compose()
4104 *(sp + 4) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
4105 *(sp + 5) = (png_byte)(v & 0xff); in png_do_compose()
4111 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
4112 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
4113 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
4115 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
4117 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
4119 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
4131 *sp = (png_byte)((w >> 8) & 0xff); in png_do_compose()
4132 *(sp + 1) = (png_byte)(w & 0xff); in png_do_compose()
4140 *(sp + 2) = (png_byte)((w >> 8) & 0xff); in png_do_compose()
4141 *(sp + 3) = (png_byte)(w & 0xff); in png_do_compose()
4149 *(sp + 4) = (png_byte)((w >> 8) & 0xff); in png_do_compose()
4150 *(sp + 5) = (png_byte)(w & 0xff); in png_do_compose()
4166 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
4167 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
4168 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
4170 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
4172 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
4174 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
4188 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
4189 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
4192 *(sp + 2) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
4193 *(sp + 3) = (png_byte)(v & 0xff); in png_do_compose()
4196 *(sp + 4) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
4197 *(sp + 5) = (png_byte)(v & 0xff); in png_do_compose()
4261 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4262 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4266 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4267 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4271 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4272 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4305 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4306 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4310 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4311 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4315 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4316 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4341 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4342 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4361 *sp = (png_byte)( in png_do_gamma()
4378 *sp = (png_byte)((((int)gamma_table[msb | (msb >> 4)]) & 0xf0) in png_do_gamma()
4400 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4401 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4466 *row = (png_byte)((v >> 8) & 0xff); in png_do_encode_alpha()
4467 *(row + 1) = (png_byte)(v & 0xff); in png_do_encode_alpha()
4538 *dp = (png_byte)value; in png_do_expand_palette()
4561 *dp = (png_byte)value; in png_do_expand_palette()
4696 *dp = (png_byte)(value | (value << 2) | (value << 4) | in png_do_expand()
4721 *dp = (png_byte)(value | (value << 4)); in png_do_expand()
4767 png_byte gray_high = (png_byte)((gray >> 8) & 0xff); in png_do_expand()
4768 png_byte gray_low = (png_byte)(gray & 0xff); in png_do_expand()
4792 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 1); in png_do_expand()
4801 png_byte red = (png_byte)(trans_color->red & 0xff); in png_do_expand()
4802 png_byte green = (png_byte)(trans_color->green & 0xff); in png_do_expand()
4803 png_byte blue = (png_byte)(trans_color->blue & 0xff); in png_do_expand()
4821 png_byte red_high = (png_byte)((trans_color->red >> 8) & 0xff); in png_do_expand()
4822 png_byte green_high = (png_byte)((trans_color->green >> 8) & 0xff); in png_do_expand()
4823 png_byte blue_high = (png_byte)((trans_color->blue >> 8) & 0xff); in png_do_expand()
4824 png_byte red_low = (png_byte)(trans_color->red & 0xff); in png_do_expand()
4825 png_byte green_low = (png_byte)(trans_color->green & 0xff); in png_do_expand()
4826 png_byte blue_low = (png_byte)(trans_color->blue & 0xff); in png_do_expand()
4858 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 2); in png_do_expand()
4884 png_byte *sp = row + row_info->rowbytes; /* source, last byte + 1 */ in png_do_expand_16()
4885 png_byte *dp = sp + row_info->rowbytes; /* destination, end + 1 */ in png_do_expand_16()
4891 row_info->pixel_depth = (png_byte)(row_info->channels * 16); in png_do_expand_16()
5020 *(rp) = (png_byte)((256 + *rp + *(rp + 1)) & 0xff); in png_do_read_intrapixel()
5021 *(rp+2) = (png_byte)((256 + *(rp + 2) + *(rp + 1)) & 0xff); in png_do_read_intrapixel()
5045 *(rp ) = (png_byte)((red >> 8) & 0xff); in png_do_read_intrapixel()
5046 *(rp + 1) = (png_byte)(red & 0xff); in png_do_read_intrapixel()
5047 *(rp + 4) = (png_byte)((blue >> 8) & 0xff); in png_do_read_intrapixel()
5048 *(rp + 5) = (png_byte)(blue & 0xff); in png_do_read_intrapixel()