HomeSort by relevance Sort by last modified time
    Searched refs:bm (Results 1 - 25 of 335) 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 20 SkBitmap bm; local
21 bm.setConfig(SkBitmap::kIndex8_Config, 1, 1);
22 bm.allocPixels(ctable);
25 bm.lockPixels();
26 *bm.getAddr8(0, 0) = 0;
27 bm.unlockPixels();
28 return bm;
45 SkBitmap bm = make_bitmap(); local
47 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 34 SkBitmap bm; variable
35 this->setupBitmap(&bm);
43 canvas->drawBitmapMatrix(bm, matrix, &paint);
46 canvas->translate(SkIntToScalar(bm.width() + 5), 0);
48 canvas->drawBitmapMatrix(bm, matrix, &paint);
51 canvas->translate(SkIntToScalar(bm.width()*2 + 5), 0);
53 matrix.setRotate(SkIntToScalar(45), SkIntToScalar(bm.width() / 2),
54 SkIntToScalar(bm.height() / 2));
57 canvas->drawBitmapMatrix(bm, matrix, &paint);
61 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...]
  /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/skia/tests/
BitmapTest.cpp 21 SkBitmap bm; local
22 bool setConf = bm.setConfig(conf, width, height);
25 REPORTER_ASSERT(reporter, bm.allocPixels(NULL));
27 REPORTER_ASSERT(reporter, SkToBool(width & height) != bm.empty());
GifTest.cpp 62 SkBitmap bm; local
64 data, size, &bm);
66 REPORTER_ASSERT(r, bm.width() == 1);
67 REPORTER_ASSERT(r, bm.height() == 1);
68 REPORTER_ASSERT(r, !(bm.empty()));
69 if (!(bm.empty())) {
70 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0x00000000);
74 SkBitmap bm; local
76 data, size, &bm);
78 REPORTER_ASSERT(r, bm.width() == 3)
96 SkBitmap bm; local
129 SkBitmap bm; local
    [all...]
BitmapGetColorTest.cpp 37 SkBitmap bm; local
39 bm.setConfig(gRec[i].fConfig, 2, 2);
40 bm.setPixels(storage);
42 bm.eraseColor(initColor);
43 bm.eraseArea(area, gRec[i].fInColor);
45 SkColor c = bm.getColor(1, 1);
  /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...]
  /external/chromium_org/third_party/skia/src/gpu/
GrSurface.cpp 25 SkBitmap bm; local
26 bm.setConfig(SkBitmap::kARGB_8888_Config, this->width(), this->height());
27 bm.allocPixels();
30 bm.getPixels());
39 if (!SkImageEncoder::EncodeFile(filename, bm, SkImageEncoder::kPNG_Type, 100)) {
  /external/skia/src/gpu/
GrSurface.cpp 25 SkBitmap bm; local
26 bm.setConfig(SkBitmap::kARGB_8888_Config, this->width(), this->height());
27 bm.allocPixels();
30 bm.getPixels());
39 if (!SkImageEncoder::EncodeFile(filename, bm, SkImageEncoder::kPNG_Type, 100)) {
  /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...]

Completed in 1406 milliseconds

1 2 3 4 5 6 7 8 91011>>