Home
last modified time | relevance | path

Searched refs:decodedBitmap (Results 1 – 3 of 3) sorted by relevance

/external/skia/src/images/
DSkImageDecoder_libwebp.cpp118 bool setDecodeConfig(SkBitmap* decodedBitmap, int width, int height);
168 static WEBP_CSP_MODE webp_decode_mode(const SkBitmap* decodedBitmap, bool premultiply) { in webp_decode_mode() argument
170 const SkColorType ct = decodedBitmap->colorType(); in webp_decode_mode()
235 SkBitmap* decodedBitmap, in webp_get_config_resize() argument
237 WEBP_CSP_MODE mode = webp_decode_mode(decodedBitmap, premultiply); in webp_get_config_resize()
247 config->output.u.RGBA.rgba = (uint8_t*)decodedBitmap->getPixels(); in webp_get_config_resize()
248 config->output.u.RGBA.stride = (int) decodedBitmap->rowBytes(); in webp_get_config_resize()
249 config->output.u.RGBA.size = decodedBitmap->getSize(); in webp_get_config_resize()
252 if (width != decodedBitmap->width() || height != decodedBitmap->height()) { in webp_get_config_resize()
254 config->options.scaled_width = decodedBitmap->width(); in webp_get_config_resize()
[all …]
DSkImageDecoder_wbmp.cpp102 SkImageDecoder::Result SkWBMPImageDecoder::onDecode(SkStream* stream, SkBitmap* decodedBitmap, in onDecode() argument
114 decodedBitmap->setInfo(SkImageInfo::Make(width, height, in onDecode()
125 if (!this->allocPixelRef(decodedBitmap, ct)) { in onDecode()
129 SkAutoLockPixels alp(*decodedBitmap); in onDecode()
131 uint8_t* dst = decodedBitmap->getAddr8(0, 0); in onDecode()
136 uint8_t* src = dst + decodedBitmap->getSize() - srcSize; in onDecode()
144 dst += decodedBitmap->rowBytes(); in onDecode()
DSkImageDecoder_libpng.cpp280 SkImageDecoder::Result SkPNGImageDecoder::onDecode(SkStream* sk_stream, SkBitmap* decodedBitmap, in onDecode() argument
312 decodedBitmap->setInfo(SkImageInfo::Make(sampler.scaledWidth(), sampler.scaledHeight(), in onDecode()
333 if (!this->allocPixelRef(decodedBitmap, in onDecode()
338 SkAutoLockPixels alp(*decodedBitmap); in onDecode()
371 uint8_t* bmRow = decodedBitmap->getAddr8(0, y); in onDecode()
398 if (!sampler.begin(decodedBitmap, sc, *this, colors)) { in onDecode()
401 const int height = decodedBitmap->height(); in onDecode()
448 reallyHasAlpha |= substituteTranspColor(decodedBitmap, theTranspColor); in onDecode()
451 switch (decodedBitmap->colorType()) { in onDecode()
467 decodedBitmap->setAlphaType(kOpaque_SkAlphaType); in onDecode()