Lines Matching refs:mode_in
3394 LodePNGColorMode* mode_out, const LodePNGColorMode* mode_in, in lodepng_convert() argument
3402 if(lodepng_color_mode_equal(mode_out, mode_in)) in lodepng_convert()
3404 size_t numbytes = lodepng_get_raw_size(w, h, mode_in); in lodepng_convert()
3421 if(mode_in->bitdepth == 16 && mode_out->bitdepth == 16) in lodepng_convert()
3426 error = getPixelColorRGBA16(&r, &g, &b, &a, in, i, mode_in); in lodepng_convert()
3434 error = getPixelColorsRGBA8(out, numpixels, 1, in, mode_in, fix_png); in lodepng_convert()
3438 error = getPixelColorsRGBA8(out, numpixels, 0, in, mode_in, fix_png); in lodepng_convert()
3445 error = getPixelColorRGBA8(&r, &g, &b, &a, in, i, mode_in, fix_png); in lodepng_convert()
3759 const LodePNGColorMode* mode_in, in lodepng_auto_choose_color() argument
3772 color_profile_init(&profile, mode_in); in lodepng_auto_choose_color()
3780 error = get_color_profile(&profile, image, w * h, mode_in, 0 /*fix_png*/); in lodepng_auto_choose_color()
3857 if(mode_out->colortype == LCT_PALETTE && mode_in->palettesize == mode_out->palettesize) in lodepng_auto_choose_color()
3861 for(i = 0; i < mode_in->palettesize * 4; i++) in lodepng_auto_choose_color()
3863 mode_out->palette[i] = mode_in->palette[i]; in lodepng_auto_choose_color()