Home
last modified time | relevance | path

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

/third_party/skia/tests/
DEncodeTest.cpp213 SkBitmap bm0, bm1, bm2; in DEF_TEST() local
214 SkImage::MakeFromEncoded(data0)->asLegacyBitmap(&bm0); in DEF_TEST()
217 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 60)); in DEF_TEST()
327 SkBitmap bm0, bm1, bm2; in DEF_TEST() local
328 SkImage::MakeFromEncoded(data0)->asLegacyBitmap(&bm0); in DEF_TEST()
331 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); in DEF_TEST()
332 REPORTER_ASSERT(r, almost_equals(bm0, bm2, 0)); in DEF_TEST()
426 SkBitmap bm0, bm1, bm2, bm3; in DEF_TEST() local
427 SkImage::MakeFromEncoded(data0)->asLegacyBitmap(&bm0); in DEF_TEST()
431 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); in DEF_TEST()
[all …]
DImageTest.cpp1281 SkBitmap bm0; in DEF_TEST() local
1282 make_all_premul(&bm0); in DEF_TEST()
1284 auto img0 = bm0.asImage(); in DEF_TEST()
1292 REPORTER_ASSERT(reporter, equal(bm0, bm1)); in DEF_TEST()
1296 SkBitmap bm0; in DEF_TEST() local
1297 make_all_premul(&bm0); in DEF_TEST()
1301 bm0.readPixels(bm1.info(), bm1.getPixels(), bm1.rowBytes(), 0, 0); in DEF_TEST()
1307 REPORTER_ASSERT(reporter, equal(bm0, bm2)); in DEF_TEST()
/third_party/cups-filters/cupsfilters/
Drgb.c180 b, bi, bm0, bm1, bs; in cupsRGBDoRGB() local
270 bm0 = rgbptr->cube_mult[b]; in cupsRGBDoRGB()
271 bm1 = 256 - bm0; in cupsRGBDoRGB()
277 tempb = (color[0] * bm0 + color[bs] * bm1) / 256; in cupsRGBDoRGB()
284 tempb = (color[rs] * bm0 + color[rs + bs] * bm1) / 256; in cupsRGBDoRGB()
286 tempb = (color[rs + gs] * bm0 + color[rs + gs + bs] * bm1) / 256; in cupsRGBDoRGB()
/third_party/skia/tools/
DToolUtils.cpp454 bool equal_pixels(const SkBitmap& bm0, const SkBitmap& bm1) { in equal_pixels() argument
456 return bm0.peekPixels(&pm0) && bm1.peekPixels(&pm1) && equal_pixels(pm0, pm1); in equal_pixels()