Lines Matching refs:npal
321 const uint8_t *pal, int npal, int tidx)
328 if (npal <= 2) nb = 1;
329 else if (npal <= 4) nb = 2;
330 else if (npal <= 16) nb = 4;
350 int hdr, zsize, npal, tidx = -1, ret;
386 npal = *src++ + 1;
387 if (src_end - src < npal * 3)
389 memcpy(pal, src, npal * 3);
390 src += npal * 3;
392 for (i = 0; i < npal; i++) {
415 NULL, 0, width, height, pal, npal, tidx);
452 width, height, pal, npal, tidx);