Searched refs:palsize (Results 1 – 3 of 3) sorted by relevance
2938 int palsize = 1 << (src_format & 0xff); in InitSourcePalette() local2939 m_pSrcPalette.reset(FX_Alloc(uint32_t, palsize)); in InitSourcePalette()2942 memcpy(pPalette, pSrcPalette, palsize * sizeof(uint32_t)); in InitSourcePalette()2944 for (int i = 0; i < palsize; ++i) { in InitSourcePalette()2970 int palsize = 1 << (src_format & 0xff); in InitSourcePalette() local2971 m_pSrcPalette.reset(FX_Alloc(uint32_t, palsize)); in InitSourcePalette()2973 if (palsize == 2) { in InitSourcePalette()2977 for (int i = 0; i < palsize; ++i) in InitSourcePalette()2981 for (int i = 0; i < palsize; ++i) { in InitSourcePalette()
729 int palsize = (1 << GetBPP()); in FindPalette() local730 for (int i = 0; i < palsize; ++i) { in FindPalette()
3411 size_t palsize = 1 << mode_out->bitdepth; in lodepng_convert() local3412 if(mode_out->palettesize < palsize) palsize = mode_out->palettesize; in lodepng_convert()3414 for(i = 0; i < palsize; i++) in lodepng_convert()