Lines Matching refs:cm
715 ColorMapObject *cm = This->frame->ImageDesc.ColorMap; in GifFrameDecode_CopyPalette() local
720 if (!cm) cm = This->parent->gif->SColorMap; in GifFrameDecode_CopyPalette()
722 if (cm->ColorCount > 256) in GifFrameDecode_CopyPalette()
724 ERR("GIF contains %i colors???\n", cm->ColorCount); in GifFrameDecode_CopyPalette()
728 for (i = 0; i < cm->ColorCount; i++) { in GifFrameDecode_CopyPalette()
730 cm->Colors[i].Red << 16| in GifFrameDecode_CopyPalette()
731 cm->Colors[i].Green << 8| in GifFrameDecode_CopyPalette()
732 cm->Colors[i].Blue; in GifFrameDecode_CopyPalette()
747 return IWICPalette_InitializeCustom(pIPalette, colors, cm->ColorCount); in GifFrameDecode_CopyPalette()
1188 ColorMapObject *cm; in GifDecoder_CopyPalette() local
1197 cm = This->gif->SColorMap; in GifDecoder_CopyPalette()
1198 if (cm) in GifDecoder_CopyPalette()
1200 if (cm->ColorCount > 256) in GifDecoder_CopyPalette()
1202 ERR("GIF contains invalid number of colors: %d\n", cm->ColorCount); in GifDecoder_CopyPalette()
1206 for (i = 0; i < cm->ColorCount; i++) in GifDecoder_CopyPalette()
1209 cm->Colors[i].Red << 16 | in GifDecoder_CopyPalette()
1210 cm->Colors[i].Green << 8 | in GifDecoder_CopyPalette()
1211 cm->Colors[i].Blue; in GifDecoder_CopyPalette()
1214 count = cm->ColorCount; in GifDecoder_CopyPalette()