Home | History | Annotate | Download | only in images

Lines Matching refs:decodedBitmap

126     bool setDecodeConfig(SkBitmap* decodedBitmap, int width, int height);
170 static WEBP_CSP_MODE webp_decode_mode(const SkBitmap* decodedBitmap, bool premultiply) {
172 const SkColorType ct = decodedBitmap->colorType();
237 SkBitmap* decodedBitmap,
239 WEBP_CSP_MODE mode = webp_decode_mode(decodedBitmap, premultiply);
249 config->output.u.RGBA.rgba = (uint8_t*)decodedBitmap->getPixels();
250 config->output.u.RGBA.stride = (int) decodedBitmap->rowBytes();
251 config->output.u.RGBA.size = decodedBitmap->getSize();
254 if (width != decodedBitmap->width() || height != decodedBitmap->height()) {
256 config->options.scaled_width = decodedBitmap->width();
257 config->options.scaled_height = decodedBitmap->height();
264 SkBitmap* decodedBitmap,
267 if (!webp_get_config_resize(config, decodedBitmap, region.width(),
281 bool SkWEBPImageDecoder::setDecodeConfig(SkBitmap* decodedBitmap, int width, int height) {
309 return decodedBitmap->setInfo(SkImageInfo::Make(width, height, colorType, alphaType));
340 bool SkWEBPImageDecoder::onDecodeSubset(SkBitmap* decodedBitmap,
354 // The image can be decoded directly to decodedBitmap if
359 (decodedBitmap->isNull() ||
360 (is_config_compatible(*decodedBitmap) &&
361 (decodedBitmap->width() == width) &&
362 (decodedBitmap->height() == height)));
365 SkBitmap *bitmap = decodedBitmap;
376 bool allocResult = (bitmap == decodedBitmap)
380 return return_false(*decodedBitmap, "allocPixelRef");
406 cropBitmap(decodedBitmap, bitmap, sampleSize, region.x(), region.y(),
412 bool SkWEBPImageDecoder::onDecode(SkStream* stream, SkBitmap* decodedBitmap,
426 if (!setDecodeConfig(decodedBitmap, sampler.scaledWidth(),
436 if (!this->allocPixelRef(decodedBitmap, NULL)) {
437 return return_false(*decodedBitmap, "allocPixelRef");
440 SkAutoLockPixels alp(*decodedBitmap);
443 if (!webp_get_config_resize(&config, decodedBitmap, origWidth, origHeight,