Lines Matching refs:decodedBitmap
118 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()
255 config->options.scaled_height = decodedBitmap->height(); in webp_get_config_resize()
261 bool SkWEBPImageDecoder::setDecodeConfig(SkBitmap* decodedBitmap, int width, int height) { in setDecodeConfig() argument
283 return decodedBitmap->setInfo(SkImageInfo::Make(width, height, colorType, alphaType)); in setDecodeConfig()
286 SkImageDecoder::Result SkWEBPImageDecoder::onDecode(SkStream* stream, SkBitmap* decodedBitmap, in onDecode() argument
300 if (!setDecodeConfig(decodedBitmap, sampler.scaledWidth(), in onDecode()
310 if (!this->allocPixelRef(decodedBitmap, nullptr)) { in onDecode()
311 return return_failure(*decodedBitmap, "allocPixelRef"); in onDecode()
314 SkAutoLockPixels alp(*decodedBitmap); in onDecode()
317 if (!webp_get_config_resize(&config, decodedBitmap, origWidth, origHeight, in onDecode()