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

Function lodepng_has_palette_alpha

samples/shared/lodepng.cpp:2651–2659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2649}
2650
2651unsigned lodepng_has_palette_alpha(const LodePNGColorMode* info)
2652{
2653 size_t i;
2654 for(i = 0; i < info->palettesize; i++)
2655 {
2656 if(info->palette[i * 4 + 3] < 255) return 1;
2657 }
2658 return 0;
2659}
2660
2661unsigned lodepng_can_have_alpha(const LodePNGColorMode* info)
2662{

Callers 1

lodepng_can_have_alphaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected