Home
last modified time | relevance | path

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

/external/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.c609 ext2fs_generic_bitmap_64 bm1 = (ext2fs_generic_bitmap_64) gen_bm1; in ext2fs_compare_generic_bmap() local
613 if (!bm1 || !bm2) in ext2fs_compare_generic_bmap()
615 if (bm1->magic != bm2->magic) in ext2fs_compare_generic_bmap()
619 if (EXT2FS_IS_32_BITMAP(bm1)) in ext2fs_compare_generic_bmap()
620 return ext2fs_compare_generic_bitmap(bm1->magic, neq, in ext2fs_compare_generic_bmap()
623 if (!EXT2FS_IS_64_BITMAP(bm1)) in ext2fs_compare_generic_bmap()
626 if ((bm1->start != bm2->start) || in ext2fs_compare_generic_bmap()
627 (bm1->end != bm2->end)) in ext2fs_compare_generic_bmap()
630 for (i = bm1->end - ((bm1->end - bm1->start) % 8); i <= bm1->end; i++) in ext2fs_compare_generic_bmap()
Dbitmaps.c234 errcode_t ext2fs_compare_block_bitmap(ext2fs_block_bitmap bm1, in ext2fs_compare_block_bitmap() argument
238 bm1, bm2)); in ext2fs_compare_block_bitmap()
241 errcode_t ext2fs_compare_inode_bitmap(ext2fs_inode_bitmap bm1, in ext2fs_compare_inode_bitmap() argument
245 bm1, bm2)); in ext2fs_compare_inode_bitmap()
Dext2fs.h857 extern errcode_t ext2fs_compare_block_bitmap(ext2fs_block_bitmap bm1,
859 extern errcode_t ext2fs_compare_inode_bitmap(ext2fs_inode_bitmap bm1,
1372 ext2fs_generic_bitmap bm1,
1407 ext2fs_generic_bitmap bm1,
Dbitops.h189 ext2fs_generic_bitmap bm1,
/external/skqp/tests/
DEncodeTest.cpp167 SkBitmap bm0, bm1, bm2; in DEF_TEST() local
169 SkImage::MakeFromEncoded(data1)->asLegacyBitmap(&bm1); in DEF_TEST()
171 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 60)); in DEF_TEST()
172 REPORTER_ASSERT(r, almost_equals(bm1, bm2, 60)); in DEF_TEST()
281 SkBitmap bm0, bm1, bm2; in DEF_TEST() local
283 SkImage::MakeFromEncoded(data1)->asLegacyBitmap(&bm1); in DEF_TEST()
285 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); in DEF_TEST()
332 SkBitmap bm0, bm1, bm2, bm3; in DEF_TEST() local
334 SkImage::MakeFromEncoded(data1)->asLegacyBitmap(&bm1); in DEF_TEST()
337 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.cpp1264 SkBitmap bm1; in DEF_TEST() local
1265 bm1.allocPixels(SkImageInfo::MakeN32(256, 256, kPremul_SkAlphaType)); in DEF_TEST()
1266 img1->readPixels(bm1.info(), bm1.getPixels(), bm1.rowBytes(), 0, 0); in DEF_TEST()
1268 REPORTER_ASSERT(reporter, equal(bm0, bm1)); in DEF_TEST()
1275 SkBitmap bm1; in DEF_TEST() local
1276 bm1.allocPixels(SkImageInfo::MakeN32(256, 256, kUnpremul_SkAlphaType)); in DEF_TEST()
1277 bm0.readPixels(bm1.info(), bm1.getPixels(), bm1.rowBytes(), 0, 0); in DEF_TEST()
1281 bm1.readPixels(bm2.info(), bm2.getPixels(), bm2.rowBytes(), 0, 0); in DEF_TEST()
DCodecPartialTest.cpp44 static bool compare_bitmaps(skiatest::Reporter* r, const SkBitmap& bm1, const SkBitmap& bm2) { in compare_bitmaps() argument
45 const SkImageInfo& info = bm1.info(); in compare_bitmaps()
52 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()
1084 md5(bm1, &d1); in check_round_trip()
/external/skia/tests/
DEncodeTest.cpp172 SkBitmap bm0, bm1, bm2; in DEF_TEST() local
174 SkImage::MakeFromEncoded(data1)->asLegacyBitmap(&bm1); in DEF_TEST()
176 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 60)); in DEF_TEST()
177 REPORTER_ASSERT(r, almost_equals(bm1, bm2, 60)); in DEF_TEST()
286 SkBitmap bm0, bm1, bm2; in DEF_TEST() local
288 SkImage::MakeFromEncoded(data1)->asLegacyBitmap(&bm1); in DEF_TEST()
290 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); in DEF_TEST()
385 SkBitmap bm0, bm1, bm2, bm3; in DEF_TEST() local
387 SkImage::MakeFromEncoded(data1)->asLegacyBitmap(&bm1); in DEF_TEST()
390 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.cpp1264 SkBitmap bm1; in DEF_TEST() local
1265 bm1.allocPixels(SkImageInfo::MakeN32(256, 256, kPremul_SkAlphaType)); in DEF_TEST()
1266 img1->readPixels(bm1.info(), bm1.getPixels(), bm1.rowBytes(), 0, 0); in DEF_TEST()
1268 REPORTER_ASSERT(reporter, equal(bm0, bm1)); in DEF_TEST()
1275 SkBitmap bm1; in DEF_TEST() local
1276 bm1.allocPixels(SkImageInfo::MakeN32(256, 256, kUnpremul_SkAlphaType)); in DEF_TEST()
1277 bm0.readPixels(bm1.info(), bm1.getPixels(), bm1.rowBytes(), 0, 0); in DEF_TEST()
1281 bm1.readPixels(bm2.info(), bm2.getPixels(), bm2.rowBytes(), 0, 0); in DEF_TEST()
DCodecPartialTest.cpp44 static bool compare_bitmaps(skiatest::Reporter* r, const SkBitmap& bm1, const SkBitmap& bm2) { in compare_bitmaps() argument
45 const SkImageInfo& info = bm1.info(); in compare_bitmaps()
52 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()
1084 md5(bm1, &d1); in check_round_trip()
/external/golang-protobuf/protoc-gen-go/testdata/imports/
Dtest_import_all.proto55 test.b.part1.M1 bm1 = 5; field
/external/skqp/tools/
Dsk_tool_utils.cpp392 bool equal_pixels(const SkBitmap& bm0, const SkBitmap& bm1) { in equal_pixels() argument
394 return bm0.peekPixels(&pm0) && bm1.peekPixels(&pm1) && equal_pixels(pm0, pm1); in equal_pixels()
/external/skia/tools/
Dsk_tool_utils.cpp393 bool equal_pixels(const SkBitmap& bm0, const SkBitmap& bm1) { in equal_pixels() argument
395 return bm0.peekPixels(&pm0) && bm1.peekPixels(&pm1) && equal_pixels(pm0, pm1); in equal_pixels()
/external/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…