Lines Matching full:inputstate
103 void LossyOptimizeTransparent(lodepng::State* inputstate, unsigned char* image,
153 if (palette && inputstate->info_png.color.palettesize > 0) {
155 if (count.size() < inputstate->info_png.color.palettesize) {
157 unsigned char* palette_in = inputstate->info_png.color.palette;
158 for (size_t i = 0; i < inputstate->info_png.color.palettesize; i++) {
166 inputstate->info_png.color.palettesize = palette_out.size() / 4;
178 const lodepng::State& inputstate, bool bit16,
192 if (inputstate.info_png.color.colortype == LCT_PALETTE) {
194 lodepng_color_mode_copy(&state.info_raw, &inputstate.info_png.color);
279 const lodepng::State& inputstate, bool bit16,
296 unsigned error = TryOptimize(image, w, h, inputstate, bit16, origfile,
364 lodepng::State inputstate;
365 error = lodepng::decode(image, w, h, inputstate, origpng);
375 if (inputstate.info_png.color.bitdepth == 16 && !png_options.lossy_8bit) {
385 LossyOptimizeTransparent(&inputstate, &image[0], w, h);
389 error = AutoChooseFilterStrategy(image, w, h, inputstate, bit16,
404 error = TryOptimize(image, w, h, inputstate, bit16, origpng,