Lines Matching defs:pCmap
165 MVColmap *pCmap;
166 pCmap = colMaps;
167 colMaps = pCmap->next;
168 if (pCmap->Colors)
169 free(pCmap->Colors);
170 free(pCmap);
576 MVColmap *pCmap;
578 for (pCmap = colMaps; pCmap; pCmap = pCmap->next) {
579 if (cmap == pCmap->cmap)
580 return pCmap;
583 pCmap = (MVColmap *) calloc(sizeof(MVColmap), 1);
584 pCmap->next = colMaps;
585 pCmap->cmap = cmap;
586 colMaps = pCmap;
587 return pCmap;
601 MVColmap *pCmap = pPel->colmap;
604 if (pCmap->doComposite) { /* This is either True or DirectColor */
608 unsigned long index = (pix & pCmap->red_mask) >> pCmap->rshft;
609 scratch.red=pCmap->Colors[(pix & pCmap->red_mask)>>pCmap->rshft].red;
610 scratch.green=pCmap->Colors[(pix & pCmap->green_mask)>>pCmap->gshft].green;
611 scratch.blue=pCmap->Colors[(pix & pCmap->blue_mask)>>pCmap->bshft].blue;
616 return &(pCmap->Colors[pPel->pixel]);