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

1 2 3 4 5 6

  /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/src/images/
SkImageEncoder.cpp 24 bool SkImageEncoder::encodeStream(SkWStream* stream, const SkBitmap& bm,
27 return this->onEncode(stream, bm, quality);
30 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm,
34 return 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);
SkImageDecoder_libgif.cpp 34 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode mode);
147 static bool error_return(GifFileType* gif, const SkBitmap& bm,
151 msg, bm.width(), bm.height(), bm.getPixels(), bm.getColorTable());
156 bool SkGIFImageDecoder::onDecode(SkStream* sk_stream, SkBitmap* bm, Mode mode) {
159 return error_return(gif, *bm, "DGifOpen");
176 return error_return(gif, *bm, "DGifGetRecordType");
182 return error_return(gif, *bm, "IMAGE_DESC_RECORD_TYPE")
    [all...]
SkImageDecoder_libjpeg.cpp 58 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode);
147 const SkBitmap& bm, const char msg[]) {
151 bm.width(), bm.height());
156 bool SkJPEGImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) {
174 return return_false(cinfo, *bm, "setjmp");
189 return return_false(cinfo, *bm, "read_header");
238 bm->setConfig(config, cinfo.image_width, cinfo.image_height);
239 bm->setIsOpaque(true);
261 bm->setConfig(config, smpl.scaledWidth(), smpl.scaledHeight())
    [all...]
SkImageDecoder.cpp 135 bool SkImageDecoder::decode(SkStream* stream, SkBitmap* bm,
149 bm->swap(tmp);
155 bool SkImageDecoder::DecodeFile(const char file[], SkBitmap* bm,
158 SkASSERT(bm);
162 if (SkImageDecoder::DecodeStream(&stream, bm, pref, mode, format)) {
163 bm->pixelRef()->setURI(file);
170 bool SkImageDecoder::DecodeMemory(const void* buffer, size_t size, SkBitmap* bm,
178 return SkImageDecoder::DecodeStream(&stream, bm, pref, mode, format);
181 bool SkImageDecoder::DecodeStream(SkStream* stream, SkBitmap* bm,
184 SkASSERT(bm);
    [all...]
SkImageDecoder_libbmp.cpp 34 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode mode);
83 bool SkBMPImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) {
121 bm->setConfig(config, sampler.scaledWidth(), sampler.scaledHeight());
122 bm->setIsOpaque(true);
127 if (!this->allocPixelRef(bm, NULL)) {
131 SkAutoLockPixels alp(*bm);
133 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGB, getDitherImage())) {
  /external/skia/gm/
bitmapfilters.cpp 5 static void make_bm(SkBitmap* bm) {
11 bm->setConfig(SkBitmap::kIndex8_Config, 2, 2);
12 bm->allocPixels(ctable);
15 *bm->getAddr8(0, 0) = 0;
16 *bm->getAddr8(1, 0) = 1;
17 *bm->getAddr8(0, 1) = 2;
18 *bm->getAddr8(1, 1) = 3;
21 static SkScalar draw_bm(SkCanvas* canvas, const SkBitmap& bm,
23 canvas->drawBitmap(bm, x, y, paint);
24 return SkIntToScalar(bm.width()) * 5/4
    [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/skia/src/utils/mac/
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...]
SkCreateCGImageRef.cpp 16 static SkBitmap* prepareForImageRef(const SkBitmap& bm,
21 switch (bm.config()) {
67 bm.copyTo(copy, SkBitmap::kARGB_8888_Config);
69 copy = new SkBitmap(bm);
76 CGImageRef SkCreateCGImageRef(const SkBitmap& bm) {
80 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info);
  /external/openssl/crypto/bio/
bss_mem.c 146 BUF_MEM *bm; local
150 bm=(BUF_MEM *)b->ptr;
152 ret=(outl > bm->length)?bm->length:outl;
154 memcpy(out,bm->data,ret);
155 bm->length-=ret;
156 /* memmove(&(bm->data[0]),&(bm->data[ret]), bm->length); */
157 if(b->flags & BIO_FLAGS_MEM_RDONLY) bm->data += ret
177 BUF_MEM *bm; local
206 BUF_MEM *bm=(BUF_MEM *)b->ptr; local
283 BUF_MEM *bm=(BUF_MEM *)bp->ptr; local
    [all...]
  /external/skia/src/core/
SkBitmapSampler.cpp 35 SkBitmapSampler::SkBitmapSampler(const SkBitmap& bm, bool filter,
37 : fBitmap(bm), fFilterBitmap(filter), fTileModeX(tmx), fTileModeY(tmy)
39 SkASSERT(bm.width() > 0 && bm.height() > 0);
41 fMaxX = SkToU16(bm.width() - 1);
42 fMaxY = SkToU16(bm.height() - 1);
54 SkNullBitmapSampler(const SkBitmap& bm, bool filter,
56 : SkBitmapSampler(bm, filter, tmx, tmy) {}
86 ARGB32_Bilinear_Sampler(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::TileMode tmy)
87 : SkBitmapSampler(bm, true, tmx, tmy
    [all...]
SkBitmapSamplerTemplate.h 26 BITMAP_CLASSNAME_PREFIX(_Point_Sampler)(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::TileMode tmy)
27 : SkBitmapSampler(bm, false, tmx, tmy)
42 BITMAP_CLASSNAME_PREFIX(_Point_Clamp_Sampler)(const SkBitmap& bm)
43 : SkBitmapSampler(bm, false, SkShader::kClamp_TileMode, SkShader::kClamp_TileMode)
57 BITMAP_CLASSNAME_PREFIX(_Point_Repeat_Pow2_Sampler)(const SkBitmap& bm)
58 : SkBitmapSampler(bm, false, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode)
72 BITMAP_CLASSNAME_PREFIX(_Point_Repeat_Mod_Sampler)(const SkBitmap& bm)
73 : SkBitmapSampler(bm, false, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode)
87 BITMAP_CLASSNAME_PREFIX(_Point_Mirror_Pow2_Sampler)(const SkBitmap& bm)
88 : SkBitmapSampler(bm, false, SkShader::kMirror_TileMode, SkShader::kMirror_TileMode
    [all...]
  /external/webkit/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);
  /frameworks/base/graphics/java/android/graphics/
BitmapFactory.java 267 Bitmap bm = null; local
271 bm = decodeStream(stream, null, opts);
274 If the exception happened on open, bm will be null.
285 return bm;
339 Bitmap bm = null; local
346 bm = decodeResourceStream(res, value, is, null, opts);
349 If the exception happened on open, bm will be null.
350 If it happened on close, bm is still valid.
360 return bm;
444 Bitmap bm; local
538 Bitmap bm = decodeStream(is, outPadding, opts); local
545 Bitmap bm = nativeDecodeFileDescriptor(fd, outPadding, opts); local
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
BitmapFactory.java 266 Bitmap bm = null; local
270 bm = decodeStream(stream, null, opts);
273 If the exception happened on open, bm will be null.
284 return bm;
338 Bitmap bm = null; local
345 bm = decodeResourceStream(res, value, is, null, opts);
348 If the exception happened on open, bm will be null.
349 If it happened on close, bm is still valid.
359 return bm;
446 Bitmap bm; local
    [all...]
  /external/skia/bench/
RepeatTileBench.cpp 13 static void drawIntoBitmap(const SkBitmap& bm) {
14 const int w = bm.width();
15 const int h = bm.height();
17 SkCanvas canvas(bm);
87 SkBitmap bm; local
90 bm.setConfig(SkBitmap::kARGB_8888_Config, w, h);
92 bm.setConfig(c, w, h);
94 bm.allocPixels();
95 bm.eraseColor(0);
97 drawIntoBitmap(bm);
    [all...]
  /frameworks/base/core/java/android/app/
WallpaperManager.java 238 Bitmap bm = BitmapFactory.decodeFileDescriptor( local
244 if (bm != null) {
245 bm.setDensity(DisplayMetrics.DENSITY_DEVICE);
247 return bm;
255 Bitmap bm = BitmapFactory.decodeFileDescriptor( local
262 return generateBitmap(context, bm, width, height);
280 Bitmap bm = BitmapFactory.decodeStream(is, null, null); local
285 if (bm != null) {
286 bm.setDensity(DisplayMetrics.DENSITY_DEVICE);
288 return bm;
296 Bitmap bm = BitmapFactory.decodeStream(is, null, options); local
354 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true); local
373 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false); local
396 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true); local
412 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false); local
    [all...]
  /cts/tests/tests/text/src/android/text/cts/
BoringLayout_MetricsTest.java 42 BoringLayout.Metrics bm = new BoringLayout.Metrics(); local
43 assertNotNull(bm.toString());
  /external/webkit/WebCore/platform/graphics/android/
BitmapAllocatorAndroid.cpp 37 static bool should_use_ashmem(const SkBitmap& bm) {
38 return bm.getSize() >= MIN_ASHMEM_ALLOC_SIZE;
  /frameworks/base/media/tests/omxjpegdecoder/
omx_jpeg_decoder.h 45 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode mode);
51 SkBitmap* bm);
53 SkBitmap* bm);
54 void configBitmapSize(SkBitmap* bm, SkBitmap::Config pref, int width,
omx_jpeg_decoder.cpp 100 SkBitmap* bm, Mode mode) {
107 configBitmapSize(bm, getPrefConfig(k32Bit_SrcDepth, false), width, height);
115 if (!this->allocPixelRef(bm, NULL)) {
121 return decodeSource(decoder, source, bm);
141 const sp<MediaSource>& source, SkBitmap* bm) {
162 installPixelRef(buffer, decoder, bm);*/
164 // Copy pixels from buffer to bm.
165 // May need to check buffer->rawBytes() == bm->rawBytes().
166 CHECK_EQ(buffer->size(), bm->getSize());
167 memcpy(bm->getPixels(), buffer->data(), buffer->size())
    [all...]
  /system/wlan/ti/sta_dk_4_0_4_32/pform/linux/src/
tiwlan_profile.h 47 int tiwlan_profile (tiwlan_net_dev_t * drv, unsigned bm, unsigned par);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
Patterns.java 36 Bitmap bm = Bitmap.createBitmap(40, 40, Bitmap.Config.RGB_565); local
37 Canvas c = new Canvas(bm);
42 return bm;
46 Bitmap bm = Bitmap.createBitmap(64, 64, Bitmap.Config.ARGB_8888); local
47 Canvas c = new Canvas(bm);
52 return bm;
  /external/webkit/WebKit/android/plugins/
SkANP.h 52 explicit ANPCanvas(const SkBitmap& bm) {
53 skcanvas = new SkCanvas(bm);

Completed in 690 milliseconds

1 2 3 4 5 6