Home
last modified time | relevance | path

Searched refs:bm8888 (Results 1 – 4 of 4) sorted by relevance

/external/skia/tests/
DJpegTest.cpp426 SkBitmap bm8888; in DEF_TEST() local
428 static_cast<void *>(goodJpegImage), len, &bm8888); in DEF_TEST()
430 REPORTER_ASSERT(reporter, bm8888.width() == goodJpegImageWidth); in DEF_TEST()
431 REPORTER_ASSERT(reporter, bm8888.height() == goodJpegImageHeight); in DEF_TEST()
432 REPORTER_ASSERT(reporter, !(bm8888.empty())); in DEF_TEST()
436 REPORTER_ASSERT(reporter, bm8888.getColor(7, 9) == 0xffffffff); in DEF_TEST()
437 REPORTER_ASSERT(reporter, bm8888.getColor(28, 3) == 0xff000000); in DEF_TEST()
438 REPORTER_ASSERT(reporter, bm8888.getColor(27, 34) == 0xffffffff); in DEF_TEST()
439 REPORTER_ASSERT(reporter, bm8888.getColor(71, 18) == 0xff000000); in DEF_TEST()
442 REPORTER_ASSERT(reporter, bm8888.getColor(127, 127) == 0xff808080 in DEF_TEST()
[all …]
DKtxTest.cpp30 SkBitmap bm8888; in DEF_TEST() local
31 bm8888.allocN32Pixels(128, 128); in DEF_TEST()
33 uint8_t *pixels = reinterpret_cast<uint8_t*>(bm8888.getPixels()); in DEF_TEST()
41 for (int y = 0; y < bm8888.height(); ++y) { in DEF_TEST()
42 for (int x = 0; x < bm8888.width(); ++x) { in DEF_TEST()
51 row += bm8888.rowBytes(); in DEF_TEST()
53 REPORTER_ASSERT(reporter, !(bm8888.empty())); in DEF_TEST()
55 SkAutoDataUnref encodedData(SkImageEncoder::EncodeData(bm8888, SkImageEncoder::kKTX_Type, 0)); in DEF_TEST()
65 REPORTER_ASSERT(reporter, decodedBitmap.colorType() == bm8888.colorType()); in DEF_TEST()
66 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == bm8888.alphaType()); in DEF_TEST()
[all …]
DImageDecodingTest.cpp79 SkBitmap bm8888; in compare_unpremul() local
95 bool success = decoder->decode(&stream, &bm8888, kN32_SkColorType, in compare_unpremul()
114 bool dimensionsMatch = bm8888.width() == bm8888Unpremul.width() in compare_unpremul()
115 && bm8888.height() == bm8888Unpremul.height(); in compare_unpremul()
122 if (bm8888.colorType() != kN32_SkColorType || bm8888Unpremul.colorType() != kN32_SkColorType) { in compare_unpremul()
127 for (int i = 0; i < bm8888.width(); ++i) { in compare_unpremul()
128 for (int j = 0; j < bm8888.height(); ++j) { in compare_unpremul()
130 const SkPMColor c0 = *bm8888.getAddr32(i, j); in compare_unpremul()
/external/skia/tools/skpdiff/
DSkPMetric.cpp128 SkBitmap bm8888; in bitmap_to_cielab() local
130 if (!bitmap->copyTo(&bm8888, kN32_SkColorType)) { in bitmap_to_cielab()
133 bitmap = &bm8888; in bitmap_to_cielab()