HomeSort by relevance Sort by last modified time
    Searched refs:bm (Results 1 - 25 of 409) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/mesa3d/src/gallium/auxiliary/util/
u_bitmask.h 69 util_bitmask_add(struct util_bitmask *bm);
78 util_bitmask_set(struct util_bitmask *bm,
82 util_bitmask_clear(struct util_bitmask *bm,
86 util_bitmask_get(struct util_bitmask *bm,
91 util_bitmask_destroy(struct util_bitmask *bm);
100 util_bitmask_get_first_index(struct util_bitmask *bm);
109 util_bitmask_get_next_index(struct util_bitmask *bm,
u_bitmask.c 66 struct util_bitmask *bm; local
68 bm = MALLOC_STRUCT(util_bitmask);
69 if(!bm)
72 bm->words = (util_bitmask_word *)CALLOC(UTIL_BITMASK_INITIAL_WORDS, sizeof(util_bitmask_word));
73 if(!bm->words) {
74 FREE(bm);
78 bm->size = UTIL_BITMASK_INITIAL_WORDS * UTIL_BITMASK_BITS_PER_WORD;
79 bm->filled = 0;
81 return bm;
89 util_bitmask_resize(struct util_bitmask *bm,
    [all...]
  /external/skia/tests/
ImageFrom565Bitmap.cpp 14 SkBitmap bm; local
15 bm.allocPixels(SkImageInfo::Make(
17 SkAutoLockPixels autoLockPixels(bm);
18 bm.eraseColor(SK_ColorBLACK);
19 REPORTER_ASSERT(r, SkImage::MakeFromBitmap(bm) != nullptr);
BitmapTest.cpp 17 SkBitmap bm; local
20 REPORTER_ASSERT(reporter, !bm.peekPixels(nullptr));
21 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap));
24 bm.setInfo(SkImageInfo::MakeN32Premul(10, 10));
25 REPORTER_ASSERT(reporter, !bm.peekPixels(nullptr));
26 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap));
29 bm.allocPixels(info);
30 REPORTER_ASSERT(reporter, bm.peekPixels(nullptr));
31 REPORTER_ASSERT(reporter, bm.peekPixels(&pmap));
32 REPORTER_ASSERT(reporter, pmap.info() == bm.info())
44 SkBitmap bm; local
57 SkBitmap bm; local
88 SkBitmap bm; local
111 SkBitmap bm; local
152 SkBitmap bm; local
186 SkBitmap bm; local
204 SkBitmap bm; local
    [all...]
image-bitmap.cpp 18 SkBitmap bm, a, b; local
19 bm.allocN32Pixels(32, 64);
20 bm.eraseColor(SK_ColorBLACK);
21 bm.setImmutable();
22 (void)bm.extractSubset(&a, SkIRect::MakeXYWH(0, 0, 32, 32));
23 (void)bm.extractSubset(&b, SkIRect::MakeXYWH(0, 32, 32, 32));
25 auto img = SkImage::MakeFromBitmap(bm);
28 REPORTER_ASSERT(r, img->uniqueID() == bm.getGenerationID());
RectTest.cpp 13 static bool has_green_pixels(const SkBitmap& bm) {
14 for (int j = 0; j < bm.height(); ++j) {
15 for (int i = 0; i < bm.width(); ++i) {
16 if (SkColorGetG(bm.getColor(i, j))) {
26 SkBitmap bm; local
27 bm.allocN32Pixels(100, 10);
28 bm.eraseColor(SK_ColorTRANSPARENT);
30 SkCanvas canvas(bm);
41 REPORTER_ASSERT(reporter, !has_green_pixels(bm));
46 REPORTER_ASSERT(reporter, has_green_pixels(bm));
50 SkBitmap bm; local
    [all...]
BadIcoTest.cpp 40 SkBitmap bm; local
41 bm.allocPixels(codec->getInfo());
42 codec->getPixels(codec->getInfo(), bm.getPixels(),
43 bm.rowBytes());
BitmapGetColorTest.cpp 38 SkBitmap bm; local
40 bm.installPixels(info, storage, info.minRowBytes());
42 bm.eraseColor(initColor);
43 bm.eraseArea(area, gRec[i].fInColor);
45 SkColor c = bm.getColor(1, 1);
GifTest.cpp 57 SkBitmap bm; local
58 bool imageDecodeSuccess = decode_memory(data, size, &bm);
60 REPORTER_ASSERT(r, bm.width() == 1);
61 REPORTER_ASSERT(r, bm.height() == 1);
62 REPORTER_ASSERT(r, !(bm.empty()));
63 if (!(bm.empty())) {
64 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0x00000000);
68 SkBitmap bm; local
69 bool imageDecodeSuccess = decode_memory(data, size, &bm);
71 REPORTER_ASSERT(r, bm.width() == 3)
88 SkBitmap bm; local
98 SkBitmap bm; local
130 SkBitmap bm; local
202 SkBitmap bm; local
258 SkBitmap bm; local
307 SkBitmap bm; local
    [all...]
CodecPriv.h 14 inline bool decode_memory(const void* mem, size_t size, SkBitmap* bm) {
32 bm->allocPixels(codec->getInfo(), nullptr, colorTable.get());
33 const SkCodec::Result result = codec->getPixels(codec->getInfo(), bm->getPixels(),
34 bm->rowBytes(), nullptr, colorPtr, colorCountPtr);
  /packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
BitmapUtils.java 31 * @param bm The bitmap to scale.
36 public static Bitmap scaleBitmap(Bitmap bm, int width, int height) {
37 if (bm == null || (bm.getHeight() == height && bm.getWidth() == width)) {
38 return bm;
42 if (bm.getHeight() > height) {
43 heightScale = (float) height / bm.getHeight();
46 if (bm.getWidth() > width) {
47 widthScale = (float) width / bm.getWidth()
    [all...]
  /external/libvorbis/lib/
bitrate.c 29 void vorbis_bitrate_init(vorbis_info *vi,bitrate_manager_state *bm){
33 memset(bm,0,sizeof(*bm));
39 bm->short_per_long=ci->blocksizes[1]/ci->blocksizes[0];
40 bm->managed=1;
42 bm->avg_bitsper= rint(1.*bi->avg_rate*halfsamples/ratesamples);
43 bm->min_bitsper= rint(1.*bi->min_rate*halfsamples/ratesamples);
44 bm->max_bitsper= rint(1.*bi->max_rate*halfsamples/ratesamples);
46 bm->avgfloat=PACKETBLOBS/2;
52 bm->minmax_reservoir=desired_fill
67 bitrate_manager_state *bm=&b->bms; local
78 bitrate_manager_state *bm=&b->bms; local
232 bitrate_manager_state *bm=&b->bms; local
    [all...]
  /external/skia/gm/
bitmaprecttest.cpp 12 static void make_bm(SkBitmap* bm) {
13 bm->allocN32Pixels(60, 60);
14 bm->eraseColor(0);
16 SkCanvas canvas(*bm);
38 SkBitmap bm; local
39 make_bm(&bm);
41 canvas->drawBitmap(bm, 150, 45, nullptr);
46 canvas->drawBitmapRect(bm, SkRect::MakeXYWH(100, 100, 128, 128), nullptr);
50 canvas->drawBitmap(bm, -310, 45, nullptr);
spritebitmap.cpp 14 static void make_bm(SkBitmap* bm) {
15 bm->allocN32Pixels(100, 100);
16 bm->eraseColor(SK_ColorBLUE);
18 SkCanvas canvas(*bm);
25 static void draw_1_bitmap(SkCanvas* canvas, const SkBitmap& bm, bool doClip,
32 SkIntToScalar(bm.width()),
33 SkIntToScalar(bm.height()));
38 canvas->translate(SkIntToScalar(bm.width() + 20), 0);
44 canvas->drawBitmap(bm, SkIntToScalar(dx), SkIntToScalar(dy), &paint);
68 SkBitmap bm; variable
69 make_bm(&bm); variable
    [all...]
tinybitmap.cpp 20 SkBitmap bm; local
21 bm.allocPixels(SkImageInfo::Make(1, 1, kIndex_8_SkColorType,
26 bm.lockPixels();
27 *bm.getAddr8(0, 0) = 0;
28 bm.unlockPixels();
29 return bm;
46 SkBitmap bm = make_bitmap(); local
49 paint.setShader(SkShader::MakeBitmapShader(bm, SkShader::kRepeat_TileMode,
copyTo4444.cpp 33 SkBitmap bm, bm4444; local
34 if (!GetResourceAsBitmap("mandrill_512.png", &bm)) {
39 canvas->drawBitmap(bm, 0, 0);
40 SkAssertResult(bm.copyTo(&bm4444, kARGB_4444_SkColorType));
41 canvas->drawBitmap(bm4444, SkIntToScalar(bm.width()), 0);
emboss.cpp 15 SkBitmap bm; local
16 bm.allocN32Pixels(100, 100);
18 SkCanvas canvas(bm);
23 return bm;
42 SkBitmap bm = make_bm(); variable
43 canvas->drawBitmap(bm, 10, 10, &paint);
47 canvas->translate(bm.width() + SkIntToScalar(10), 0);
48 canvas->drawBitmap(bm, 10, 10, &paint);
53 canvas->translate(bm.width() + SkIntToScalar(10), 0);
54 canvas->drawBitmap(bm, 10, 10, &paint)
    [all...]
bitmapfilters.cpp 11 static void make_bm(SkBitmap* bm) {
22 bm->allocPixels(SkImageInfo::Make(2, 2, kIndex_8_SkColorType,
27 *bm->getAddr8(0, 0) = 0;
28 *bm->getAddr8(1, 0) = 1;
29 *bm->getAddr8(0, 1) = 2;
30 *bm->getAddr8(1, 1) = 3;
33 static SkScalar draw_bm(SkCanvas* canvas, const SkBitmap& bm,
35 canvas->drawBitmap(bm, x, y, paint);
36 return SkIntToScalar(bm.width()) * 5/4;
39 static SkScalar draw_set(SkCanvas* c, const SkBitmap& bm, SkScalar x
    [all...]
showmiplevels.cpp 23 SkBitmap bm; local
24 bm.allocN32Pixels(w, h);
25 SkCanvas canvas(bm);
32 return bm;
36 SkBitmap bm; local
37 bm.allocN32Pixels(w, h);
38 SkCanvas canvas(bm);
51 return bm;
56 SkBitmap bm; local
57 bm.allocN32Pixels(w, h)
123 SkBitmap bm; local
149 SkBitmap bm = func(prevPM, level.fPixmap); local
268 SkBitmap bm; local
293 SkBitmap bm; local
    [all...]
  /external/clang/test/CodeGen/
2002-09-18-UnionProblem.c 13 short __udivmodhi4 (char n1, char bm) {
16 if (bm == 0)
22 rr.s.high = bm;
  /external/valgrind/drd/
drd_bitmap.h 344 struct bitmap2* bm2_insert(struct bitmap* const bm, const UWord a1);
380 Bool bm_cache_lookup(struct bitmap* const bm, const UWord a1,
384 tl_assert(bm);
392 if (a1 == bm->cache[0].a1)
394 *bm2 = bm->cache[0].bm2;
399 if (a1 == bm->cache[1].a1)
401 *bm2 = bm->cache[1].bm2;
406 if (a1 == bm->cache[2].a1)
408 *bm2 = bm->cache[2].bm2;
409 bm_cache_rotate(bm->cache, 3)
    [all...]
pub_drd_bitmap.h 81 void DRD_(bm_delete)(struct bitmap* const bm);
82 void DRD_(bm_init)(struct bitmap* const bm);
83 void DRD_(bm_cleanup)(struct bitmap* const bm);
84 void DRD_(bm_access_range)(struct bitmap* const bm,
87 void DRD_(bm_access_range_load)(struct bitmap* const bm,
89 void DRD_(bm_access_load_1)(struct bitmap* const bm, const Addr a1);
90 void DRD_(bm_access_load_2)(struct bitmap* const bm, const Addr a1);
91 void DRD_(bm_access_load_4)(struct bitmap* const bm, const Addr a1);
92 void DRD_(bm_access_load_8)(struct bitmap* const bm, const Addr a1);
93 void DRD_(bm_access_range_store)(struct bitmap* const bm,
    [all...]
  /external/skia/samplecode/
SampleTinyBitmap.cpp 24 SkBitmap bm; local
25 bm.allocPixels(SkImageInfo::Make(1, 1, kIndex_8_SkColorType,
30 bm.lockPixels();
31 for (int y = 0; y < bm.height(); y++) {
32 uint8_t* p = bm.getAddr8(0, y);
33 for (int x = 0; x < bm.width(); x++) {
37 bm.unlockPixels();
38 return bm;
58 static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) {
59 SkAutoLockPixels alp(*bm); // needed for ctabl
    [all...]
SampleFilter.cpp 24 static void make_bm(SkBitmap* bm) {
30 bm->allocPixels(SkImageInfo::Make(2, 2, kIndex_8_SkColorType,
35 *bm->getAddr8(0, 0) = 0;
36 *bm->getAddr8(1, 0) = 1;
37 *bm->getAddr8(0, 1) = 2;
38 *bm->getAddr8(1, 1) = 3;
41 static SkScalar draw_bm(SkCanvas* canvas, const SkBitmap& bm,
43 canvas->drawBitmap(bm, x, y, paint);
44 return SkIntToScalar(bm.width()) * 5/4;
47 static SkScalar draw_set(SkCanvas* c, const SkBitmap& bm, SkScalar x, SkPaint* p)
    [all...]
  /external/skia/src/core/
SkBitmapProvider.cpp 31 const SkBitmap* bm = as_IB(fImage)->onPeekBitmap(); local
32 return bm ? bm->isVolatile() : false;
47 bool SkBitmapProvider::asBitmap(SkBitmap* bm) const {
48 return as_IB(fImage)->getROPixels(bm, fDstColorSpace, SkImage::kAllow_CachingHint);

Completed in 1004 milliseconds

1 2 3 4 5 6 7 8 91011>>