Home
last modified time | relevance | path

Searched refs:colorMap (Results 1 - 6 of 6) sorted by relevance

/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/overdraw/
H A Drs_overdraw_controller.cpp133 std::map<int, Drawing::ColorQuad> colorMap; in OnColorChange() local
135 colorMap[i + 1] = colors[i]; in OnColorChange()
137 colorMap[0] = colors.back(); in OnColorChange()
142 that.colorMap_ = colorMap; in OnColorChange()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/jpeg_hw_decode/common/
H A Dmock_jpeg_hw_decode_flow.cpp125 static const std::map<UserColorFormat, PixelFormat> colorMap = { in UserColorFmtToPixelFmt() local
129 auto iter = colorMap.find(usrColorFmt); in UserColorFmtToPixelFmt()
130 if (iter == colorMap.end()) { in UserColorFmtToPixelFmt()
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_image_view.cpp63 const ColorMapObject* colorMap) const;
154 ColorMapObject* colorMap = nullptr; in SetGifFrame() local
156 colorMap = gifImageDesc->ColorMap; in SetGifFrame()
158 colorMap = gifFileType->SColorMap; in SetGifFrame()
161 DealGifImageData(gifFileType, gifImageDesc, savedImage, gcb, colorMap); in SetGifFrame()
185 const ColorMapObject* colorMap) const in DealGifImageData()
188 (savedImage->RasterBits == nullptr) || (colorMap == nullptr) || (colorMap->Colors == nullptr)) { in DealGifImageData()
211 gifColorType = &colorMap->Colors[colorIndex]; in DealGifImageData()
/foundation/multimedia/image_framework/plugins/common/libs/image/libgifplugin/src/
H A Dgif_encoder.cpp273 ColorType *colorMap = (ColorType *)malloc(sizeof(ColorType) * COLOR_MAP_SIZE); in processFrame() local
274 if (colorMap == NULL) { in processFrame()
284 free(colorMap); in processFrame()
287 if (colorQuantize(index, width, height, colorBuffer, colorMap)) { in processFrame()
290 free(colorMap); in processFrame()
294 Write(&(colorMap[j].red), 1); in processFrame()
295 Write(&(colorMap[j].green), 1); in processFrame()
296 Write(&(colorMap[j].blue), 1); in processFrame()
302 free(colorMap); in processFrame()
307 free(colorMap); in processFrame()
[all...]
H A Dgif_decoder.cpp432 const ColorMapObject *colorMap = gifPtr_->SColorMap; in PaddingData() local
434 colorMap = savedImage->ImageDesc.ColorMap; // local color map in PaddingData()
436 if (colorMap == nullptr) { in PaddingData()
440 int32_t colorCount = colorMap->ColorCount; in PaddingData()
441 int32_t bitsPerPixel = colorMap->BitsPerPixel; in PaddingData()
463 CopyLine(srcFrame, dstPixelMapBuffer, frameWidth, transparentColor, colorMap); in PaddingData()
471 int32_t transparentColor, const ColorMapObject *colorMap) in CopyLine()
474 if ((*srcFrame != transparentColor) && (*srcFrame < colorMap->ColorCount)) { in CopyLine()
475 const GifColorType &colorType = colorMap->Colors[*srcFrame]; in CopyLine()
470 CopyLine(const GifByteType *srcFrame, uint32_t *dstPixelMapBuffer, int32_t frameWidth, int32_t transparentColor, const ColorMapObject *colorMap) CopyLine() argument
/foundation/multimedia/image_framework/plugins/common/libs/image/libgifplugin/include/
H A Dgif_decoder.h69 const ColorMapObject *colorMap);

Completed in 6 milliseconds