Lines Matching refs:png_byte
147 png_ptr->background_gamma_type = (png_byte)(background_gamma_code);
410 png_byte left;
411 png_byte right;
433 (png_alloc_size_t)((png_uint_32)num_palette * (sizeof (png_byte))));
435 png_ptr->quantize_index[i] = (png_byte)i;
450 (png_alloc_size_t)((png_uint_32)num_palette * (sizeof (png_byte))));
454 png_ptr->quantize_sort[i] = (png_byte)i;
474 png_byte t;
529 png_ptr->quantize_index[j] = (png_byte)i;
530 png_ptr->quantize_index[i] = (png_byte)j;
557 png_ptr->quantize_index[i] = (png_byte)min_k;
585 (sizeof (png_byte))));
588 (sizeof (png_byte))));
593 png_ptr->index_to_palette[i] = (png_byte)i;
594 png_ptr->palette_to_index[i] = (png_byte)i;
634 t->left = (png_byte)i;
635 t->right = (png_byte)j;
698 (png_byte)num_new_palette;
701 (png_byte)j;
753 (png_alloc_size_t)(num_entries * (sizeof (png_byte))));
756 (sizeof (png_byte))));
758 memset(distance, 0xff, num_entries * (sizeof (png_byte)));
792 distance[d_index] = (png_byte)d;
793 png_ptr->palette_lookup[d_index] = (png_byte)i;
1184 png_ptr->trans_alpha[i] = (png_byte)(255 -
1652 back.red = (png_byte)png_ptr->background.red;
1653 back.green = (png_byte)png_ptr->background.green;
1654 back.blue = (png_byte)png_ptr->background.blue;
1669 back_1.red = (png_byte)png_ptr->background.red;
1670 back_1.green = (png_byte)png_ptr->background.green;
1671 back_1.blue = (png_byte)png_ptr->background.blue;
1686 png_byte v, w;
1848 back.red = (png_byte)png_ptr->background.red;
1849 back.green = (png_byte)png_ptr->background.green;
1850 back.blue = (png_byte)png_ptr->background.blue;
1898 png_ptr->palette[i].red = (png_byte)component;
1908 png_ptr->palette[i].green = (png_byte)component;
1918 png_ptr->palette[i].blue = (png_byte)component;
2031 info_ptr->color_type = (png_byte)(info_ptr->color_type |
2037 info_ptr->color_type = (png_byte)(info_ptr->color_type &
2080 info_ptr->color_type = (png_byte)(info_ptr->color_type &
2114 info_ptr->pixel_depth = (png_byte)(info_ptr->channels *
2159 *dp = (png_byte)((*sp >> shift) & 0x01);
2183 *dp = (png_byte)((*sp >> shift) & 0x03);
2206 *dp = (png_byte)((*sp >> shift) & 0x0f);
2226 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
2308 *bp++ = (png_byte)b;
2327 *bp++ = (png_byte)b;
2344 *bp++ = (png_byte)b;
2364 *bp++ = (png_byte)(value >> 8);
2365 *bp++ = (png_byte)value;
2424 *dp++ = (png_byte)tmp;
2428 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
2456 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
2477 png_byte save;
2496 png_byte save[2];
2523 png_byte save;
2540 png_byte save[2];
2578 *(--dp) = (png_byte)(255 - *(--sp));
2601 *(--dp) = (png_byte)(255 - *(--sp));
2602 *(--dp) = (png_byte)(255 - *(--sp));
2630 *(--dp) = (png_byte)(255 - *(--sp));
2645 *(--dp) = (png_byte)(255 - *(--sp));
2646 *(--dp) = (png_byte)(255 - *(--sp));
2670 png_byte hi_filler = (png_byte)(filler>>8);
2672 png_byte lo_filler = (png_byte)filler;
2926 row_info->channels = (png_byte)(row_info->channels + 2);
2928 row_info->pixel_depth = (png_byte)(row_info->channels *
3022 png_byte red = *(sp++);
3023 png_byte green = *(sp++);
3024 png_byte blue = *(sp++);
3061 png_byte red = *(sp++);
3062 png_byte green = *(sp++);
3063 png_byte blue = *(sp++);
3071 *(dp++) = (png_byte)((rc*red + gc*green + bc*blue)>>15);
3095 png_byte hi,lo;
3127 *(dp++) = (png_byte)((w>>8) & 0xff);
3128 *(dp++) = (png_byte)(w & 0xff);
3147 png_byte hi,lo;
3162 *(dp++) = (png_byte)((gray16 >> 8) & 0xff);
3163 *(dp++) = (png_byte)(gray16 & 0xff);
3174 row_info->channels = (png_byte)(row_info->channels - 2);
3175 row_info->color_type = (png_byte)(row_info->color_type &
3177 row_info->pixel_depth = (png_byte)(row_info->channels *
3231 *sp = (png_byte)(tmp & 0xff);
3261 *sp = (png_byte)(tmp & 0xff);
3271 *sp = (png_byte)(tmp & 0xff);
3298 *sp = (png_byte)(tmp & 0xff);
3329 *sp = (png_byte)(tmp & 0xff);
3339 *sp = (png_byte)(tmp & 0xff);
3366 *sp = (png_byte)(tmp & 0xff);
3391 *sp = (png_byte)png_ptr->background.gray;
3404 *sp = (png_byte)png_ptr->background.gray;
3425 *sp = (png_byte)((png_ptr->background.gray >> 8)
3427 *(sp + 1) = (png_byte)(png_ptr->background.gray
3434 *sp = (png_byte)((v >> 8) & 0xff);
3435 *(sp + 1) = (png_byte)(v & 0xff);
3451 *sp = (png_byte)((png_ptr->background.gray >> 8)
3453 *(sp + 1) = (png_byte)(png_ptr->background.gray
3481 *sp = (png_byte)png_ptr->background.red;
3482 *(sp + 1) = (png_byte)png_ptr->background.green;
3483 *(sp + 2) = (png_byte)png_ptr->background.blue;
3504 *sp = (png_byte)png_ptr->background.red;
3505 *(sp + 1) = (png_byte)png_ptr->background.green;
3506 *(sp + 2) = (png_byte)png_ptr->background.blue;
3532 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff);
3533 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff);
3534 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8)
3536 *(sp + 3) = (png_byte)(png_ptr->background.green
3538 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8)
3540 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff);
3546 *sp = (png_byte)((v >> 8) & 0xff);
3547 *(sp + 1) = (png_byte)(v & 0xff);
3550 *(sp + 2) = (png_byte)((v >> 8) & 0xff);
3551 *(sp + 3) = (png_byte)(v & 0xff);
3554 *(sp + 4) = (png_byte)((v >> 8) & 0xff);
3555 *(sp + 5) = (png_byte)(v & 0xff);
3578 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff);
3579 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff);
3580 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8)
3582 *(sp + 3) = (png_byte)(png_ptr->background.green
3584 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8)
3586 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff);
3613 *sp = (png_byte)png_ptr->background.gray;
3618 png_byte v, w;
3634 png_byte a = *(sp + 1);
3637 *sp = (png_byte)png_ptr->background.gray;
3661 *sp = (png_byte)((v >> 8) & 0xff);
3662 *(sp + 1) = (png_byte)(v & 0xff);
3668 *sp = (png_byte)((png_ptr->background.gray >> 8)
3670 *(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff);
3684 *sp = (png_byte)((w >> 8) & 0xff);
3685 *(sp + 1) = (png_byte)(w & 0xff);
3700 *sp = (png_byte)((png_ptr->background.gray >> 8)
3702 *(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff);
3711 *sp = (png_byte)((v >> 8) & 0xff);
3712 *(sp + 1) = (png_byte)(v & 0xff);
3731 png_byte a = *(sp + 3);
3743 *sp = (png_byte)png_ptr->background.red;
3744 *(sp + 1) = (png_byte)png_ptr->background.green;
3745 *(sp + 2) = (png_byte)png_ptr->background.blue;
3750 png_byte v, w;
3775 png_byte a = *(sp + 3);
3779 *sp = (png_byte)png_ptr->background.red;
3780 *(sp + 1) = (png_byte)png_ptr->background.green;
3781 *(sp + 2) = (png_byte)png_ptr->background.blue;
3814 *sp = (png_byte)((v >> 8) & 0xff);
3815 *(sp + 1) = (png_byte)(v & 0xff);
3818 *(sp + 2) = (png_byte)((v >> 8) & 0xff);
3819 *(sp + 3) = (png_byte)(v & 0xff);
3822 *(sp + 4) = (png_byte)((v >> 8) & 0xff);
3823 *(sp + 5) = (png_byte)(v & 0xff);
3829 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff);
3830 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff);
3831 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8)
3833 *(sp + 3) = (png_byte)(png_ptr->background.green
3835 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8)
3837 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff);
3849 *sp = (png_byte)((w >> 8) & 0xff);
3850 *(sp + 1) = (png_byte)(w & 0xff);
3858 *(sp + 2) = (png_byte)((w >> 8) & 0xff);
3859 *(sp + 3) = (png_byte)(w & 0xff);
3867 *(sp + 4) = (png_byte)((w >> 8) & 0xff);
3868 *(sp + 5) = (png_byte)(w & 0xff);
3884 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff);
3885 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff);
3886 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8)
3888 *(sp + 3) = (png_byte)(png_ptr->background.green
3890 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8)
3892 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff);
3906 *sp = (png_byte)((v >> 8) & 0xff);
3907 *(sp + 1) = (png_byte)(v & 0xff);
3910 *(sp + 2) = (png_byte)((v >> 8) & 0xff);
3911 *(sp + 3) = (png_byte)(v & 0xff);
3914 *(sp + 4) = (png_byte)((v >> 8) & 0xff);
3915 *(sp + 5) = (png_byte)(v & 0xff);
3979 *sp = (png_byte)((v >> 8) & 0xff);
3980 *(sp + 1) = (png_byte)(v & 0xff);
3984 *sp = (png_byte)((v >> 8) & 0xff);
3985 *(sp + 1) = (png_byte)(v & 0xff);
3989 *sp = (png_byte)((v >> 8) & 0xff);
3990 *(sp + 1) = (png_byte)(v & 0xff);
4023 *sp = (png_byte)((v >> 8) & 0xff);
4024 *(sp + 1) = (png_byte)(v & 0xff);
4028 *sp = (png_byte)((v >> 8) & 0xff);
4029 *(sp + 1) = (png_byte)(v & 0xff);
4033 *sp = (png_byte)((v >> 8) & 0xff);
4034 *(sp + 1) = (png_byte)(v & 0xff);
4059 *sp = (png_byte)((v >> 8) & 0xff);
4060 *(sp + 1) = (png_byte)(v & 0xff);
4079 *sp = (png_byte)(
4096 *sp = (png_byte)((((int)gamma_table[msb | (msb >> 4)]) & 0xf0)
4118 *sp = (png_byte)((v >> 8) & 0xff);
4119 *(sp + 1) = (png_byte)(v & 0xff);
4184 *row = (png_byte)((v >> 8) & 0xff);
4185 *(row + 1) = (png_byte)(v & 0xff);
4256 *dp = (png_byte)value;
4279 *dp = (png_byte)value;
4414 *dp = (png_byte)(value | (value << 2) | (value << 4) |
4439 *dp = (png_byte)(value | (value << 4));
4511 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 1);
4521 png_byte red = (png_byte)(trans_color->red & 0xff);
4522 png_byte green = (png_byte)(trans_color->green & 0xff);
4523 png_byte blue = (png_byte)(trans_color->blue & 0xff);
4541 png_byte red_high = (png_byte)((trans_color->red >> 8) & 0xff);
4542 png_byte green_high = (png_byte)((trans_color->green >> 8) & 0xff);
4543 png_byte blue_high = (png_byte)((trans_color->blue >> 8) & 0xff);
4544 png_byte red_low = (png_byte)(trans_color->red & 0xff);
4545 png_byte green_low = (png_byte)(trans_color->green & 0xff);
4546 png_byte blue_low = (png_byte)(trans_color->blue & 0xff);
4578 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 2);
4604 png_byte *sp = row + row_info->rowbytes; /* source, last byte + 1 */
4605 png_byte *dp = sp + row_info->rowbytes; /* destination, end + 1 */
4613 row_info->pixel_depth = (png_byte)(row_info->channels * 16);
4989 /* png_byte color_type; color type of pixels */
4990 /* png_byte bit_depth; bit depth of samples */
4991 /* png_byte channels; number of channels (1-4) */
4992 /* png_byte pixel_depth; bits per pixel (depth*channels) */
5001 row_info->pixel_depth = (png_byte)(row_info->bit_depth *