/external/chromium_org/third_party/skia/src/image/ |
SkImagePriv.cpp | 12 SkImage* SkNewImageFromBitmap(const SkBitmap& bm, bool canSharePixelRef) { 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.unlockPixels() [all...] |
/external/chromium_org/third_party/mesa/src/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/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/chromium_org/third_party/skia/tests/ |
BitmapTest.cpp | 18 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.rowBytes()) 49 SkBitmap bm; local 72 SkBitmap bm; local [all...] |
GifTest.cpp | 54 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.width() == 3) 88 SkBitmap bm; local 121 SkBitmap bm; local [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...] |
/frameworks/base/native/graphics/jni/ |
bitmap.cpp | 26 SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap); local 27 if (NULL == bm) { 32 info->width = bm->width(); 33 info->height = bm->height(); 34 info->stride = bm->rowBytes(); 37 switch (bm->colorType()) { 63 SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap); local 64 if (NULL == bm) { 68 bm->lockPixels(); 69 void* addr = bm->getPixels() 86 SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap); local [all...] |
/external/chromium_org/third_party/skia/gm/ |
spritebitmap.cpp | 12 static void make_bm(SkBitmap* bm) { 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, 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, SkIntToScalar(dx), SkIntToScalar(dy), &paint) 78 SkBitmap bm; local [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 48 SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode,
|
copyTo4444.cpp | 34 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);
|
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...] |
/external/skia/gm/ |
spritebitmap.cpp | 12 static void make_bm(SkBitmap* bm) { 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, 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, SkIntToScalar(dx), SkIntToScalar(dy), &paint) 78 SkBitmap bm; local [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 48 SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode,
|
/cts/tests/tests/text/src/android/text/cts/ |
BoringLayout_MetricsTest.java | 25 BoringLayout.Metrics bm = new BoringLayout.Metrics(); local 26 assertNotNull(bm.toString());
|
/external/skia/tests/ |
BitmapTest.cpp | 13 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());
|
GifTest.cpp | 54 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.width() == 3) 88 SkBitmap bm; local 121 SkBitmap bm; local [all...] |
/external/chromium_org/third_party/skia/src/images/ |
SkImageEncoder.cpp | 15 bool SkImageEncoder::encodeStream(SkWStream* stream, const SkBitmap& bm, 18 return this->onEncode(stream, bm, quality); 21 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, 25 return this->onEncode(&stream, bm, quality); 28 SkData* SkImageEncoder::encodeData(const SkBitmap& bm, int quality) { 31 if (this->onEncode(&stream, bm, quality)) { 37 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap& bm, Type t, 40 return enc.get() && enc.get()->encodeFile(file, bm, quality); 43 bool SkImageEncoder::EncodeStream(SkWStream* stream, const SkBitmap& bm, Type t, 46 return enc.get() && enc.get()->encodeStream(stream, bm, quality) [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/skia/src/images/ |
SkImageEncoder.cpp | 15 bool SkImageEncoder::encodeStream(SkWStream* stream, const SkBitmap& bm, 18 return this->onEncode(stream, bm, quality); 21 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, 25 return this->onEncode(&stream, bm, quality); 28 SkData* SkImageEncoder::encodeData(const SkBitmap& bm, int quality) { 31 if (this->onEncode(&stream, bm, quality)) { 37 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap& bm, Type t, 40 return enc.get() && enc.get()->encodeFile(file, bm, quality); 43 bool SkImageEncoder::EncodeStream(SkWStream* stream, const SkBitmap& bm, Type t, 46 return enc.get() && enc.get()->encodeStream(stream, bm, quality) [all...] |
/external/valgrind/main/drd/ |
drd_bitmap.h | 343 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->cache, 3) [all...] |
/external/chromium_org/third_party/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; 59 static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) { 60 SkAutoLockPixels alp(*bm); // needed for ctabl [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; 59 static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) { 60 SkAutoLockPixels alp(*bm); // needed for ctabl [all...] |
/external/chromium_org/third_party/skia/src/utils/ios/ |
SkImageDecoder_iOS.mm | 19 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();
|