Lines Matching refs:cmap
124 static void copyLine(uint32_t* dst, const unsigned char* src, const ColorMapObject* cmap, in copyLine() argument
128 if (*src != transparent && *src < cmap->ColorCount) { in copyLine()
129 const GifColorType& col = cmap->Colors[*src]; in copyLine()
137 const ColorMapObject* cmap, int transparent, int copyWidth, in copyInterlaceGroup() argument
145 copyLine(dst, src, cmap, transparent, copyWidth); in copyInterlaceGroup()
153 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace() argument
172 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0); in blitInterlace()
175 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4); in blitInterlace()
178 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 4, 2); in blitInterlace()
180 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 2, 1); in blitInterlace()
184 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitNormal() argument
202 copyLine(dst, src, cmap, transparent, copyWidth); in blitNormal()
231 static void drawFrame(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap) in drawFrame() argument
248 cmap = frame->ImageDesc.ColorMap; in drawFrame()
251 if (cmap == nullptr || cmap->ColorCount != (1 << cmap->BitsPerPixel)) { in drawFrame()
259 blitInterlace(bm, frame, cmap, transparent); in drawFrame()
264 blitNormal(bm, frame, cmap, transparent); in drawFrame()