Lines Matching refs:numpixels
3290 size_t numpixels, total; in lodepng_pixel_overflow() local
3293 if(lodepng_mulofl((size_t)w, (size_t)h, &numpixels)) return 1; in lodepng_pixel_overflow()
3294 …if(lodepng_mulofl(numpixels, 8, &total)) return 1; /* bit pointer with 8-bit color, or 8 bytes per… in lodepng_pixel_overflow()
3846 static void getPixelColorsRGBA8(unsigned char * LODEPNG_RESTRICT buffer, size_t numpixels, in getPixelColorsRGBA8() argument
3854 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3859 buffer -= numpixels * num_channels; in getPixelColorsRGBA8()
3860 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3866 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3874 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3883 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3888 buffer -= numpixels * num_channels; in getPixelColorsRGBA8()
3889 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3895 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3908 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3916 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3925 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3931 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3939 lodepng_memcpy(buffer, in, numpixels * 4); in getPixelColorsRGBA8()
3942 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3953 static void getPixelColorsRGB8(unsigned char * LODEPNG_RESTRICT buffer, size_t numpixels, in getPixelColorsRGB8() argument
3961 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
3966 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
3973 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
3981 lodepng_memcpy(buffer, in, numpixels * 3); in getPixelColorsRGB8()
3984 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
3993 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
4001 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
4010 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
4015 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
4022 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
4027 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
4074 size_t numpixels = (size_t)w * (size_t)h; in lodepng_convert() local
4117 for(i = 0; i != numpixels; ++i) { in lodepng_convert()
4124 getPixelColorsRGBA8(out, numpixels, in, mode_in); in lodepng_convert()
4127 getPixelColorsRGB8(out, numpixels, in, mode_in); in lodepng_convert()
4131 for(i = 0; i != numpixels; ++i) { in lodepng_convert()
4221 stats->numpixels = 0; in lodepng_color_stats_init()
4255 size_t numpixels = (size_t)w * (size_t)h; in lodepng_compute_color_stats() local
4268 stats->numpixels += numpixels; in lodepng_compute_color_stats()
4294 for(i = 0; i != numpixels; ++i) { in lodepng_compute_color_stats()
4310 for(i = 0; i != numpixels; ++i) { in lodepng_compute_color_stats()
4342 for(i = 0; i != numpixels; ++i) { in lodepng_compute_color_stats()
4355 for(i = 0; i != numpixels; ++i) { in lodepng_compute_color_stats()
4415 for(i = 0; i != numpixels; ++i) { in lodepng_compute_color_stats()
4479 size_t numpixels = stats->numpixels; in auto_choose_color() local
4488 if(key && numpixels <= 16) { in auto_choose_color()
4501 …if(numpixels < n * 2) palette_ok = 0; /*don't add palette overhead if image has only a few pixels*/ in auto_choose_color()