Home
last modified time | relevance | path

Searched refs:bm1 (Results 1 – 21 of 21) sorted by relevance

/third_party/skia/docs/examples/
Dimage_to_bitmap_does_not_preserve_genid.cpp7 SkBitmap bm1, bm2; in draw() local
8 image->asLegacyBitmap(&bm1, SkImage::kRO_LegacyBitmapMode); in draw()
10 SkDebugf("%u\n%u\n", bm1.getGenerationID(), bm2.getGenerationID()); in draw()
/third_party/e2fsprogs/lib/ext2fs/
Dgen_bitmap.c373 ext2fs_generic_bitmap_32 bm1 = (ext2fs_generic_bitmap_32) gen_bm1; in ext2fs_compare_generic_bitmap() local
377 if (!bm1 || bm1->magic != magic) in ext2fs_compare_generic_bitmap()
382 if ((bm1->start != bm2->start) || in ext2fs_compare_generic_bitmap()
383 (bm1->end != bm2->end) || in ext2fs_compare_generic_bitmap()
384 (memcmp(bm1->bitmap, bm2->bitmap, in ext2fs_compare_generic_bitmap()
385 (size_t) (bm1->end - bm1->start)/8))) in ext2fs_compare_generic_bitmap()
388 for (i = bm1->end - ((bm1->end - bm1->start) % 8); i <= bm1->end; i++) in ext2fs_compare_generic_bitmap()
Dgen_bitmap64.c611 ext2fs_generic_bitmap_64 bm1 = (ext2fs_generic_bitmap_64) gen_bm1; in ext2fs_compare_generic_bmap() local
615 if (!bm1 || !bm2) in ext2fs_compare_generic_bmap()
617 if (bm1->magic != bm2->magic) in ext2fs_compare_generic_bmap()
621 if (EXT2FS_IS_32_BITMAP(bm1)) in ext2fs_compare_generic_bmap()
622 return ext2fs_compare_generic_bitmap(bm1->magic, neq, in ext2fs_compare_generic_bmap()
625 if (!EXT2FS_IS_64_BITMAP(bm1)) in ext2fs_compare_generic_bmap()
628 if ((bm1->start != bm2->start) || in ext2fs_compare_generic_bmap()
629 (bm1->end != bm2->end)) in ext2fs_compare_generic_bmap()
632 for (i = bm1->end - ((bm1->end - bm1->start) % 8); i <= bm1->end; i++) in ext2fs_compare_generic_bmap()
Dbitmaps.c235 errcode_t ext2fs_compare_block_bitmap(ext2fs_block_bitmap bm1, in ext2fs_compare_block_bitmap() argument
239 bm1, bm2)); in ext2fs_compare_block_bitmap()
242 errcode_t ext2fs_compare_inode_bitmap(ext2fs_inode_bitmap bm1, in ext2fs_compare_inode_bitmap() argument
246 bm1, bm2)); in ext2fs_compare_inode_bitmap()
Dext2fs.h895 extern errcode_t ext2fs_compare_block_bitmap(ext2fs_block_bitmap bm1,
897 extern errcode_t ext2fs_compare_inode_bitmap(ext2fs_inode_bitmap bm1,
1427 ext2fs_generic_bitmap bm1,
1462 ext2fs_generic_bitmap bm1,
Dbitops.h189 ext2fs_generic_bitmap bm1,
/third_party/flutter/skia/tests/
DEncodeTest.cpp211 SkBitmap bm0, bm1, bm2; in DEF_TEST() local
213 SkImage::MakeFromEncoded(data1)->asLegacyBitmap(&bm1); in DEF_TEST()
215 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 60)); in DEF_TEST()
216 REPORTER_ASSERT(r, almost_equals(bm1, bm2, 60)); in DEF_TEST()
325 SkBitmap bm0, bm1, bm2; in DEF_TEST() local
327 SkImage::MakeFromEncoded(data1)->asLegacyBitmap(&bm1); in DEF_TEST()
329 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); in DEF_TEST()
424 SkBitmap bm0, bm1, bm2, bm3; in DEF_TEST() local
426 SkImage::MakeFromEncoded(data1)->asLegacyBitmap(&bm1); in DEF_TEST()
429 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); in DEF_TEST()
DImageNewShaderTest.cpp17 static void test_bitmap_equality(skiatest::Reporter* reporter, SkBitmap& bm1, SkBitmap& bm2) { in test_bitmap_equality() argument
18 REPORTER_ASSERT(reporter, bm1.computeByteSize() == bm2.computeByteSize()); in test_bitmap_equality()
19 REPORTER_ASSERT(reporter, 0 == memcmp(bm1.getPixels(), bm2.getPixels(), bm1.computeByteSize())); in test_bitmap_equality()
DImageTest.cpp1242 SkBitmap bm1; in DEF_TEST() local
1243 bm1.allocPixels(SkImageInfo::MakeN32(256, 256, kPremul_SkAlphaType)); in DEF_TEST()
1244 img1->readPixels(bm1.info(), bm1.getPixels(), bm1.rowBytes(), 0, 0); in DEF_TEST()
1246 REPORTER_ASSERT(reporter, equal(bm0, bm1)); in DEF_TEST()
1253 SkBitmap bm1; in DEF_TEST() local
1254 bm1.allocPixels(SkImageInfo::MakeN32(256, 256, kUnpremul_SkAlphaType)); in DEF_TEST()
1255 bm0.readPixels(bm1.info(), bm1.getPixels(), bm1.rowBytes(), 0, 0); in DEF_TEST()
1259 bm1.readPixels(bm2.info(), bm2.getPixels(), bm2.rowBytes(), 0, 0); in DEF_TEST()
DCodecPartialTest.cpp46 static bool compare_bitmaps(skiatest::Reporter* r, const SkBitmap& bm1, const SkBitmap& bm2) { in compare_bitmaps() argument
47 const SkImageInfo& info = bm1.info(); in compare_bitmaps()
54 if (memcmp(bm1.getAddr(0, i), bm2.getAddr(0, i), rowBytes)) { in compare_bitmaps()
DCodecTest.cpp1066 SkBitmap bm1; in check_round_trip() local
1067 bm1.allocPixels(info); in check_round_trip()
1068 SkCodec::Result result = origCodec->getPixels(info, bm1.getPixels(), bm1.rowBytes()); in check_round_trip()
1072 auto data = SkEncodeBitmap(bm1, SkEncodedImageFormat::kPNG, 100); in check_round_trip()
1083 REPORTER_ASSERT(r, md5(bm1) == md5(bm2)); in check_round_trip()
/third_party/skia/tests/
DEncodeTest.cpp213 SkBitmap bm0, bm1, bm2; in DEF_TEST() local
215 SkImage::MakeFromEncoded(data1)->asLegacyBitmap(&bm1); in DEF_TEST()
217 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 60)); in DEF_TEST()
218 REPORTER_ASSERT(r, almost_equals(bm1, bm2, 60)); in DEF_TEST()
327 SkBitmap bm0, bm1, bm2; in DEF_TEST() local
329 SkImage::MakeFromEncoded(data1)->asLegacyBitmap(&bm1); in DEF_TEST()
331 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); in DEF_TEST()
426 SkBitmap bm0, bm1, bm2, bm3; in DEF_TEST() local
428 SkImage::MakeFromEncoded(data1)->asLegacyBitmap(&bm1); in DEF_TEST()
431 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); in DEF_TEST()
DImageNewShaderTest.cpp17 static void test_bitmap_equality(skiatest::Reporter* reporter, SkBitmap& bm1, SkBitmap& bm2) { in test_bitmap_equality() argument
18 REPORTER_ASSERT(reporter, bm1.computeByteSize() == bm2.computeByteSize()); in test_bitmap_equality()
19 REPORTER_ASSERT(reporter, 0 == memcmp(bm1.getPixels(), bm2.getPixels(), bm1.computeByteSize())); in test_bitmap_equality()
DImageTest.cpp1288 SkBitmap bm1; in DEF_TEST() local
1289 bm1.allocPixels(SkImageInfo::MakeN32(256, 256, kPremul_SkAlphaType)); in DEF_TEST()
1290 img1->readPixels(nullptr, bm1.info(), bm1.getPixels(), bm1.rowBytes(), 0, 0); in DEF_TEST()
1292 REPORTER_ASSERT(reporter, equal(bm0, bm1)); in DEF_TEST()
1299 SkBitmap bm1; in DEF_TEST() local
1300 bm1.allocPixels(SkImageInfo::MakeN32(256, 256, kUnpremul_SkAlphaType)); in DEF_TEST()
1301 bm0.readPixels(bm1.info(), bm1.getPixels(), bm1.rowBytes(), 0, 0); in DEF_TEST()
1305 bm1.readPixels(bm2.info(), bm2.getPixels(), bm2.rowBytes(), 0, 0); in DEF_TEST()
DCodecPartialTest.cpp45 static bool compare_bitmaps(skiatest::Reporter* r, const SkBitmap& bm1, const SkBitmap& bm2) { in compare_bitmaps() argument
46 const SkImageInfo& info = bm1.info(); in compare_bitmaps()
53 if (0 != memcmp(bm1.getAddr(0, i), bm2.getAddr(0, i), rowBytes)) { in compare_bitmaps()
DCodecTest.cpp1116 SkBitmap bm1; in check_round_trip() local
1117 bm1.allocPixels(info); in check_round_trip()
1118 SkCodec::Result result = origCodec->getPixels(info, bm1.getPixels(), bm1.rowBytes()); in check_round_trip()
1122 auto data = SkEncodeBitmap(bm1, SkEncodedImageFormat::kPNG, 100); in check_round_trip()
1133 REPORTER_ASSERT(r, md5(bm1) == md5(bm2)); in check_round_trip()
/third_party/boost/boost/math/special_functions/detail/
Dibeta_inverse.hpp722 T bm1 = b - 1; in ibeta_inv_imp() local
727 terms[2] = bm1 / ap1; in ibeta_inv_imp()
729 terms[3] = bm1 * (3 * a * b + 5 * b + a_2 - a - 4) / (2 * (a + 2) * ap1); in ibeta_inv_imp()
731 …terms[4] = bm1 * (33 * a * b_2 + 31 * b_2 + 8 * a_2 * b_2 - 30 * a * b - 47 * b + 11 * a_2 * b + 6… in ibeta_inv_imp()
/third_party/flutter/skia/tools/
DToolUtils.cpp429 bool equal_pixels(const SkBitmap& bm0, const SkBitmap& bm1) { in equal_pixels() argument
431 return bm0.peekPixels(&pm0) && bm1.peekPixels(&pm1) && equal_pixels(pm0, pm1); in equal_pixels()
/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()
/third_party/boost/boost/math/special_functions/
Dbeta.hpp829 T bm1 = b - 1; in beta_small_b_large_a_series() local
830 T t = a + bm1 / 2; in beta_small_b_large_a_series()
901 p[n] += bm1 / boost::math::unchecked_factorial<T>(tnp1); in beta_small_b_large_a_series()
/third_party/e2fsprogs/doc/
Dlibext2fs.texinfo1038 @deftypefun errcode_t ext2fs_compare_block_bitmap (ext2fs_block_bitmap @var{bm1}, ext2fs_block_bitm…
1041 @deftypefun errcode_t ext2fs_compare_inode_bitmap (ext2fs_inode_bitmap @var{bm1}, ext2fs_inode_bitm…