Searched defs:decodedBitmap (Results 1 - 4 of 4) sorted by relevance
/external/skia/tests/ |
H A D | KtxTest.cpp | 61 SkBitmap decodedBitmap; local 62 bool imageDecodeSuccess = SkImageDecoder::DecodeStream(stream, &decodedBitmap); 65 REPORTER_ASSERT(reporter, decodedBitmap.colorType() == bm8888.colorType()); 66 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == bm8888.alphaType()); 67 REPORTER_ASSERT(reporter, decodedBitmap.width() == bm8888.width()); 68 REPORTER_ASSERT(reporter, decodedBitmap.height() == bm8888.height()); 69 REPORTER_ASSERT(reporter, !(decodedBitmap.empty())); 71 uint8_t *decodedPixels = reinterpret_cast<uint8_t*>(decodedBitmap.getPixels()); 73 REPORTER_ASSERT(reporter, decodedBitmap.getSize() == bm8888.getSize()); 79 REPORTER_ASSERT(reporter, memcmp(decodedPixels, pixels, decodedBitmap 114 SkBitmap decodedBitmap; local [all...] |
/external/skia/src/images/ |
H A D | SkImageDecoder_wbmp.cpp | 102 SkImageDecoder::Result SkWBMPImageDecoder::onDecode(SkStream* stream, SkBitmap* decodedBitmap, argument 114 decodedBitmap->setInfo(SkImageInfo::Make(width, height, 125 if (!this->allocPixelRef(decodedBitmap, ct)) { 129 SkAutoLockPixels alp(*decodedBitmap); 131 uint8_t* dst = decodedBitmap->getAddr8(0, 0); 136 uint8_t* src = dst + decodedBitmap->getSize() - srcSize; 144 dst += decodedBitmap->rowBytes();
|
H A D | SkImageDecoder_libwebp.cpp | 120 bool setDecodeConfig(SkBitmap* decodedBitmap, int width, int height); 175 static WEBP_CSP_MODE webp_decode_mode(const SkBitmap* decodedBitmap, bool premultiply) { argument 177 const SkColorType ct = decodedBitmap->colorType(); 242 SkBitmap* decodedBitmap, 244 WEBP_CSP_MODE mode = webp_decode_mode(decodedBitmap, premultiply); 254 config->output.u.RGBA.rgba = (uint8_t*)decodedBitmap->getPixels(); 255 config->output.u.RGBA.stride = (int) decodedBitmap->rowBytes(); 256 config->output.u.RGBA.size = decodedBitmap->getSize(); 259 if (width != decodedBitmap->width() || height != decodedBitmap 241 webp_get_config_resize(WebPDecoderConfig* config, SkBitmap* decodedBitmap, int width, int height, bool premultiply) argument 268 webp_get_config_resize_crop(WebPDecoderConfig* config, SkBitmap* decodedBitmap, const SkIRect& region, bool premultiply) argument 286 setDecodeConfig(SkBitmap* decodedBitmap, int width, int height) argument 340 onDecodeSubset(SkBitmap* decodedBitmap, const SkIRect& region) argument 404 onDecode(SkStream* stream, SkBitmap* decodedBitmap, Mode mode) argument [all...] |
H A D | SkImageDecoder_libpng.cpp | 308 SkImageDecoder::Result SkPNGImageDecoder::onDecode(SkStream* sk_stream, SkBitmap* decodedBitmap, argument 340 decodedBitmap->setInfo(SkImageInfo::Make(sampler.scaledWidth(), sampler.scaledHeight(), 361 if (!this->allocPixelRef(decodedBitmap, 366 SkAutoLockPixels alp(*decodedBitmap); 399 uint8_t* bmRow = decodedBitmap->getAddr8(0, y); 422 even if our decodedBitmap doesn't, due to the request that we 426 if (!sampler.begin(decodedBitmap, sc, *this, colors)) { 429 const int height = decodedBitmap->height(); 476 reallyHasAlpha |= substituteTranspColor(decodedBitmap, theTranspColor); 479 switch (decodedBitmap 800 SkBitmap decodedBitmap; local [all...] |
Completed in 4427 milliseconds