Searched refs:bm (Results 1 - 25 of 405) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/skia/src/image/
H A DSkImagePriv.cpp12 SkImage* SkNewImageFromBitmap(const SkBitmap& bm, bool canSharePixelRef) { argument
13 const SkImageInfo info = bm.info();
19 if (canSharePixelRef || bm.isImmutable()) {
20 image = SkNewImageFromPixelRef(info, bm.pixelRef(), bm.rowBytes());
22 bm.lockPixels();
23 if (bm.getPixels()) {
24 image = SkImage::NewRasterCopy(info, bm.getPixels(), bm.rowBytes());
26 bm
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_bitmask.h69 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,
H A Du_bitmask.c66 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, argument
135 util_bitmask_filled_set(struct util_bitmask *bm, unsigned index) argument
148 util_bitmask_filled_unset(struct util_bitmask *bm, unsigned index) argument
160 util_bitmask_add(struct util_bitmask *bm) argument
198 util_bitmask_set(struct util_bitmask *bm, unsigned index) argument
224 util_bitmask_clear(struct util_bitmask *bm, unsigned index) argument
247 util_bitmask_get(struct util_bitmask *bm, unsigned index) argument
274 util_bitmask_get_next_index(struct util_bitmask *bm, unsigned index) argument
314 util_bitmask_get_first_index(struct util_bitmask *bm) argument
321 util_bitmask_destroy(struct util_bitmask *bm) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_bitmask.h69 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,
H A Du_bitmask.c66 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, argument
135 util_bitmask_filled_set(struct util_bitmask *bm, unsigned index) argument
148 util_bitmask_filled_unset(struct util_bitmask *bm, unsigned index) argument
160 util_bitmask_add(struct util_bitmask *bm) argument
198 util_bitmask_set(struct util_bitmask *bm, unsigned index) argument
224 util_bitmask_clear(struct util_bitmask *bm, unsigned index) argument
247 util_bitmask_get(struct util_bitmask *bm, unsigned index) argument
274 util_bitmask_get_next_index(struct util_bitmask *bm, unsigned index) argument
314 util_bitmask_get_first_index(struct util_bitmask *bm) argument
321 util_bitmask_destroy(struct util_bitmask *bm) argument
[all...]
/external/chromium_org/third_party/skia/tests/
H A DBitmapTest.cpp18 SkBitmap bm; local
19 bm.setInfo(info);
20 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
21 bm.allocPixels();
22 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
23 bm.reset();
24 bm.allocPixels(info);
25 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
27 bm.setInfo(info, explicitRowBytes);
28 REPORTER_ASSERT(reporter, explicitRowBytes == bm
49 SkBitmap bm; local
72 SkBitmap bm; local
[all...]
H A DGifTest.cpp54 SkBitmap bm; local
56 data, size, &bm);
58 REPORTER_ASSERT(r, bm.width() == 1);
59 REPORTER_ASSERT(r, bm.height() == 1);
60 REPORTER_ASSERT(r, !(bm.empty()));
61 if (!(bm.empty())) {
62 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0x00000000);
66 SkBitmap bm; local
68 data, size, &bm);
70 REPORTER_ASSERT(r, bm
88 SkBitmap bm; local
121 SkBitmap bm; local
[all...]
/external/libvorbis/lib/
H A Dbitrate.c29 void vorbis_bitrate_init(vorbis_info *vi,bitrate_manager_state *bm){ argument
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
59 vorbis_bitrate_clear(bitrate_manager_state *bm) argument
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/chromium_org/third_party/skia/gm/
H A Dspritebitmap.cpp12 static void make_bm(SkBitmap* bm) { argument
13 bm->allocN32Pixels(100, 100);
14 bm->eraseColor(SK_ColorBLUE);
16 SkCanvas canvas(*bm);
23 static void draw_2_bitmaps(SkCanvas* canvas, const SkBitmap& bm, bool doClip, argument
30 SkIntToScalar(bm.width()),
31 SkIntToScalar(bm.height()));
40 canvas->drawSprite(bm, dx, dy, &paint);
45 canvas->translate(SkIntToScalar(bm.width() + 20), 0);
51 canvas->drawBitmap(bm, SkIntToScala
78 SkBitmap bm; local
[all...]
H A Dtinybitmap.cpp20 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
48 SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode,
H A DcopyTo4444.cpp34 SkBitmap bm, bm4444; local
36 if (!SkImageDecoder::DecodeFile(pngFilename.c_str(), &bm, kN32_SkColorType,
42 canvas->drawBitmap(bm, 0, 0);
43 SkAssertResult(bm.copyTo(&bm4444, kARGB_4444_SkColorType));
44 canvas->drawBitmap(bm4444, SkIntToScalar(bm.width()), 0);
H A Demboss.cpp15 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, 1
[all...]
/external/skia/gm/
H A Dspritebitmap.cpp12 static void make_bm(SkBitmap* bm) { argument
13 bm->allocN32Pixels(100, 100);
14 bm->eraseColor(SK_ColorBLUE);
16 SkCanvas canvas(*bm);
23 static void draw_2_bitmaps(SkCanvas* canvas, const SkBitmap& bm, bool doClip, argument
30 SkIntToScalar(bm.width()),
31 SkIntToScalar(bm.height()));
40 canvas->drawSprite(bm, dx, dy, &paint);
45 canvas->translate(SkIntToScalar(bm.width() + 20), 0);
51 canvas->drawBitmap(bm, SkIntToScala
78 SkBitmap bm; local
[all...]
H A Dtinybitmap.cpp20 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
48 SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode,
H A Demboss.cpp15 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, 1
[all...]
/external/skia/tests/
H A DBitmapTest.cpp13 SkBitmap bm; local
17 REPORTER_ASSERT(reporter, bm.setInfo(info));
19 REPORTER_ASSERT(reporter, bm.setInfo(info));
28 REPORTER_ASSERT(reporter, !bm.setInfo(info));
38 SkBitmap bm; local
39 bool setConf = bm.setInfo(SkImageInfo::MakeN32Premul(width, height));
42 REPORTER_ASSERT(reporter, bm.allocPixels(NULL));
44 REPORTER_ASSERT(reporter, SkToBool(width & height) != bm.empty());
H A DGifTest.cpp54 SkBitmap bm; local
56 data, size, &bm);
58 REPORTER_ASSERT(r, bm.width() == 1);
59 REPORTER_ASSERT(r, bm.height() == 1);
60 REPORTER_ASSERT(r, !(bm.empty()));
61 if (!(bm.empty())) {
62 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0x00000000);
66 SkBitmap bm; local
68 data, size, &bm);
70 REPORTER_ASSERT(r, bm
88 SkBitmap bm; local
121 SkBitmap bm; local
[all...]
/external/chromium_org/third_party/skia/src/images/
H A DSkImageEncoder.cpp15 bool SkImageEncoder::encodeStream(SkWStream* stream, const SkBitmap& bm, argument
18 return this->onEncode(stream, bm, quality);
21 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, argument
25 return this->onEncode(&stream, bm, quality);
28 SkData* SkImageEncoder::encodeData(const SkBitmap& bm, int quality) { argument
31 if (this->onEncode(&stream, bm, quality)) {
37 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap& bm, Type t, argument
40 return enc.get() && enc.get()->encodeFile(file, bm, quality);
43 bool SkImageEncoder::EncodeStream(SkWStream* stream, const SkBitmap& bm, Type t, argument
46 return enc.get() && enc.get()->encodeStream(stream, bm, qualit
49 EncodeData(const SkBitmap& bm, Type t, int quality) argument
[all...]
/external/clang/test/CodeGen/
H A D2002-09-18-UnionProblem.c13 short __udivmodhi4 (char n1, char bm) { argument
16 if (bm == 0)
22 rr.s.high = bm;
/external/skia/src/images/
H A DSkImageEncoder.cpp15 bool SkImageEncoder::encodeStream(SkWStream* stream, const SkBitmap& bm, argument
18 return this->onEncode(stream, bm, quality);
21 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, argument
25 return this->onEncode(&stream, bm, quality);
28 SkData* SkImageEncoder::encodeData(const SkBitmap& bm, int quality) { argument
31 if (this->onEncode(&stream, bm, quality)) {
37 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap& bm, Type t, argument
40 return enc.get() && enc.get()->encodeFile(file, bm, quality);
43 bool SkImageEncoder::EncodeStream(SkWStream* stream, const SkBitmap& bm, Type t, argument
46 return enc.get() && enc.get()->encodeStream(stream, bm, qualit
49 EncodeData(const SkBitmap& bm, Type t, int quality) argument
[all...]
/external/valgrind/main/drd/
H A Ddrd_bitmap.h343 struct bitmap2* bm2_insert(struct bitmap* const bm, const UWord a1);
379 Bool bm_cache_lookup(struct bitmap* const bm, const UWord a1,
383 tl_assert(bm);
391 if (a1 == bm->cache[0].a1)
393 *bm2 = bm->cache[0].bm2;
398 if (a1 == bm->cache[1].a1)
400 *bm2 = bm->cache[1].bm2;
405 if (a1 == bm->cache[2].a1)
407 *bm2 = bm->cache[2].bm2;
408 bm_cache_rotate(bm
[all...]
/external/chromium_org/third_party/skia/samplecode/
H A DSampleTinyBitmap.cpp24 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;
59 static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) { argument
60 SkAutoLockPixels alp(*bm); // neede
[all...]
/external/skia/samplecode/
H A DSampleTinyBitmap.cpp24 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;
59 static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) { argument
60 SkAutoLockPixels alp(*bm); // neede
[all...]
/external/chromium_org/third_party/skia/src/utils/ios/
H A DSkImageDecoder_iOS.mm19 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode);
24 bool SkImageDecoder_iOS::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) {
32 bm->setInfo(SkImageInfo::MakeN32(width, height, kPremul_SkAlphaType), 0);
37 if (!this->allocPixelRef(bm, NULL)) {
41 bm->lockPixels();
42 bm->eraseColor(0);
45 CGContextRef cg = CGBitmapContextCreate(bm->getPixels(), width, height,
46 8, bm->rowBytes(), cs, BITMAP_INFO);
51 bm->unlockPixels();
/external/skia/src/image/
H A DSkImagePriv.cpp51 SkImage* SkNewImageFromBitmap(const SkBitmap& bm, bool canSharePixelRef) { argument
52 const SkImageInfo info = bm.info();
58 if (canSharePixelRef || bm.isImmutable()) {
59 image = SkNewImageFromPixelRef(info, bm.pixelRef(), bm.rowBytes());
61 bm.lockPixels();
62 if (bm.getPixels()) {
63 image = SkImage::NewRasterCopy(info, bm.getPixels(), bm.rowBytes());
65 bm
[all...]

Completed in 567 milliseconds

1234567891011>>