Home
last modified time | relevance | path

Searched refs:info_png (Results 1 – 4 of 4) sorted by relevance

/external/zopfli/src/zopflipng/
Dzopflipng_lib.cc153 if (palette && inputstate->info_png.color.palettesize > 0) { in LossyOptimizeTransparent()
155 if (count.size() < inputstate->info_png.color.palettesize) { in LossyOptimizeTransparent()
157 unsigned char* palette_in = inputstate->info_png.color.palette; in LossyOptimizeTransparent()
158 for (size_t i = 0; i < inputstate->info_png.color.palettesize; i++) { in LossyOptimizeTransparent()
166 inputstate->info_png.color.palettesize = palette_out.size() / 4; in LossyOptimizeTransparent()
192 if (inputstate.info_png.color.colortype == LCT_PALETTE) { in TryOptimize()
194 lodepng_color_mode_copy(&state.info_raw, &inputstate.info_png.color); in TryOptimize()
247 LodePNGColorMode& color = teststate.info_png.color; in TryOptimize()
259 if (grey) state.info_png.color.colortype = LCT_GREY_ALPHA; in TryOptimize()
375 if (inputstate.info_png.color.bitdepth == 16 && !png_options.lossy_8bit) { in ZopfliPNGOptimize()
/external/zopfli/src/zopflipng/lodepng/
Dlodepng.cpp3954 LodePNGInfo* info = &state->info_png; in lodepng_inspect()
4205 unsigned w, unsigned h, const LodePNGInfo* info_png) in postProcessScanlines() argument
4214 unsigned bpp = lodepng_get_bpp(&info_png->color); in postProcessScanlines()
4217 if(info_png->interlace_method == 0) in postProcessScanlines()
4627 state->error = readChunk_PLTE(&state->info_png.color, data, chunkLength); in decodeGeneric()
4636 state->error = readChunk_tRNS(&state->info_png.color, data, chunkLength); in decodeGeneric()
4643 state->error = readChunk_bKGD(&state->info_png, data, chunkLength); in decodeGeneric()
4651 state->error = readChunk_tEXt(&state->info_png, data, chunkLength); in decodeGeneric()
4660 … state->error = readChunk_zTXt(&state->info_png, &state->decoder.zlibsettings, data, chunkLength); in decodeGeneric()
4669 … state->error = readChunk_iTXt(&state->info_png, &state->decoder.zlibsettings, data, chunkLength); in decodeGeneric()
[all …]
Dlodepng_util.cpp37 return state.info_png; in getPNGHeaderInfo()
199 if(state.info_png.interlace_method == 0) in getFilterTypesInterlaced()
204 size_t linebytes = 1 + lodepng_get_raw_size(w, 1, &state.info_png.color); in getFilterTypesInterlaced()
225 size_t linebytes = 1 + lodepng_get_raw_size(w2, 1, &state.info_png.color); in getFilterTypesInterlaced()
Dlodepng.h640 LodePNGInfo info_png; /*info of the PNG image obtained after decoding*/ member