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

1 2 3 4 5 6 7 8 91011>>

  /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/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/
spritebitmap.cpp 12 static void make_bm(SkBitmap* bm) {
13 bm->setConfig(SkBitmap::kARGB_8888_Config, 100, 100);
14 bm->allocPixels();
15 bm->eraseColor(SK_ColorBLUE);
17 SkCanvas canvas(*bm);
24 static void draw_2_bitmaps(SkCanvas* canvas, const SkBitmap& bm, bool doClip,
31 SkIntToScalar(bm.width()),
32 SkIntToScalar(bm.height()));
41 canvas->drawSprite(bm, dx, dy, &paint);
46 canvas->translate(SkIntToScalar(bm.width() + 20), 0)
75 SkBitmap bm; local
    [all...]
tinybitmap.cpp 17 SkBitmap bm; local
24 bm.setConfig(SkBitmap::kIndex8_Config, 1, 1);
25 bm.allocPixels(ctable);
28 bm.lockPixels();
29 *bm.getAddr8(0, 0) = 0;
30 bm.unlockPixels();
31 return bm;
48 SkBitmap bm = make_bitmap(); local
50 SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode,
copyTo4444.cpp 32 SkBitmap bm, bm4444; local
35 if (!SkImageDecoder::DecodeFile(filename.c_str(), &bm,
42 canvas->drawBitmap(bm, 0, 0);
43 SkAssertResult(bm.copyTo(&bm4444, SkBitmap::kARGB_4444_Config));
44 canvas->drawBitmap(bm4444, SkIntToScalar(bm.width()), 0);
bitmaprecttest.cpp 11 static void make_bm(SkBitmap* bm) {
12 bm->setConfig(SkBitmap::kARGB_8888_Config, 60, 60);
13 bm->allocPixels();
14 bm->eraseColor(0);
16 SkCanvas canvas(*bm);
38 SkBitmap bm; local
39 make_bm(&bm);
41 canvas->drawBitmap(bm, 150, 45, NULL);
46 canvas->drawBitmapRectToRect(bm, NULL, SkRect::MakeXYWH(100, 100, 128, 128), NULL);
50 canvas->drawBitmap(bm, -310, 45, NULL)
    [all...]
bitmapmatrix.cpp 33 SkBitmap bm; variable
34 this->setupBitmap(&bm);
42 canvas->drawBitmapMatrix(bm, matrix, &paint);
45 canvas->translate(SkIntToScalar(bm.width() + 5), 0);
47 canvas->drawBitmapMatrix(bm, matrix, &paint);
50 canvas->translate(SkIntToScalar(bm.width()*2 + 5), 0);
52 matrix.setRotate(SkIntToScalar(45), SkIntToScalar(bm.width() / 2),
53 SkIntToScalar(bm.height() / 2));
56 canvas->drawBitmapMatrix(bm, matrix, &paint);
60 canvas->translate(SkIntToScalar(bm.width() + 15), 0)
    [all...]
tablecolorfilter.cpp 13 static void make_bm0(SkBitmap* bm) {
16 bm->setConfig(SkBitmap::kARGB_8888_Config, W, H);
17 bm->allocPixels();
18 bm->eraseColor(SK_ColorTRANSPARENT);
20 SkCanvas canvas(*bm);
32 static void make_bm1(SkBitmap* bm) {
35 bm->setConfig(SkBitmap::kARGB_8888_Config, W, H);
36 bm->allocPixels();
37 bm->eraseColor(SK_ColorTRANSPARENT);
39 SkCanvas canvas(*bm);
113 SkBitmap bm; local
    [all...]
verylargebitmap.cpp 12 static void make_bm(SkBitmap* bm, int width, int height, SkColor color) {
13 bm->setConfig(SkBitmap::kARGB_8888_Config, width, height);
14 bm->allocPixels();
15 bm->eraseColor(color);
16 bm->setImmutable();
20 SkBitmap bm; local
21 make_bm(&bm, width, height, color);
34 canvas->drawBitmap(bm, 0, 0, NULL);
40 canvas->drawBitmapRect(bm, &ir, r, NULL);
45 canvas->drawBitmapRect(bm, NULL, r, NULL)
    [all...]
bitmapfilters.cpp 12 static void make_bm(SkBitmap* bm) {
23 bm->setConfig(SkBitmap::kIndex8_Config, 2, 2);
24 bm->allocPixels(ctable);
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
    [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->config()) {
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...]
  /cts/tests/tests/text/src/android/text/cts/
BoringLayout_MetricsTest.java 25 BoringLayout.Metrics bm = new BoringLayout.Metrics(); local
26 assertNotNull(bm.toString());
  /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 342 struct bitmap2* bm2_insert(struct bitmap* const bm, const UWord a1);
378 Bool bm_cache_lookup(struct bitmap* const bm, const UWord a1,
382 tl_assert(bm);
390 if (a1 == bm->cache[0].a1)
392 *bm2 = bm->cache[0].bm2;
397 if (a1 == bm->cache[1].a1)
399 *bm2 = bm->cache[1].bm2;
404 if (a1 == bm->cache[2].a1)
406 *bm2 = bm->cache[2].bm2;
407 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...]
  /development/ide/xcode/ports/
SkBitmap_Mac.cpp 13 static void convertGL32_to_Mac32(uint32_t dst[], const SkBitmap& bm) {
14 memcpy(dst, bm.getPixels(), bm.getSize());
17 uint32_t* stop = dst + (bm.getSize() >> 2);
18 const uint8_t* src = (const uint8_t*)bm.getPixels();
25 static void convert565_to_32(uint32_t dst[], const SkBitmap& bm) {
26 for (int y = 0; y < bm.height(); y++) {
27 const uint16_t* src = bm.getAddr16(0, y);
28 const uint16_t* stop = src + bm.width();
67 static CGImageRef bitmap2imageref(const SkBitmap& bm) {
118 SkBitmap bm; local
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/bio/
bss_mem.c 148 BUF_MEM *bm; local
150 bm=(BUF_MEM *)b->ptr;
152 ret=(outl >=0 && (size_t)outl > bm->length)?(int)bm->length:outl;
154 memcpy(out,bm->data,ret);
155 bm->length-=ret;
156 if(b->flags & BIO_FLAGS_MEM_RDONLY) bm->data += ret;
158 memmove(&(bm->data[0]),&(bm->data[ret]),bm->length)
173 BUF_MEM *bm; local
202 BUF_MEM *bm=(BUF_MEM *)b->ptr; local
279 BUF_MEM *bm=(BUF_MEM *)bp->ptr; local
    [all...]
  /external/openssl/crypto/bio/
bss_mem.c 148 BUF_MEM *bm; local
150 bm=(BUF_MEM *)b->ptr;
152 ret=(outl >=0 && (size_t)outl > bm->length)?(int)bm->length:outl;
154 memcpy(out,bm->data,ret);
155 bm->length-=ret;
156 if(b->flags & BIO_FLAGS_MEM_RDONLY) bm->data += ret;
158 memmove(&(bm->data[0]),&(bm->data[ret]),bm->length)
173 BUF_MEM *bm; local
202 BUF_MEM *bm=(BUF_MEM *)b->ptr; local
279 BUF_MEM *bm=(BUF_MEM *)bp->ptr; local
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
BitmapFactory_Delegate.java 50 /*package*/ static Bitmap finishDecode(Bitmap bm, Rect outPadding, Options opts) {
51 if (bm == null || opts == null) {
52 return bm;
57 return bm;
60 bm.setDensity(density);
63 return bm;
66 byte[] np = bm.getNinePatchChunk();
72 final Bitmap oldBitmap = bm;
73 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm.getWidth() * scale + 0.5f)
99 Bitmap bm = null; local
    [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->setConfig(SkBitmap::kARGB_8888_Config, width, height);
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();

Completed in 866 milliseconds

1 2 3 4 5 6 7 8 91011>>