Lines Matching refs:ham_palbuf

52     uint32_t *ham_palbuf;   ///< HAM decode table
329 av_freep(&s->ham_palbuf);
345 s->ham_palbuf = av_malloc(extra_space * (ham_count << !!(s->masking == MASK_HAS_MASK)) * sizeof (uint32_t) + AV_INPUT_BUFFER_PADDING_SIZE);
346 if (!s->ham_palbuf) {
353 memset(s->ham_palbuf, 0, (1 << s->ham) * 2 * sizeof (uint32_t));
355 s->ham_palbuf[i*2+1] = 0xFF000000 | AV_RL24(palette + i*3);
361 s->ham_palbuf[i*2] = 0xFF000000; // take direct color value from palette
362 s->ham_palbuf[i*2+1] = 0xFF000000 | av_le2ne32(gray2rgb((i * 255) >> s->ham));
368 s->ham_palbuf[(i+count)*2] = 0xFF00FFFF; // just modify blue color component
369 s->ham_palbuf[(i+count*2)*2] = 0xFFFFFF00; // just modify red color component
370 s->ham_palbuf[(i+count*3)*2] = 0xFFFF00FF; // just modify green color component
371 s->ham_palbuf[(i+count)*2+1] = 0xFF000000 | tmp << 16;
372 s->ham_palbuf[(i+count*2)*2+1] = 0xFF000000 | tmp;
373 s->ham_palbuf[(i+count*3)*2+1] = 0xFF000000 | tmp << 8;
377 s->ham_palbuf[(1 << s->bpp) + i] = s->ham_palbuf[i] | 0xFF000000;
390 av_freep(&s->ham_palbuf);
1591 decode_ham_plane32((uint32_t *)row, s->ham_buf, s->ham_palbuf, s->planesize);
1628 decode_ham_plane32((uint32_t *)row, s->ham_buf, s->ham_palbuf, s->planesize);
1653 decode_ham_plane32((uint32_t *)row, s->ham_buf, s->ham_palbuf, s->planesize);
1702 decode_ham_plane32((uint32_t *)row, s->ham_buf, s->ham_palbuf, s->planesize);
1724 decode_ham_plane32((uint32_t *)row, s->ham_buf, s->ham_palbuf, s->planesize);
1754 decode_ham_plane32((uint32_t *)row, s->ham_buf, s->ham_palbuf, s->planesize);
1860 memset(s->ham_palbuf, 0, (1 << s->ham) * 2 * sizeof(uint32_t));
1862 s->ham_palbuf[i*2+1] = s->pal[i];
1867 s->ham_palbuf[(i+count)*2] = 0xFF00FFFF;
1868 s->ham_palbuf[(i+count*2)*2] = 0xFFFFFF00;
1869 s->ham_palbuf[(i+count*3)*2] = 0xFFFF00FF;
1870 s->ham_palbuf[(i+count)*2+1] = 0xFF000000 | tmp << 16;
1871 s->ham_palbuf[(i+count*2)*2+1] = 0xFF000000 | tmp;
1872 s->ham_palbuf[(i+count*3)*2+1] = 0xFF000000 | tmp << 8;
1876 s->ham_palbuf[(1 << s->bpp) + i] = s->ham_palbuf[i] | 0xFF000000;
1885 decode_ham_plane32((uint32_t *)row, s->ham_buf, s->ham_palbuf, s->planesize);