Searched defs:decodedBitmap (Results 1 - 8 of 8) sorted by relevance

/external/chromium_org/third_party/skia/tests/
H A DKtxTest.cpp61 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/tests/
H A DKtxTest.cpp62 SkBitmap decodedBitmap; local
63 bool imageDecodeSuccess = SkImageDecoder::DecodeStream(stream, &decodedBitmap);
66 REPORTER_ASSERT(reporter, decodedBitmap.colorType() == bm8888.colorType());
67 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == bm8888.alphaType());
68 REPORTER_ASSERT(reporter, decodedBitmap.width() == bm8888.width());
69 REPORTER_ASSERT(reporter, decodedBitmap.height() == bm8888.height());
70 REPORTER_ASSERT(reporter, !(decodedBitmap.empty()));
72 uint8_t *decodedPixels = reinterpret_cast<uint8_t*>(decodedBitmap.getPixels());
74 REPORTER_ASSERT(reporter, decodedBitmap.getSize() == bm8888.getSize());
80 REPORTER_ASSERT(reporter, memcmp(decodedPixels, pixels, decodedBitmap
115 SkBitmap decodedBitmap; local
[all...]
/external/chromium_org/third_party/skia/src/images/
H A DSkImageDecoder_wbmp.cpp102 bool 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 DSkImageDecoder_libwebp.cpp126 bool setDecodeConfig(SkBitmap* decodedBitmap, int width, int height);
170 static WEBP_CSP_MODE webp_decode_mode(const SkBitmap* decodedBitmap, bool premultiply) { argument
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
236 webp_get_config_resize(WebPDecoderConfig* config, SkBitmap* decodedBitmap, int width, int height, bool premultiply) argument
263 webp_get_config_resize_crop(WebPDecoderConfig* config, SkBitmap* decodedBitmap, const SkIRect& region, bool premultiply) argument
281 setDecodeConfig(SkBitmap* decodedBitmap, int width, int height) argument
340 onDecodeSubset(SkBitmap* decodedBitmap, const SkIRect& region) argument
412 onDecode(SkStream* stream, SkBitmap* decodedBitmap, Mode mode) argument
[all...]
H A DSkImageDecoder_libpng.cpp300 bool SkPNGImageDecoder::onDecode(SkStream* sk_stream, SkBitmap* decodedBitmap, argument
332 decodedBitmap->setInfo(SkImageInfo::Make(sampler.scaledWidth(), sampler.scaledHeight(),
353 if (!this->allocPixelRef(decodedBitmap,
358 SkAutoLockPixels alp(*decodedBitmap);
385 uint8_t* bmRow = decodedBitmap->getAddr8(0, y);
408 even if our decodedBitmap doesn't, due to the request that we
412 if (!sampler.begin(decodedBitmap, sc, *this, ctLock.colors())) {
415 const int height = decodedBitmap->height();
462 reallyHasAlpha |= substituteTranspColor(decodedBitmap, theTranspColor);
465 switch (decodedBitmap
795 SkBitmap decodedBitmap; local
[all...]
/external/skia/src/images/
H A DSkImageDecoder_wbmp.cpp102 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 DSkImageDecoder_libwebp.cpp126 bool setDecodeConfig(SkBitmap* decodedBitmap, int width, int height);
181 static WEBP_CSP_MODE webp_decode_mode(const SkBitmap* decodedBitmap, bool premultiply) { argument
183 const SkColorType ct = decodedBitmap->colorType();
248 SkBitmap* decodedBitmap,
250 WEBP_CSP_MODE mode = webp_decode_mode(decodedBitmap, premultiply);
260 config->output.u.RGBA.rgba = (uint8_t*)decodedBitmap->getPixels();
261 config->output.u.RGBA.stride = (int) decodedBitmap->rowBytes();
262 config->output.u.RGBA.size = decodedBitmap->getSize();
265 if (width != decodedBitmap->width() || height != decodedBitmap
247 webp_get_config_resize(WebPDecoderConfig* config, SkBitmap* decodedBitmap, int width, int height, bool premultiply) argument
274 webp_get_config_resize_crop(WebPDecoderConfig* config, SkBitmap* decodedBitmap, const SkIRect& region, bool premultiply) argument
292 setDecodeConfig(SkBitmap* decodedBitmap, int width, int height) argument
351 onDecodeSubset(SkBitmap* decodedBitmap, const SkIRect& region) argument
423 onDecode(SkStream* stream, SkBitmap* decodedBitmap, Mode mode) argument
[all...]
H A DSkImageDecoder_libpng.cpp300 SkImageDecoder::Result SkPNGImageDecoder::onDecode(SkStream* sk_stream, SkBitmap* decodedBitmap, argument
332 decodedBitmap->setInfo(SkImageInfo::Make(sampler.scaledWidth(), sampler.scaledHeight(),
353 if (!this->allocPixelRef(decodedBitmap,
358 SkAutoLockPixels alp(*decodedBitmap);
385 uint8_t* bmRow = decodedBitmap->getAddr8(0, y);
408 even if our decodedBitmap doesn't, due to the request that we
412 if (!sampler.begin(decodedBitmap, sc, *this, ctLock.colors())) {
415 const int height = decodedBitmap->height();
462 reallyHasAlpha |= substituteTranspColor(decodedBitmap, theTranspColor);
465 switch (decodedBitmap
795 SkBitmap decodedBitmap; local
[all...]

Completed in 289 milliseconds