Home | History | Annotate | Download | only in images

Lines Matching refs:decodedBitmap

127     bool setDecodeConfig(SkBitmap* decodedBitmap, int width, int height);
171 static WEBP_CSP_MODE webp_decode_mode(const SkBitmap* decodedBitmap, bool premultiply) {
173 SkBitmap::Config config = decodedBitmap->config();
232 SkBitmap* decodedBitmap,
234 WEBP_CSP_MODE mode = webp_decode_mode(decodedBitmap, premultiply);
244 config->output.u.RGBA.rgba = (uint8_t*)decodedBitmap->getPixels();
245 config->output.u.RGBA.stride = (int) decodedBitmap->rowBytes();
246 config->output.u.RGBA.size = decodedBitmap->getSize();
249 if (width != decodedBitmap->width() || height != decodedBitmap->height()) {
251 config->options.scaled_width = decodedBitmap->width();
252 config->options.scaled_height = decodedBitmap->height();
259 SkBitmap* decodedBitmap,
262 if (!webp_get_config_resize(config, decodedBitmap, region.width(),
276 bool SkWEBPImageDecoder::setDecodeConfig(SkBitmap* decodedBitmap,
296 return decodedBitmap->setConfig(config, width, height, 0,
330 bool SkWEBPImageDecoder::onDecodeSubset(SkBitmap* decodedBitmap,
344 // The image can be decoded directly to decodedBitmap if
349 (decodedBitmap->isNull() ||
350 (is_config_compatible(*decodedBitmap) &&
351 (decodedBitmap->width() == width) &&
352 (decodedBitmap->height() == height)));
355 SkBitmap *bitmap = decodedBitmap;
366 bool allocResult = (bitmap == decodedBitmap)
370 return return_false(*decodedBitmap, "allocPixelRef");
394 cropBitmap(decodedBitmap, bitmap, sampleSize, region.x(), region.y(),
400 bool SkWEBPImageDecoder::onDecode(SkStream* stream, SkBitmap* decodedBitmap,
414 if (!setDecodeConfig(decodedBitmap, sampler.scaledWidth(),
424 if (!this->allocPixelRef(decodedBitmap, NULL)) {
425 return return_false(*decodedBitmap, "allocPixelRef");
428 SkAutoLockPixels alp(*decodedBitmap);
431 if (!webp_get_config_resize(&config, decodedBitmap, origWidth, origHeight,