Home
last modified time | relevance | path

Searched refs:bm (Results 1 – 25 of 959) sorted by relevance

12345678910>>...39

/third_party/mesa3d/src/gallium/auxiliary/util/
Du_bitmask.c66 struct util_bitmask *bm; in util_bitmask_create() local
68 bm = MALLOC_STRUCT(util_bitmask); in util_bitmask_create()
69 if (!bm) in util_bitmask_create()
72 bm->words = (util_bitmask_word *) in util_bitmask_create()
74 if (!bm->words) { in util_bitmask_create()
75 FREE(bm); in util_bitmask_create()
79 bm->size = UTIL_BITMASK_INITIAL_WORDS * UTIL_BITMASK_BITS_PER_WORD; in util_bitmask_create()
80 bm->filled = 0; in util_bitmask_create()
82 return bm; in util_bitmask_create()
90 util_bitmask_resize(struct util_bitmask *bm, in util_bitmask_resize() argument
[all …]
/third_party/skia/tests/
DBitmapTest.cpp28 SkBitmap bm; in test_peekpixels() local
31 REPORTER_ASSERT(reporter, !bm.peekPixels(nullptr)); in test_peekpixels()
32 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap)); in test_peekpixels()
35 bm.setInfo(SkImageInfo::MakeN32Premul(10, 10)); in test_peekpixels()
36 REPORTER_ASSERT(reporter, !bm.peekPixels(nullptr)); in test_peekpixels()
37 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap)); in test_peekpixels()
40 bm.allocPixels(info); in test_peekpixels()
41 REPORTER_ASSERT(reporter, bm.peekPixels(nullptr)); in test_peekpixels()
42 REPORTER_ASSERT(reporter, bm.peekPixels(&pmap)); in test_peekpixels()
43 REPORTER_ASSERT(reporter, pmap.info() == bm.info()); in test_peekpixels()
[all …]
DGifTest.cpp58 SkBitmap bm; in test_gif_data_no_colormap() local
59 bool imageDecodeSuccess = decode_memory(data, size, &bm); in test_gif_data_no_colormap()
61 REPORTER_ASSERT(r, bm.width() == 1); in test_gif_data_no_colormap()
62 REPORTER_ASSERT(r, bm.height() == 1); in test_gif_data_no_colormap()
63 REPORTER_ASSERT(r, !(bm.empty())); in test_gif_data_no_colormap()
64 if (!(bm.empty())) { in test_gif_data_no_colormap()
65 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0x00000000); in test_gif_data_no_colormap()
69 SkBitmap bm; in test_gif_data() local
70 bool imageDecodeSuccess = decode_memory(data, size, &bm); in test_gif_data()
72 REPORTER_ASSERT(r, bm.width() == 3); in test_gif_data()
[all …]
DNdkDecodeTest.cpp52 SkBitmap bm; in DEF_TEST() local
53 bm.allocPixels(info); in DEF_TEST()
54 REPORTER_ASSERT(r, gen->getPixels(bm.pixmap())); in DEF_TEST()
58 bm.allocPixels(unpremulInfo); in DEF_TEST()
59 REPORTER_ASSERT(r, gen->getPixels(bm.pixmap())); in DEF_TEST()
87 SkBitmap bm; in DEF_TEST() local
88 bm.allocPixels(SkImageInfo::Make(10, 10, kRGBA_F16_SkColorType, kOpaque_SkAlphaType, cs)); in DEF_TEST()
89 bm.eraseColor(SK_ColorBLUE); in DEF_TEST()
94 auto data = SkEncodeBitmap(bm, format, 80); in DEF_TEST()
133 SkBitmap bm; in DEF_TEST() local
[all …]
/third_party/flutter/skia/tests/
DGifTest.cpp58 SkBitmap bm; in test_gif_data_no_colormap() local
59 bool imageDecodeSuccess = decode_memory(data, size, &bm); in test_gif_data_no_colormap()
61 REPORTER_ASSERT(r, bm.width() == 1); in test_gif_data_no_colormap()
62 REPORTER_ASSERT(r, bm.height() == 1); in test_gif_data_no_colormap()
63 REPORTER_ASSERT(r, !(bm.empty())); in test_gif_data_no_colormap()
64 if (!(bm.empty())) { in test_gif_data_no_colormap()
65 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0x00000000); in test_gif_data_no_colormap()
69 SkBitmap bm; in test_gif_data() local
70 bool imageDecodeSuccess = decode_memory(data, size, &bm); in test_gif_data()
72 REPORTER_ASSERT(r, bm.width() == 3); in test_gif_data()
[all …]
DBitmapTest.cpp28 SkBitmap bm; in test_peekpixels() local
31 REPORTER_ASSERT(reporter, !bm.peekPixels(nullptr)); in test_peekpixels()
32 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap)); in test_peekpixels()
35 bm.setInfo(SkImageInfo::MakeN32Premul(10, 10)); in test_peekpixels()
36 REPORTER_ASSERT(reporter, !bm.peekPixels(nullptr)); in test_peekpixels()
37 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap)); in test_peekpixels()
40 bm.allocPixels(info); in test_peekpixels()
41 REPORTER_ASSERT(reporter, bm.peekPixels(nullptr)); in test_peekpixels()
42 REPORTER_ASSERT(reporter, bm.peekPixels(&pmap)); in test_peekpixels()
43 REPORTER_ASSERT(reporter, pmap.info() == bm.info()); in test_peekpixels()
[all …]
/third_party/boost/libs/bimap/test/
Dtest_bimap_info.cpp36 bm_type bm; in test_bimap_info() local
37 const bm_type & cbm = bm; in test_bimap_info()
40 bm .insert( bm_type:: value_type(1.1 , 1, "one" ) ); in test_bimap_info()
41 bm.left .insert( bm_type:: left_value_type(2.2 , 2, "two" ) ); in test_bimap_info()
42 bm.right.insert( bm_type::right_value_type( 3 , 3.3, "three" ) ); in test_bimap_info()
44 bm.begin()->info = "1"; in test_bimap_info()
45 BOOST_TEST( bm.right.find(1)->info == "1" ); in test_bimap_info()
47 bm.left.find(2.2)->info = "2"; in test_bimap_info()
48 BOOST_TEST( bm.right.find(2)->info == "2" ); in test_bimap_info()
50 bm.right.find(3)->info = "3"; in test_bimap_info()
[all …]
Dtest_bimap_project.cpp42 bm_type bm; in test_bimap_project() local
44 bm.insert( bm_type::value_type(1,"1") ); in test_bimap_project()
45 bm.insert( bm_type::value_type(2,"2") ); in test_bimap_project()
47 bm_type:: iterator iter = bm.begin(); in test_bimap_project()
48 bm_type:: left_iterator left_iter = bm.left.find(1); in test_bimap_project()
49 bm_type::right_iterator right_iter = bm.right.begin(); in test_bimap_project()
51 const bm_type & cbm = bm; in test_bimap_project()
59 BOOST_TEST( bm.project_up (bm.end()) == bm.end() ); in test_bimap_project()
60 BOOST_TEST( bm.project_left (bm.end()) == bm.left.end() ); in test_bimap_project()
61 BOOST_TEST( bm.project_right(bm.end()) == bm.right.end() ); in test_bimap_project()
[all …]
Dtest_bimap_unconstrained.cpp32 typedef bimap<int,double,unconstrained_set_of_relation> bm; in test_bimap_unconstrained() typedef
33 bm b; in test_bimap_unconstrained()
34 b.left.insert( bm::left_value_type(2,34.4) ); in test_bimap_unconstrained()
35 b.right.insert( bm::right_value_type(2.2,3) ); in test_bimap_unconstrained()
39 typedef bimap<int,unconstrained_set_of<double> > bm; in test_bimap_unconstrained() typedef
40 bm b; in test_bimap_unconstrained()
41 b.insert( bm::value_type(2,34.4) ); in test_bimap_unconstrained()
46 typedef bimap<unconstrained_set_of<int>, double > bm; in test_bimap_unconstrained() typedef
47 bm b; in test_bimap_unconstrained()
53 typedef bimap<unconstrained_set_of<int>, double, right_based > bm; in test_bimap_unconstrained() typedef
[all …]
Dtest_bimap_mutable.cpp35 bm_type bm; in test_bimap_mutable() local
36 bm.insert( BOOST_DEDUCED_TYPENAME bm_type::value_type(1,0.1) ); in test_bimap_mutable()
38 const bm_type & cbm = bm; in test_bimap_mutable()
43 BOOST_DEDUCED_TYPENAME bm_type::left_iterator iter = bm.left.begin(); in test_bimap_mutable()
45 BOOST_TEST( iter->second == bm.left.begin()->second ); in test_bimap_mutable()
47 BOOST_DEDUCED_TYPENAME bm_type::left_const_iterator citer = bm.left.begin(); in test_bimap_mutable()
48 BOOST_TEST( citer->second == bm.left.begin()->second ); in test_bimap_mutable()
58 BOOST_DEDUCED_TYPENAME bm_type::iterator iter = bm.begin(); in test_bimap_mutable()
60 BOOST_TEST( iter->right == bm.begin()->right ); in test_bimap_mutable()
62 BOOST_DEDUCED_TYPENAME bm_type::const_iterator citer = bm.begin(); in test_bimap_mutable()
[all …]
Dtest_bimap_assign.cpp45 bm_type bm = ba::list_of< bm_type::relation >(1,0.1)(2,0.2)(3,0.3); in test_bimap_assign() local
46 ba::push_back( bm )(4,0.4)(5,0.5); in test_bimap_assign()
47 ba::insert( bm.right )(0.5,5)(0.6,6); in test_bimap_assign()
48 ba::push_back( bm.left )(6,0.6)(7,0.7); in test_bimap_assign()
55 bm_type bm = ba::list_of< bm_type::relation >(1,0.1)(2,0.2)(3,0.3); in test_bimap_assign() local
56 ba::push_front( bm )(4,0.4)(5,0.5); in test_bimap_assign()
57 ba::push_back( bm.right )(0.6,6)(0.7,7); in test_bimap_assign()
58 ba::insert( bm.left )(8,0.8)(9,0.9); in test_bimap_assign()
64 bm_type bm = ba::list_of< bm_type::relation >(1,0.1)(2,0.2)(3,0.3); in test_bimap_assign() local
65 ba::push_back( bm )(4,0.4)(5,0.5); in test_bimap_assign()
[all …]
Dtest_bimap_range.cpp65 bm_type bm; in test_bimap_range() local
66 bm.insert( bm_type::value_type(1.1 , 1) ); in test_bimap_range()
67 bm.insert( bm_type::value_type(2.2 , 2) ); in test_bimap_range()
68 bm.insert( bm_type::value_type(3.3 , 3) ); in test_bimap_range()
69 bm.insert( bm_type::value_type(4.4 , 4) ); in test_bimap_range()
72 for_each( bm.left.range( 1.0 < _key, _key < 5.0 ), in test_bimap_range()
75 for_each( bm.right.range( unbounded, _key <= 2 ), in test_bimap_range()
82 bm_type::left_range_type r = bm.left.range( 2.0 < _key, _key < 4.0 ); in test_bimap_range()
84 BOOST_TEST( boost::begin(r) == bm.left.upper_bound(2.0) ); in test_bimap_range()
85 BOOST_TEST( boost::end(r) == bm.left.lower_bound(4.0) ); in test_bimap_range()
[all …]
/third_party/iowow/src/kv/benchmark/
Dbmbase.c40 } bm = {0}; variable
58 if (bm.val_free) { in _val_dispose()
60 bm.val_free(val->data); in _val_dispose()
87 if (!bm.env_setup) { in _bm_check()
91 if (!bm.db_open) { in _bm_check()
95 if (!bm.db_close) { in _bm_check()
99 if (!bm.db_put) { in _bm_check()
103 if (!bm.db_get) { in _bm_check()
107 if (!bm.db_del) { in _bm_check()
111 if (!bm.db_read_seq) { in _bm_check()
[all …]
/third_party/boost/libs/bimap/example/
Dtutorial_modify_and_replace.cpp36 bm_type bm; in test_replace() local
38 bm.insert( bm_type::value_type(1,"one") ); in test_replace()
42 bm_type::right_iterator it = bm.right.find("one"); in test_replace()
44 bool successful_replace = bm.right.replace_key( it, "1" ); in test_replace()
49 bm.insert( bm_type::value_type(2,"two") ); in test_replace()
53 assert( bm.size() == 2 ); in test_replace()
55 bm_type::left_iterator it = bm.left.find(1); in test_replace()
57 bool successful_replace = bm.left.replace_data( it, "two" ); in test_replace()
61 assert( bm.size() == 2 ); in test_replace()
71 bm_type bm; in test_modify() local
[all …]
Dstep_by_step.cpp34 bm_type bm; in main() local
39 bm.insert( bm_type::value_type(1, "one" ) ); in main()
40 bm.insert( bm_type::value_type(2, "two" ) ); in main()
42 std::cout << "There are " << bm.size() << "relations" << std::endl; in main()
44 for( bm_type::const_iterator iter = bm.begin(), iend = bm.end(); in main()
60 for( left_const_iterator left_iter = bm.left.begin(), iend = bm.left.end(); in main()
71 bm_type::left_const_iterator left_iter = bm.left.find(2); in main()
76 bm.left.insert( bm_type::left_value_type( 3, "three" ) ); in main()
83 bm_type::right_const_iterator right_iter = bm.right.find("two"); in main()
90 assert( bm.right.at("one") == 1 ); in main()
[all …]
Dtutorial_info_hook.cpp46 bm_type bm; in tutorial_about_info_hook() local
48 bm.insert( in tutorial_about_info_hook()
58 std::cout << bm.right.at("The C++ Programming Language"); in tutorial_about_info_hook()
61 bm_type::left_iterator i = bm.left.find("Bjarne Stroustrup"); in tutorial_about_info_hook()
80 std::cout << bm.right.info_at("The C++ Programming Language"); in tutorial_about_info_hook()
102 bm_type bm; in tutorial_about_tagged_info_hook() local
104 bm.insert( in tutorial_about_tagged_info_hook()
113 std::cout << bm.by<title>().at("The C++ Programming Language"); in tutorial_about_tagged_info_hook()
116 bm_type::map_by<author>::iterator i = bm.by<author>().find("Bjarne Stroustrup"); in tutorial_about_tagged_info_hook()
125 std::cout << bm.by<title>().info_at("The C++ Programming Language"); in tutorial_about_tagged_info_hook()
[all …]
Dtutorial_range.cpp36 bm_type bm; in using_upper_and_lower_bound() local
40 bm_type::left_iterator iter_first = bm.left.lower_bound(20); in using_upper_and_lower_bound()
41 bm_type::left_iterator iter_second = bm.left.upper_bound(50); in using_upper_and_lower_bound()
50 bm_type::left_iterator iter_first = bm.left.upper_bound(20); in using_upper_and_lower_bound()
51 bm_type::left_iterator iter_second = bm.left.lower_bound(50); in using_upper_and_lower_bound()
63 bm_type bm; in using_range() local
74 r = bm.left.range( 20 <= _key, _key <= 50 ); // [20,50] in using_range()
76 r = bm.left.range( 20 < _key, _key < 50 ); // (20,50) in using_range()
78 r = bm.left.range( 20 <= _key, _key < 50 ); // [20,50) in using_range()
83 r = bm.left.range( 20 <= _key, unbounded ); // [20,inf) in using_range()
[all …]
/third_party/flutter/skia/gm/
Dshowmiplevels.cpp30 SkBitmap bm; in make_bitmap() local
31 bm.allocN32Pixels(w, h); in make_bitmap()
32 SkCanvas canvas(bm); in make_bitmap()
39 return bm; in make_bitmap()
43 SkBitmap bm; in make_bitmap2() local
44 bm.allocN32Pixels(w, h); in make_bitmap2()
45 SkCanvas canvas(bm); in make_bitmap2()
58 return bm; in make_bitmap2()
62 SkBitmap bm; in make_bitmap3() local
63 bm.allocN32Pixels(w, h); in make_bitmap3()
[all …]
Dspritebitmap.cpp23 static void make_bm(SkBitmap* bm) { in make_bm() argument
24 bm->allocN32Pixels(100, 100); in make_bm()
25 bm->eraseColor(SK_ColorBLUE); in make_bm()
27 SkCanvas canvas(*bm); in make_bm()
34 static void draw_1_bitmap(SkCanvas* canvas, const SkBitmap& bm, bool doClip, in draw_1_bitmap() argument
41 SkIntToScalar(bm.width()), in draw_1_bitmap()
42 SkIntToScalar(bm.height())); in draw_1_bitmap()
47 canvas->translate(SkIntToScalar(bm.width() + 20), 0); in draw_1_bitmap()
53 canvas->drawBitmap(bm, SkIntToScalar(dx), SkIntToScalar(dy), &paint); in draw_1_bitmap()
77 SkBitmap bm; in onDraw() local
[all …]
/third_party/benchmark/test/
Duser_counters_test.cc123 namespace bm = benchmark; in BM_Counters_Rate()
124 state.counters["foo"] = bm::Counter{1, bm::Counter::kIsRate}; in BM_Counters_Rate()
125 state.counters["bar"] = bm::Counter{2, bm::Counter::kIsRate}; in BM_Counters_Rate()
166 namespace bm = benchmark; in BM_Invert()
167 state.counters["foo"] = bm::Counter{0.0001, bm::Counter::kInvert}; in BM_Invert()
168 state.counters["bar"] = bm::Counter{10000, bm::Counter::kInvert}; in BM_Invert()
207 namespace bm = benchmark; in BM_Counters_InvertedRate()
209 bm::Counter{1, bm::Counter::kIsRate | bm::Counter::kInvert}; in BM_Counters_InvertedRate()
211 bm::Counter{8192, bm::Counter::kIsRate | bm::Counter::kInvert}; in BM_Counters_InvertedRate()
291 namespace bm = benchmark; in BM_Counters_AvgThreads()
[all …]
/third_party/skia/gm/
Dspritebitmap.cpp23 static void make_bm(SkBitmap* bm) { in make_bm() argument
24 bm->allocN32Pixels(100, 100); in make_bm()
25 bm->eraseColor(SK_ColorBLUE); in make_bm()
27 SkCanvas canvas(*bm); in make_bm()
34 static void draw_1_bitmap(SkCanvas* canvas, const SkBitmap& bm, bool doClip, in draw_1_bitmap() argument
41 SkIntToScalar(bm.width()), in draw_1_bitmap()
42 SkIntToScalar(bm.height())); in draw_1_bitmap()
47 canvas->translate(SkIntToScalar(bm.width() + 20), 0); in draw_1_bitmap()
53 canvas->drawImage(bm.asImage(), SkIntToScalar(dx), SkIntToScalar(dy), in draw_1_bitmap()
78 SkBitmap bm; in onDraw() local
[all …]
Dalpha_image.cpp22 SkBitmap bm; in make_alpha_image() local
23 bm.allocPixels(SkImageInfo::MakeA8(w, h)); in make_alpha_image()
24 bm.eraseARGB(10, 0, 0 , 0); in make_alpha_image()
25 for (int y = 0; y < bm.height(); ++y) { in make_alpha_image()
26 for (int x = y; x < bm.width(); ++x) { in make_alpha_image()
27 *bm.getAddr8(x, y) = 0xFF; in make_alpha_image()
30 bm.setImmutable(); in make_alpha_image()
31 return bm; in make_alpha_image()
67 SkBitmap bm; variable
68 bm.allocPixels(SkImageInfo::MakeA8(64, 64));
[all …]
/third_party/skia/third_party/externals/harfbuzz/src/
Dtest-bimap.cc33 hb_bimap_t bm; in main() local
35 assert (bm.is_empty () == true); in main()
36 bm.set (1, 4); in main()
37 bm.set (2, 5); in main()
38 bm.set (3, 6); in main()
39 assert (bm.get_population () == 3); in main()
40 assert (bm.has (1) == true); in main()
41 assert (bm.has (4) == false); in main()
42 assert (bm[2] == 5); in main()
43 assert (bm.backward (6) == 3); in main()
[all …]
/third_party/harfbuzz/src/
Dtest-bimap.cc33 hb_bimap_t bm; in main() local
35 assert (bm.is_empty () == true); in main()
36 bm.set (1, 4); in main()
37 bm.set (2, 5); in main()
38 bm.set (3, 6); in main()
39 assert (bm.get_population () == 3); in main()
40 assert (bm.has (1) == true); in main()
41 assert (bm.has (4) == false); in main()
42 assert (bm[2] == 5); in main()
43 assert (bm.backward (6) == 3); in main()
[all …]
/third_party/boost/libs/bimap/example/bimap_and_boost/
Dforeach.cpp41 bm_type bm; in main() local
42 bm.insert( bm_type::value_type("1", 1) ); in main()
43 bm.insert( bm_type::value_type("2", 2) ); in main()
44 bm.insert( bm_type::value_type("3", 4) ); in main()
45 bm.insert( bm_type::value_type("4", 2) ); in main()
47 BOOST_FOREACH( bm_type::left_reference p, bm.left ) in main()
53 BOOST_FOREACH( bm_type::right_const_reference p, bm.right ) in main()
62 BOOST_FOREACH( bm_type::right_reference p, bm.right ) in main()
67 BOOST_FOREACH( bm_type::left_const_reference p, bm.left ) in main()
72 BOOST_FOREACH( bm_type::reference p, bm ) in main()
[all …]

12345678910>>...39