Lines Matching refs:numpixels
2830 size_t numpixels, total; in lodepng_pixel_overflow() local
2833 if(lodepng_mulofl((size_t)w, (size_t)h, &numpixels)) return 1; in lodepng_pixel_overflow()
2834 …if(lodepng_mulofl(numpixels, 8, &total)) return 1; /* bit pointer with 8-bit color, or 8 bytes per… in lodepng_pixel_overflow()
3331 static void getPixelColorsRGBA8(unsigned char* LODEPNG_RESTRICT buffer, size_t numpixels, in getPixelColorsRGBA8() argument
3338 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3343 buffer -= numpixels * num_channels; in getPixelColorsRGBA8()
3344 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3349 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3356 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3364 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3369 buffer -= numpixels * num_channels; in getPixelColorsRGBA8()
3370 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3375 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3387 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3394 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3402 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3407 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3414 lodepng_memcpy(buffer, in, numpixels * 4); in getPixelColorsRGBA8()
3416 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGBA8()
3427 static void getPixelColorsRGB8(unsigned char* LODEPNG_RESTRICT buffer, size_t numpixels, in getPixelColorsRGB8() argument
3434 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
3438 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
3444 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
3451 lodepng_memcpy(buffer, in, numpixels * 3); in getPixelColorsRGB8()
3453 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
3461 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
3468 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
3476 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
3480 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
3486 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
3490 for(i = 0; i != numpixels; ++i, buffer += num_channels) { in getPixelColorsRGB8()
3532 size_t numpixels = (size_t)w * (size_t)h; in lodepng_convert() local
3575 for(i = 0; i != numpixels; ++i) { in lodepng_convert()
3581 getPixelColorsRGBA8(out, numpixels, in, mode_in); in lodepng_convert()
3583 getPixelColorsRGB8(out, numpixels, in, mode_in); in lodepng_convert()
3586 for(i = 0; i != numpixels; ++i) { in lodepng_convert()
3668 stats->numpixels = 0; in lodepng_color_stats_init()
3700 size_t numpixels = (size_t)w * (size_t)h; in lodepng_compute_color_stats() local
3713 stats->numpixels += numpixels; in lodepng_compute_color_stats()
3739 for(i = 0; i != numpixels; ++i) { in lodepng_compute_color_stats()
3755 for(i = 0; i != numpixels; ++i) { in lodepng_compute_color_stats()
3785 for(i = 0; i != numpixels; ++i) { in lodepng_compute_color_stats()
3797 for(i = 0; i != numpixels; ++i) { in lodepng_compute_color_stats()
3855 for(i = 0; i != numpixels; ++i) { in lodepng_compute_color_stats()
3911 size_t numpixels = stats->numpixels; in auto_choose_color() local
3920 if(key && numpixels <= 16) { in auto_choose_color()
3933 …if(numpixels < n * 2) palette_ok = 0; /*don't add palette overhead if image has only a few pixels*/ in auto_choose_color()