Home | History | Annotate | Download | only in libpng-1.2.19

Lines Matching refs:png_byte

95    png_ptr->background_gamma_type = (png_byte)(background_gamma_code);
134 png_byte left;
135 png_byte right;
154 (png_uint_32)(num_palette * png_sizeof (png_byte)));
156 png_ptr->dither_index[i] = (png_byte)i;
170 (png_uint_32)(num_palette * png_sizeof (png_byte)));
174 png_ptr->dither_sort[i] = (png_byte)i;
193 png_byte t;
244 png_ptr->dither_index[j] = (png_byte)i;
245 png_ptr->dither_index[i] = (png_byte)j;
272 png_ptr->dither_index[i] = (png_byte)min_k;
299 (png_uint_32)(num_palette * png_sizeof (png_byte)));
301 (png_uint_32)(num_palette * png_sizeof (png_byte)));
306 png_ptr->index_to_palette[i] = (png_byte)i;
307 png_ptr->palette_to_index[i] = (png_byte)i;
348 t->left = (png_byte)i;
349 t->right = (png_byte)j;
409 png_ptr->index_to_palette[j] = (png_byte)num_new_palette;
410 png_ptr->palette_to_index[num_new_palette] = (png_byte)j;
462 (png_uint_32)(num_entries * png_sizeof (png_byte)));
465 png_sizeof (png_byte));
468 png_sizeof(png_byte)));
470 png_memset(distance, 0xff, num_entries * png_sizeof(png_byte));
503 distance[d_index] = (png_byte)d;
504 png_ptr->palette_lookup[d_index] = (png_byte)i;
834 png_ptr->trans[i] = (png_byte)(255 - png_ptr->trans[i]);
914 back.red = (png_byte)png_ptr->background.red;
915 back.green = (png_byte)png_ptr->background.green;
916 back.blue = (png_byte)png_ptr->background.blue;
920 back.red = (png_byte)(pow(
922 back.green = (png_byte)(pow(
924 png_byte)(pow(
928 back_1.red = (png_byte)(pow(
930 back_1.green = (png_byte)(pow(
932 back_1.blue = (png_byte)(pow(
945 png_byte v, w;
1057 back.red = (png_byte)png_ptr->background.red;
1058 back.green = (png_byte)png_ptr->background.green;
1059 back.blue = (png_byte)png_ptr->background.blue;
1243 info_ptr->pixel_depth = (png_byte)(info_ptr->channels *
1477 /* png_byte color_type; color type of pixels */
1478 /* png_byte bit_depth; bit depth of samples */
1479 /* png_byte channels; number of channels (1-4) */
1480 /* png_byte pixel_depth; bits per pixel (depth*channels) */
1488 png_ptr->row_info.pixel_depth = (png_byte)(png_ptr->row_info.bit_depth *
1526 *dp = (png_byte)((*sp >> shift) & 0x01);
1547 *dp = (png_byte)((*sp >> shift) & 0x03);
1567 *dp = (png_byte)((*sp >> shift) & 0x0f);
1582 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
1656 png_byte mask = (png_byte)((((int)0xf0 >> shift[0]) & (int)0xf0) |
1657 (png_byte)((int)0xf >> shift[0]));
1688 *bp++ = (png_byte)(value >> 8);
1689 *bp++ = (png_byte)(value & 0xff);
1747 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
1770 png_byte save;
1787 png_byte save[2];
1812 png_byte save;
1827 png_byte save[2];
1866 *(--dp) = (png_byte)(255 - *(--sp));
1887 *(--dp) = (png_byte)(255 - *(--sp));
1888 *(--dp) = (png_byte)(255 - *(--sp));
1915 *(--dp) = (png_byte)(255 - *(--sp));
1928 *(--dp) = (png_byte)(255 - *(--sp));
1929 *(--dp) = (png_byte)(255 - *(--sp));
1952 png_byte hi_filler = (png_byte)((filler>>8) & 0xff);
1953 png_byte lo_filler = (png_byte)(filler & 0xff);
2193 row_info->channels += (png_byte)2;
2195 row_info->pixel_depth = (png_byte)(row_info->channels *
2254 png_byte red = png_ptr->gamma_to_1[*(sp++)];
2255 png_byte green = png_ptr->gamma_to_1[*(sp++)];
2256 png_byte blue = png_ptr->gamma_to_1[*(sp++)];
2274 png_byte red = *(sp++);
2275 png_byte green = *(sp++);
2276 png_byte blue = *(sp++);
2280 *(dp++) = (png_byte)((rc*red+gc*green+bc*blue)>>15);
2321 *(dp++) = (png_byte)((w>>8) & 0xff);
2322 *(dp++) = (png_byte)(w & 0xff);
2341 *(dp++) = (png_byte)((gray16>>8) & 0xff);
2342 *(dp++) = (png_byte)(gray16 & 0xff);
2358 png_byte red = png_ptr->gamma_to_1[*(sp++)];
2359 png_byte green = png_ptr->gamma_to_1[*(sp++)];
2360 png_byte blue = png_ptr->gamma_to_1[*(sp++)];
2375 png_byte red = *(sp++);
2376 png_byte green = *(sp++);
2377 png_byte blue = *(sp++);
2380 *(dp++) = (png_byte)((rc*red + gc*green + bc*blue)>>15);
2418 *(dp++) = (png_byte)((w>>8) & 0xff);
2419 *(dp++) = (png_byte)(w & 0xff);
2438 *(dp++) = (png_byte)((gray16>>8) & 0xff);
2439 *(dp++) = (png_byte)(gray16 & 0xff);
2446 row_info->channels -= (png_byte)2;
2448 row_info->pixel_depth = (png_byte)(row_info->channels *
2499 palette[i].red = (png_byte)v;
2500 palette[i].green = (png_byte)v;
2501 palette[i].blue = (png_byte)v;
2544 (png_byte)(pow((double)png_ptr->background.red/255, g) *
2547 (png_byte)(pow((double)png_ptr->background.green/255, g) *
2550 (png_byte)(pow((double)png_ptr->background.blue/255, g) *
2557 (png_byte)(pow((double)png_ptr->background.red/255, g) *
2560 (png_byte)(pow((double)png_ptr->background.green/255, g) *
2563 (png_byte)(pow((double)png_ptr->background.blue/255, g) *
2579 png_byte v, w;
2607 if (palette[i].red == (png_byte)png_ptr->trans_values.gray)
2645 back.red = (png_byte)png_ptr->background.red;
2646 back.green = (png_byte)png_ptr->background.green;
2647 back.blue = (png_byte)png_ptr->background.blue;
2674 if (i == (png_byte)png_ptr->trans_values.gray)
2676 palette[i].red = (png_byte)png_ptr->background.red;
2677 palette[i].green = (png_byte)png_ptr->background.green;
2678 palette[i].blue = (png_byte)png_ptr->background.blue;
2731 *sp &= (png_byte)((0x7f7f >> (7 - shift)) & 0xff);
2732 *sp |= (png_byte)(background->gray << shift);
2756 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff);
2757 *sp |= (png_byte)(background->gray << shift);
2761 png_byte p = (png_byte)((*sp >> shift) & 0x03);
2762 png_byte g = (png_byte)((gamma_table [p | (p << 2) |
2764 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff);
2765 *sp |= (png_byte)(g << shift);
2786 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff);
2787 *sp |= (png_byte)(background->gray << shift);
2812 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff);
2813 *sp |= (png_byte)(background->gray << shift);
2817 png_byte p = (png_byte)((*sp >> shift) & 0x0f);
2818 png_byte g = (png_byte)((gamma_table[p |
2820 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff);
2821 *sp |= (png_byte)(g << shift);
2842 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff);
2843 *sp |= (png_byte)(background->gray << shift);
2866 *sp = (png_byte)background->gray;
2882 *sp = (png_byte)background->gray;
2902 *sp = (png_byte)((background->gray >> 8) & 0xff);
2903 *(sp + 1) = (png_byte)(background->gray & 0xff);
2908 *sp = (png_byte)((v >> 8) & 0xff);
2909 *(sp + 1) = (png_byte)(v & 0xff);
2924 *sp = (png_byte)((background->gray >> 8) & 0xff);
2925 *(sp + 1) = (png_byte)(background->gray & 0xff);
2948 *sp = (png_byte)background->red;
2949 *(sp + 1) = (png_byte)background->green;
2950 *(sp + 2) = (png_byte)background->blue;
2970 *sp = (png_byte)background->red;
2971 *(sp + 1) = (png_byte)background->green;
2972 *(sp + 2) = (png_byte)background->blue;
2992 *sp = (png_byte)((background->red >> 8) & 0xff);
2993 *(sp + 1) = (png_byte)(background->red & 0xff);
2994 *(sp + 2) = (png_byte)((background->green >> 8) & 0xff);
2995 *(sp + 3) = (png_byte)(background->green & 0xff);
2996 *(sp + 4) = (png_byte)((background->blue >> 8) & 0xff);
2997 *(sp + 5) = (png_byte)(background->blue & 0xff);
3002 *sp = (png_byte)((v >> 8) & 0xff);
3003 *(sp + 1) = (png_byte)(v & 0xff);
3005 *(sp + 2) = (png_byte)((v >> 8) & 0xff);
3006 *(sp + 3) = (png_byte)(v & 0xff);
3008 *(sp + 4) = (png_byte)((v >> 8) & 0xff);
3009 *(sp + 5) = (png_byte)(v & 0xff);
3026 *sp = (png_byte)((background->red >> 8) & 0xff);
3027 *(sp + 1) = (png_byte)(background->red & 0xff);
3028 *(sp + 2) = (png_byte)((background->green >> 8) & 0xff);
3029 *(sp + 3) = (png_byte)(background->green & 0xff);
3030 *(sp + 4) = (png_byte)((background->blue >> 8) & 0xff);
3031 *(sp + 5) = (png_byte)(background->blue & 0xff);
3059 *dp = (png_byte)background->gray;
3063 png_byte v, w;
3078 png_byte a = *(sp + 1);
3087 *dp = (png_byte)background->gray;
3094 *dp = (png_byte)background->gray;
3116 *dp = (png_byte)((v >> 8) & 0xff);
3117 *(dp + 1) = (png_byte)(v & 0xff);
3126 *dp = (png_byte)((background->gray >> 8) & 0xff);
3127 *(dp + 1) = (png_byte)(background->gray & 0xff);
3137 *dp = (png_byte)((w >> 8) & 0xff);
3138 *(dp + 1) = (png_byte)(w & 0xff);
3161 *dp = (png_byte)((background->gray >> 8) & 0xff);
3162 *(dp + 1) = (png_byte)(background->gray & 0xff);
3171 *dp = (png_byte)((v >> 8) & 0xff);
3172 *(dp + 1) = (png_byte)(v & 0xff);
3192 png_byte a = *(sp + 3);
3203 *dp = (png_byte)background->red;
3204 *(dp + 1) = (png_byte)background->green;
3205 *(dp + 2) = (png_byte)background->blue;
3209 png_byte v, w;
3230 png_byte a = *(sp + 3);
3240 *dp = (png_byte)background->red;
3241 *(dp + 1) = (png_byte)background->green;
3242 *(dp + 2) = (png_byte)background->blue;
3272 *dp = (png_byte)((v >> 8) & 0xff);
3273 *(dp + 1) = (png_byte)(v & 0xff);
3275 *(dp + 2) = (png_byte)((v >> 8) & 0xff);
3276 *(dp + 3) = (png_byte)(v & 0xff);
3278 *(dp + 4) = (png_byte)((v >> 8) & 0xff);
3279 *(dp + 5) = (png_byte)(v & 0xff);
3284 *dp = (png_byte)((background->red >> 8) & 0xff);
3285 *(dp + 1) = (png_byte)(background->red & 0xff);
3286 *(dp + 2) = (png_byte)((background->green >> 8) & 0xff);
3287 *(dp + 3) = (png_byte)(background->green & 0xff);
3288 *(dp + 4) = (png_byte)((background->blue >> 8) & 0xff);
3289 *(dp + 5) = (png_byte)(background->blue & 0xff);
3298 *dp = (png_byte)((x >> 8) & 0xff);
3299 *(dp + 1) = (png_byte
3303 *(dp + 2) = (png_byte)((x >> 8) & 0xff);
3304 *(dp + 3) = (png_byte)(x & 0xff);
3308 *(dp + 4) = (png_byte)((x >> 8) & 0xff);
3309 *(dp + 5) = (png_byte)(x & 0xff);
3328 *dp = (png_byte)((background->red >> 8) & 0xff);
3329 *(dp + 1) = (png_byte)(background->red & 0xff);
3330 *(dp + 2) = (png_byte)((background->green >> 8) & 0xff);
3331 *(dp + 3) = (png_byte)(background->green & 0xff);
3332 *(dp + 4) = (png_byte)((background->blue >> 8) & 0xff);
3333 *(dp + 5) = (png_byte)(background->blue & 0xff);
3346 *dp = (png_byte)((v >> 8) & 0xff);
3347 *(dp + 1) = (png_byte)(v & 0xff);
3349 *(dp + 2) = (png_byte)((v >> 8) & 0xff);
3350 *(dp + 3) = (png_byte)(v & 0xff);
3352 *(dp + 4) = (png_byte)((v >> 8) & 0xff);
3353 *(dp + 5) = (png_byte)(v & 0xff);
3366 row_info->pixel_depth = (png_byte)(row_info->channels *
3423 *sp = (png_byte)((v >> 8) & 0xff);
3424 *(sp + 1) = (png_byte)(v & 0xff);
3427 *sp = (png_byte)((v >> 8) & 0xff);
3428 *(sp + 1) = (png_byte)(v & 0xff);
3431 *sp = (png_byte)((v >> 8) & 0xff);
3432 *(sp + 1) = (png_byte)(v & 0xff);
3460 *sp = (png_byte)((v >> 8) & 0xff);
3461 *(sp + 1) = (png_byte)(v & 0xff);
3464 *sp = (png_byte)((v >> 8) & 0xff);
3465 *(sp + 1) = (png_byte)(v & 0xff);
3468 *sp = (png_byte)((v >> 8) & 0xff);
3469 *(sp + 1) = (png_byte)(v & 0xff);
3492 *sp = (png_byte)((v >> 8) & 0xff);
3493 *(sp + 1) = (png_byte)(v & 0xff);
3511 *sp = (png_byte)(
3527 *sp = (png_byte)((((int)gamma_table[msb | (msb >> 4)]) & 0xf0)
3547 *sp = (png_byte)((v >> 8) & 0xff);
3548 *(sp + 1) = (png_byte)(v & 0xff);
3614 *dp = (png_byte)value;
3635 *dp = (png_byte)value;
3761 *dp = (png_byte)(value | (value << 2) | (value << 4) |
3784 *dp = (png_byte)(value | (value << 4));
3821 png_byte gray_high = (gray >> 8) & 0xff;
3822 png_byte gray_low = gray & 0xff;
3843 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 1);
3852 png_byte red = trans_value->red & 0xff;
3853 png_byte green = trans_value->green & 0xff;
3854 png_byte blue = trans_value->blue & 0xff;
3870 png_byte red_high = (trans_value->red > 8) & 0xff;
3871 png_byte green_high = (trans_value->green > 8) & 0xff;
3872 png_byte blue_high = (trans_value->blue > 8) & 0xff;
3873 png_byte red_low = trans_value->red & 0xff;
3874 png_byte green_low = trans_value->green & 0xff;
3875 png_byte blue_low = trans_value->blue & 0xff;
3905 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 2);
4033 png_ptr->gamma_table[i] = (png_byte)(pow((double)i / 255.0,
4049 png_ptr->gamma_to_1[i] = (png_byte)(pow((double)i / 255.0,
4064 png_ptr->gamma_from_1[i] = (png_byte)(pow((double)i / 255.0,
4107 png_ptr->gamma_shift = (png_byte)shift;
4252 *(rp) = (png_byte)((256 + *rp + *(rp+1))&0xff);
4253 *(rp+2) = (png_byte)((256 + *(rp+2) + *(rp+1))&0xff);
4275 *(rp ) = (png_byte)((red >> 8) & 0xff);
4276 *(rp+1) = (png_byte)(red & 0xff);
4277 *(rp+4) = (png_byte)((blue >> 8) & 0xff);
4278 *(rp+5) = (png_byte)(blue & 0xff);