MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / lodepng_get_bpp_lct

Function lodepng_get_bpp_lct

src/lodepng.cpp:2516–2520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2514}
2515
2516static unsigned lodepng_get_bpp_lct(LodePNGColorType colortype, unsigned bitdepth)
2517{
2518 /*bits per pixel is amount of channels * bits per channel*/
2519 return getNumColorChannels(colortype) * bitdepth;
2520}
2521
2522/* ////////////////////////////////////////////////////////////////////////// */
2523

Callers 2

lodepng_get_bppFunction · 0.85
lodepng_get_raw_size_lctFunction · 0.85

Calls 1

getNumColorChannelsFunction · 0.85

Tested by

no test coverage detected