Home | History | Annotate | Download | only in dib

Lines Matching refs:m_pPalette

69   m_pPalette = nullptr;
166 m_pPalette = std::move(pSrcBitmap->m_pPalette);
189 pNewBitmap->SetPalette(m_pPalette.get());
218 if (m_pPalette)
222 m_pPalette.reset(FX_Alloc(uint32_t, 2));
224 m_pPalette.get()[0] = 0xff;
225 m_pPalette.get()[1] = 0;
227 m_pPalette.get()[0] = 0xff000000;
228 m_pPalette.get()[1] = 0xffffffff;
231 m_pPalette.reset(FX_Alloc(uint32_t, 256));
234 m_pPalette.get()[i] = 0xff - i;
237 m_pPalette.get()[i] = 0xff000000 | (i * 0x10101);
259 if (m_pPalette) {
260 return m_pPalette.get()[index];
276 if (!m_pPalette) {
279 m_pPalette.get()[index] = color;
284 if (!m_pPalette) {
298 if (m_pPalette.get()[i] == color) {
448 if (m_pPalette)
578 m_pPalette.reset();
582 if (!m_pPalette)
583 m_pPalette.reset(FX_Alloc(uint32_t, pal_size));
585 FXSYS_memcpy(m_pPalette.get(), pSrc, pal_size * sizeof(uint32_t));
591 pal[0] = ((m_pPalette ? m_pPalette.get()[0] : 0xff000000) & 0xffffff) |
593 pal[1] = ((m_pPalette ? m_pPalette.get()[1] : 0xffffffff) & 0xffffff) |
597 if (m_pPalette) {
599 pal[i] = (m_pPalette.get()[i] & 0x00ffffff) | (alpha << 24);
890 if (!m_pPalette) {
895 int r = static_cast<uint8_t>(m_pPalette.get()[i] >> 16);
896 int g = static_cast<uint8_t>(m_pPalette.get()[i] >> 8);
897 int b = static_cast<uint8_t>(m_pPalette.get()[i]);
921 if (!m_pPalette) {
926 int r = static_cast<uint8_t>(m_pPalette.get()[i] >> 16);
927 int g = static_cast<uint8_t>(m_pPalette.get()[i] >> 8);
928 int b = static_cast<uint8_t>(m_pPalette.get()[i]);
1052 return m_pPalette ? m_pPalette.get()[1] : 0xffffffff;
1054 return m_pPalette ? m_pPalette.get()[0] : 0xff000000;
1059 return m_pPalette ? m_pPalette.get()[*pos]
1090 if (m_pPalette) {
1091 if (color == m_pPalette.get()[1]) {
1108 if (m_pPalette) {
1110 if (m_pPalette.get()[i] == color) {
1174 if (m_pPalette) {
1177 FX_ARGB argb = m_pPalette.get()[scanline[src_x]];
1183 FX_CMYK cmyk = m_pPalette.get()[scanline[src_x]];
1251 if (forecolor == 0xff && backcolor == 0 && !m_pPalette) {
1254 } else if (forecolor == 0 && backcolor == 0xffffff && !m_pPalette) {
1257 if (!m_pPalette) {
1264 AdobeCMYK_to_sRGB1(FXSYS_GetCValue(m_pPalette.get()[i]),
1265 FXSYS_GetMValue(m_pPalette.get()[i]),
1266 FXSYS_GetYValue(m_pPalette.get()[i]),
1267 FXSYS_GetKValue(m_pPalette.get()[i]), r, g, b);
1269 m_pPalette.get()[i] = CmykEncode(
1275 int gray = FXRGB2GRAY(FXARGB_R(m_pPalette.get()[i]),
1276 FXARGB_G(m_pPalette.get()[i]),
1277 FXARGB_B(m_pPalette.get()[i]));
1278 m_pPalette.get()[i] = FXARGB_MAKE(0xff, br + (fr - br) * gray / 255,
1351 pFlipped->SetPalette(m_pPalette.get());
1451 m_pPalette.reset(GetDestPalette());