/external/chromium_org/third_party/skia/tests/ |
KtxTest.cpp | 30 SkBitmap bm8888; local 31 bm8888.allocN32Pixels(128, 128); 33 uint8_t *pixels = reinterpret_cast<uint8_t*>(bm8888.getPixels()); 41 for (int y = 0; y < bm8888.height(); ++y) { 42 for (int x = 0; x < bm8888.width(); ++x) { 51 row += bm8888.rowBytes(); 53 REPORTER_ASSERT(reporter, !(bm8888.empty())); 55 SkAutoDataUnref encodedData(SkImageEncoder::EncodeData(bm8888, SkImageEncoder::kKTX_Type, 0)); 65 REPORTER_ASSERT(reporter, decodedBitmap.colorType() == bm8888.colorType()); 66 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == bm8888.alphaType()) [all...] |
ImageDecodingTest.cpp | 79 SkBitmap bm8888; local 95 bool success = decoder->decode(&stream, &bm8888, kN32_SkColorType, 114 bool dimensionsMatch = bm8888.width() == bm8888Unpremul.width() 115 && bm8888.height() == bm8888Unpremul.height(); 122 if (bm8888.colorType() != kN32_SkColorType || bm8888Unpremul.colorType() != kN32_SkColorType) { 127 for (int i = 0; i < bm8888.width(); ++i) { 128 for (int j = 0; j < bm8888.height(); ++j) { 130 const SkPMColor c0 = *bm8888.getAddr32(i, j);
|
JpegTest.cpp | 425 SkBitmap bm8888; local 427 static_cast<void *>(goodJpegImage), len, &bm8888); 429 REPORTER_ASSERT(reporter, bm8888.width() == goodJpegImageWidth); 430 REPORTER_ASSERT(reporter, bm8888.height() == goodJpegImageHeight); 431 REPORTER_ASSERT(reporter, !(bm8888.empty())); 435 REPORTER_ASSERT(reporter, bm8888.getColor(7, 9) == 0xffffffff); 436 REPORTER_ASSERT(reporter, bm8888.getColor(28, 3) == 0xff000000); 437 REPORTER_ASSERT(reporter, bm8888.getColor(27, 34) == 0xffffffff); 438 REPORTER_ASSERT(reporter, bm8888.getColor(71, 18) == 0xff000000); 441 REPORTER_ASSERT(reporter, bm8888.getColor(127, 127) == 0xff80808 [all...] |
/external/skia/tests/ |
KtxTest.cpp | 30 SkBitmap bm8888; local 31 bool pixelsAllocated = bm8888.allocN32Pixels(128, 128); 34 uint8_t *pixels = reinterpret_cast<uint8_t*>(bm8888.getPixels()); 42 for (int y = 0; y < bm8888.height(); ++y) { 43 for (int x = 0; x < bm8888.width(); ++x) { 52 row += bm8888.rowBytes(); 54 REPORTER_ASSERT(reporter, !(bm8888.empty())); 56 SkAutoDataUnref encodedData(SkImageEncoder::EncodeData(bm8888, SkImageEncoder::kKTX_Type, 0)); 66 REPORTER_ASSERT(reporter, decodedBitmap.colorType() == bm8888.colorType()); 67 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == bm8888.alphaType()) [all...] |
ImageDecodingTest.cpp | 78 SkBitmap bm8888; local 94 bool success = decoder->decode(&stream, &bm8888, kN32_SkColorType, 113 bool dimensionsMatch = bm8888.width() == bm8888Unpremul.width() 114 && bm8888.height() == bm8888Unpremul.height(); 121 if (bm8888.colorType() != kN32_SkColorType || bm8888Unpremul.colorType() != kN32_SkColorType) { 126 for (int i = 0; i < bm8888.width(); ++i) { 127 for (int j = 0; j < bm8888.height(); ++j) { 129 const SkPMColor c0 = *bm8888.getAddr32(i, j);
|
JpegTest.cpp | 425 SkBitmap bm8888; local 427 static_cast<void *>(goodJpegImage), len, &bm8888); 429 REPORTER_ASSERT(reporter, bm8888.width() == goodJpegImageWidth); 430 REPORTER_ASSERT(reporter, bm8888.height() == goodJpegImageHeight); 431 REPORTER_ASSERT(reporter, !(bm8888.empty())); 435 REPORTER_ASSERT(reporter, bm8888.getColor(7, 9) == 0xffffffff); 436 REPORTER_ASSERT(reporter, bm8888.getColor(28, 3) == 0xff000000); 437 REPORTER_ASSERT(reporter, bm8888.getColor(27, 34) == 0xffffffff); 438 REPORTER_ASSERT(reporter, bm8888.getColor(71, 18) == 0xff000000); 441 REPORTER_ASSERT(reporter, bm8888.getColor(127, 127) == SK_ColorWHITE) [all...] |
/external/chromium_org/third_party/skia/tools/ |
skimage_main.cpp | 174 SkBitmap bm8888; local 175 if (!bm.copyTo(&bm8888, kN32_SkColorType)) { 178 return SkImageEncoder::EncodeFile(filename.c_str(), bm8888, SkImageEncoder::kPNG_Type, 100); [all...] |
/external/chromium_org/third_party/skia/tools/skpdiff/ |
SkPMetric.cpp | 128 SkBitmap bm8888; 130 if (!bitmap->copyTo(&bm8888, kN32_SkColorType)) { 133 bitmap = &bm8888;
|
/external/skia/tools/ |
skimage_main.cpp | 174 SkBitmap bm8888; local 175 if (!bm.copyTo(&bm8888, kN32_SkColorType)) { 178 return SkImageEncoder::EncodeFile(filename.c_str(), bm8888, SkImageEncoder::kPNG_Type, 100); [all...] |
/external/skia/tools/skpdiff/ |
SkPMetric.cpp | 128 SkBitmap bm8888; 130 if (!bitmap->copyTo(&bm8888, kN32_SkColorType)) { 133 bitmap = &bm8888;
|