MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / lodepng_state_init

Function lodepng_state_init

samples/shared/lodepng.cpp:4693–4704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4691#if defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER)
4692
4693void lodepng_state_init(LodePNGState* state)
4694{
4695#ifdef LODEPNG_COMPILE_DECODER
4696 lodepng_decoder_settings_init(&state->decoder);
4697#endif /*LODEPNG_COMPILE_DECODER*/
4698#ifdef LODEPNG_COMPILE_ENCODER
4699 lodepng_encoder_settings_init(&state->encoder);
4700#endif /*LODEPNG_COMPILE_ENCODER*/
4701 lodepng_color_mode_init(&state->info_raw);
4702 lodepng_info_init(&state->info_png);
4703 state->error = 1;
4704}
4705
4706void lodepng_state_cleanup(LodePNGState* state)
4707{

Callers 3

lodepng_decode_memoryFunction · 0.85
lodepng_encode_memoryFunction · 0.85
StateMethod · 0.85

Calls 4

lodepng_color_mode_initFunction · 0.85
lodepng_info_initFunction · 0.85

Tested by

no test coverage detected