Home | History | Annotate | Download | only in lodepng

Lines Matching refs:info_png

3954   LodePNGInfo* info = &state->info_png;
4205 unsigned w, unsigned h, const LodePNGInfo* info_png)
4214 unsigned bpp = lodepng_get_bpp(&info_png->color);
4217 if(info_png->interlace_method == 0)
4581 state->error = lodepng_inspect(w, h, state, in, insize); /*reads header and resets other parameters in state->info_png*/
4627 state->error = readChunk_PLTE(&state->info_png.color, data, chunkLength);
4636 state->error = readChunk_tRNS(&state->info_png.color, data, chunkLength);
4643 state->error = readChunk_bKGD(&state->info_png, data, chunkLength);
4651 state->error = readChunk_tEXt(&state->info_png, data, chunkLength);
4660 state->error = readChunk_zTXt(&state->info_png, &state->decoder.zlibsettings, data, chunkLength);
4669 state->error = readChunk_iTXt(&state->info_png, &state->decoder.zlibsettings, data, chunkLength);
4675 state->error = readChunk_tIME(&state->info_png, data, chunkLength);
4680 state->error = readChunk_pHYs(&state->info_png, data, chunkLength);
4693 state->error = lodepng_chunk_append(&state->info_png.unknown_chunks_data[critical_pos - 1],
4694 &state->info_png.unknown_chunks_size[critical_pos - 1], chunk);
4712 if(!ucvector_resize(&scanlines, lodepng_get_raw_size(*w, *h, &state->info_png.color) + *h))
4730 lodepng_get_raw_size(*w, *h, &state->info_png.color), 0)) state->error = 83; /*alloc fail*/
4731 if(!state->error) state->error = postProcessScanlines(outv.data, scanlines.data, *w, *h, &state->info_png);
4744 if(!state->decoder.color_convert || lodepng_color_mode_equal(&state->info_raw, &state->info_png.color))
4747 /*store the info_png color settings on the info_raw so that the info_raw still reflects what colortype
4751 state->error = lodepng_color_mode_copy(&state->info_raw, &state->info_png.color);
4775 else state->error = lodepng_convert(*out, data, &state->info_raw, &state->info_png.color, *w, *h, state->decoder.fix_png);
4853 lodepng_info_init(&state->info_png);
4860 lodepng_info_cleanup(&state->info_png);
4868 lodepng_info_init(&dest->info_png);
4870 dest->error = lodepng_info_copy(&dest->info_png, &source->info_png); if(dest->error) return;
5537 const LodePNGInfo* info_png, const LodePNGEncoderSettings* settings)
5544 unsigned bpp = lodepng_get_bpp(&info_png->color);
5547 if(info_png->interlace_method == 0)
5563 error = filter(*out, padded, w, h, &info_png->color, settings);
5570 error = filter(*out, in, w, h, &info_png->color, settings);
5603 passw[i], passh[i], &info_png->color, settings);
5609 passw[i], passh[i], &info_png->color, settings);
5676 lodepng_info_copy(&info, &state->info_png);
5696 if(state->info_png.interlace_method > 1)
5863 state.info_png.color.colortype = colortype;
5864 state.info_png.color.bitdepth = bitdepth;