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

1 2 3 4 5 6 7 8 9

  /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...]
  /external/skia/samplecode/
SampleTinyBitmap.cpp 16 SkBitmap bm; local
25 bm.setConfig(SkBitmap::kIndex8_Config, 1, 1);
26 bm.allocPixels(ctable);
29 bm.lockPixels();
30 for (int y = 0; y < bm.height(); y++) {
31 uint8_t* p = bm.getAddr8(0, y);
32 for (int x = 0; x < bm.width(); x++) {
36 bm.unlockPixels();
37 return bm;
58 static void setBitmapOpaque(SkBitmap* bm, bool isOpaque)
    [all...]
SampleFilter.cpp 24 static void make_bm(SkBitmap* bm) {
30 bm->setConfig(SkBitmap::kIndex8_Config, 2, 2);
31 bm->allocPixels(ctable);
34 *bm->getAddr8(0, 0) = 0;
35 *bm->getAddr8(1, 0) = 1;
36 *bm->getAddr8(0, 1) = 2;
37 *bm->getAddr8(1, 1) = 3;
40 static SkScalar draw_bm(SkCanvas* canvas, const SkBitmap& bm,
43 canvas->drawBitmap(bm, x, y, paint);
44 return SkIntToScalar(bm.width()) * 5/4
    [all...]
SampleDitherBitmap.cpp 57 SkBitmap bm; local
65 bm.setConfig(SkBitmap::kIndex8_Config, 256, 32);
66 bm.allocPixels(ctable);
69 bm.lockPixels();
70 for (int y = 0; y < bm.height(); y++) {
71 uint8_t* p = bm.getAddr8(0, y);
76 bm.unlockPixels();
77 return bm;
102 static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) {
103 SkAutoLockPixels alp(*bm); // needed for ctabl
    [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/src/images/
SkImageEncoder.cpp 17 bool SkImageEncoder::encodeStream(SkWStream* stream, const SkBitmap& bm,
20 return this->onEncode(stream, bm, quality);
23 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm,
27 return this->onEncode(&stream, bm, quality);
30 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap& bm, Type t,
33 return enc.get() && enc.get()->encodeFile(file, bm, quality);
36 bool SkImageEncoder::EncodeStream(SkWStream* stream, const SkBitmap& bm, Type t,
39 return enc.get() && enc.get()->encodeStream(stream, bm, quality);
SkImageDecoder_libgif.cpp 26 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode mode);
144 static bool error_return(GifFileType* gif, const SkBitmap& bm,
148 msg, bm.width(), bm.height(), bm.getPixels(), bm.getColorTable());
153 bool SkGIFImageDecoder::onDecode(SkStream* sk_stream, SkBitmap* bm, Mode mode) {
156 return error_return(gif, *bm, "DGifOpen");
173 return error_return(gif, *bm, "DGifGetRecordType");
179 return error_return(gif, *bm, "IMAGE_DESC_RECORD_TYPE")
    [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/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 80 void DRD_(bm_delete)(struct bitmap* const bm);
81 void DRD_(bm_init)(struct bitmap* const bm);
82 void DRD_(bm_cleanup)(struct bitmap* const bm);
83 void DRD_(bm_access_range)(struct bitmap* const bm,
86 void DRD_(bm_access_range_load)(struct bitmap* const bm,
88 void DRD_(bm_access_load_1)(struct bitmap* const bm, const Addr a1);
89 void DRD_(bm_access_load_2)(struct bitmap* const bm, const Addr a1);
90 void DRD_(bm_access_load_4)(struct bitmap* const bm, const Addr a1);
91 void DRD_(bm_access_load_8)(struct bitmap* const bm, const Addr a1);
92 void DRD_(bm_access_range_store)(struct bitmap* const bm,
    [all...]
  /external/skia/gm/
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;
tablecolorfilter.cpp 13 static void make_bm0(SkBitmap* bm) {
16 bm->setConfig(SkBitmap::kARGB_8888_Config, W, H);
17 bm->allocPixels();
18 bm->eraseColor(0);
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(0);
39 SkCanvas canvas(*bm);
113 SkBitmap bm; local
    [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...]
  /external/skia/tests/
DrawBitmapRectTest.cpp 12 static bool check_for_all_zeros(const SkBitmap& bm) {
13 SkAutoLockPixels alp(bm);
15 size_t count = bm.width() * bm.bytesPerPixel();
16 for (int y = 0; y < bm.height(); y++) {
17 const uint8_t* ptr = reinterpret_cast<const uint8_t*>(bm.getAddr(0, y));
30 static void create(SkBitmap* bm, SkBitmap::Config config, SkColor color) {
31 bm->setConfig(config, gWidth, gHeight);
32 bm->allocPixels();
33 bm->eraseColor(color)
    [all...]
BitmapGetColorTest.cpp 31 SkBitmap bm; local
33 bm.setConfig(gRec[i].fConfig, 1, 1);
34 bm.setPixels(storage);
35 bm.eraseColor(gRec[i].fInColor);
37 SkColor c = bm.getColor(0, 0);
DrawPathTest.cpp 14 SkBitmap bm; local
15 bm.setConfig(config, w, h, rb);
17 bm.setPixels(addr);
19 bm.allocPixels();
21 return new SkCanvas(bm);
  /external/skia/include/utils/mac/
SkCGUtils.h 28 SK_API CGImageRef SkCreateCGImageRefWithColorspace(const SkBitmap& bm,
35 static inline CGImageRef SkCreateCGImageRef(const SkBitmap& bm) {
36 return SkCreateCGImageRefWithColorspace(bm, NULL);
  /external/skia/src/gpu/
gr_hello_world.cpp 24 SkBitmap bm; local
26 bm.setConfig(SkBitmap::kARGB_8888_Config, WIDTH, HEIGHT);
27 canvas.setBitmapDevice(bm);
  /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/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/graphics/java/android/graphics/
BitmapFactory.java 297 Bitmap bm = null; local
301 bm = decodeStream(stream, null, opts);
304 If the exception happened on open, bm will be null.
315 return bm;
369 Bitmap bm = null; local
376 bm = decodeResourceStream(res, value, is, null, opts);
379 If the exception happened on open, bm will be null.
380 If it happened on close, bm is still valid.
390 if (bm == null && opts != null && opts.inBitmap != null) {
394 return bm;
426 Bitmap bm = nativeDecodeByteArray(data, offset, length, opts); local
483 Bitmap bm; local
618 Bitmap bm = nativeDecodeFileDescriptor(fd, outPadding, opts); local
    [all...]
  /external/skia/src/core/
SkBitmapSampler.cpp 27 SkBitmapSampler::SkBitmapSampler(const SkBitmap& bm, bool filter,
29 : fBitmap(bm), fFilterBitmap(filter), fTileModeX(tmx), fTileModeY(tmy)
31 SkASSERT(bm.width() > 0 && bm.height() > 0);
33 fMaxX = SkToU16(bm.width() - 1);
34 fMaxY = SkToU16(bm.height() - 1);
46 SkNullBitmapSampler(const SkBitmap& bm, bool filter,
48 : SkBitmapSampler(bm, filter, tmx, tmy) {}
78 ARGB32_Bilinear_Sampler(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::TileMode tmy)
79 : SkBitmapSampler(bm, true, tmx, tmy
    [all...]
SkBitmapSamplerTemplate.h 18 BITMAP_CLASSNAME_PREFIX(_Point_Sampler)(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::TileMode tmy)
19 : SkBitmapSampler(bm, false, tmx, tmy)
34 BITMAP_CLASSNAME_PREFIX(_Point_Clamp_Sampler)(const SkBitmap& bm)
35 : SkBitmapSampler(bm, false, SkShader::kClamp_TileMode, SkShader::kClamp_TileMode)
49 BITMAP_CLASSNAME_PREFIX(_Point_Repeat_Pow2_Sampler)(const SkBitmap& bm)
50 : SkBitmapSampler(bm, false, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode)
64 BITMAP_CLASSNAME_PREFIX(_Point_Repeat_Mod_Sampler)(const SkBitmap& bm)
65 : SkBitmapSampler(bm, false, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode)
79 BITMAP_CLASSNAME_PREFIX(_Point_Mirror_Pow2_Sampler)(const SkBitmap& bm)
80 : SkBitmapSampler(bm, false, SkShader::kMirror_TileMode, SkShader::kMirror_TileMode
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
BitmapFactory_Delegate.java 47 /*package*/ static Bitmap finishDecode(Bitmap bm, Rect outPadding, Options opts) {
48 if (bm == null || opts == null) {
49 return bm;
54 return bm;
57 bm.setDensity(density);
60 return bm;
63 byte[] np = bm.getNinePatchChunk();
69 final Bitmap oldBitmap = bm;
70 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm.getWidth() * scale + 0.5f)
96 Bitmap bm = null; local
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/skia/
PatternSkia.cpp 62 SkBitmap* bm = m_tileImage->nativeImageForCurrentFrame();
64 if (!bm)
68 m_pattern = SkShader::CreateBitmapShader(*bm, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);
86 bm2.setConfig(bm->config(), bm->width() + expandW, bm->height() + expandH);
90 canvas.drawBitmap(*bm, 0, 0);

Completed in 1040 milliseconds

1 2 3 4 5 6 7 8 9