Searched refs:bm (Results 101 - 125 of 228) sorted by relevance

12345678910

/external/skia/bench/
H A DBitmapRectBench.cpp16 static void draw_into_bitmap(const SkBitmap& bm) { argument
17 const int w = bm.width();
18 const int h = bm.height();
20 SkCanvas canvas(bm);
H A DRepeatTileBench.cpp17 static void draw_into_bitmap(const SkBitmap& bm) { argument
18 const int w = bm.width();
19 const int h = bm.height();
21 SkCanvas canvas(bm);
/external/skia/samplecode/
H A DSampleEncode.cpp29 static void make_image(SkBitmap* bm, SkColorType ct, int configIndex) { argument
47 bm->swap(device);
50 bm->allocPixels(info);
53 *bm->getAddr16(x, y) = SkPixel32ToPixel16(*device.getAddr32(x, y));
68 bm->allocPixels(info, NULL, ctable);
72 *bm->getAddr8(x, y) = SkGetPackedR32(*device.getAddr32(x, y));
188 SkBitmap bm; local
196 if (!SkInstallDiscardablePixelRef(encoded, &bm)) {
200 canvas->drawBitmap(bm, x, yy);
H A DSampleVertices.cpp29 SkBitmap bm; local
33 bm.allocN32Pixels(size->fX, size->fY);
34 bm.eraseColor(color0);
35 bm.lockPixels();
36 uint32_t* pixels = (uint32_t*) bm.getPixels();
39 bm.unlockPixels();
41 return SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode,
H A DSampleAAClip.cpp44 SkBitmap bm; local
49 bm.installMaskPixels(mask);
52 canvas->drawBitmap(bm,
H A DSampleUnpremul.cpp125 SkBitmap bm; variable
126 bm.allocN32Pixels(fBitmap.width(), fBitmap.height());
129 *bm.getAddr32(i, j) = premultiply_unpmcolor(*fBitmap.getAddr32(i, j));
132 canvas->drawBitmap(bm, 0, 0);
/external/skia/tests/
H A DSkResourceCacheTest.cpp109 SkBitmap bm; local
116 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedID, rect, &bm, cache));
119 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedID, rect, &bm, cache));
122 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedID, rect, &bm, cache));
126 REPORTER_ASSERT(reporter, SkBitmapCache::Find(cachedID, rect, &bm, cache));
256 SkBitmap bm; local
261 REPORTER_ASSERT(reporter, SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache));
264 REPORTER_ASSERT(reporter, SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache));
265 bm.unlockPixels();
274 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cach
[all...]
H A DPDFJpegEmbedTest.cpp20 SkBitmap bm; local
21 SkInstallDiscardablePixelRef(data, &bm);
22 return bm;
/external/skia/gm/
H A Ddownsamplebitmap.cpp17 static void make_checker(SkBitmap* bm, int size, int numChecks) { argument
18 bm->allocN32Pixels(size, size);
21 SkPMColor* s = bm->getAddr32(x, y);
231 SkBitmap bm; variable
232 bm.installPixels(info, level.fPixels, level.fRowBytes, NULL,
234 bm.setImmutable();
235 canvas->drawBitmap(bm, x, y, NULL);
236 y += bm.height() + 4;
H A Dimagefiltersbase.cpp161 SkBitmap bm; local
162 bm.allocN32Pixels(bounds.width(), bounds.height());
163 bm.eraseColor(SK_ColorTRANSPARENT);
164 SkCanvas c(bm);
167 canvas->drawBitmap(bm, 0, 0, &paint);
177 SkBitmap bm; local
178 bm.allocN32Pixels(bounds.width(), bounds.height());
179 bm.eraseColor(SK_ColorTRANSPARENT);
180 SkCanvas c(bm);
185 canvas->drawSprite(bm,
[all...]
H A Dshadertext.cpp14 static void makebm(SkBitmap* bm, int w, int h) { argument
15 bm->allocN32Pixels(w, h);
16 bm->eraseColor(SK_ColorTRANSPARENT);
18 SkCanvas canvas(*bm);
136 SkBitmap bm; variable
137 makebm(&bm, w/16, h/4);
140 shaders[shdIdx++] = SkShader::CreateBitmapShader(bm, tileModes[tx], tileModes[ty]);
H A Dtilemodes.cpp21 static void makebm(SkBitmap* bm, SkColorType ct, int w, int h) { argument
22 bm->allocPixels(SkImageInfo::Make(w, h, ct, kPremul_SkAlphaType));
23 bm->eraseColor(SK_ColorTRANSPARENT);
25 SkCanvas canvas(*bm);
37 static void setup(SkPaint* paint, const SkBitmap& bm, bool filter, argument
39 SkShader* shader = SkShader::CreateBitmapShader(bm, tmx, tmy);
162 SkBitmap bm; local
163 makebm(&bm, kN32_SkColorType, gWidth, gHeight);
164 return SkShader::CreateBitmapShader(bm, tx, ty);
H A Dtilemodes_scaled.cpp22 static void makebm(SkBitmap* bm, SkColorType ct, int w, int h) { argument
23 bm->allocPixels(SkImageInfo::Make(w, h, ct, kPremul_SkAlphaType));
24 bm->eraseColor(SK_ColorTRANSPARENT);
26 SkCanvas canvas(*bm);
38 static void setup(SkPaint* paint, const SkBitmap& bm, SkFilterQuality filter_level, argument
40 SkShader* shader = SkShader::CreateBitmapShader(bm, tmx, tmy);
174 SkBitmap bm; local
175 makebm(&bm, kN32_SkColorType, gWidth, gHeight);
176 return SkShader::CreateBitmapShader(bm, tx, ty);
H A Dblurrect.cpp226 SkBitmap bm; local
227 bm.installMaskPixels(mask);
229 if (cur_x + bm.width() >= fGMWidth - fMargin) {
237 canvas->translate(-(bm.width() - r.width())/2, -(bm.height()-r.height())/2);
238 canvas->drawBitmap(bm, 0.f, 0.f, NULL);
241 cur_x += bm.width() + fPadding;
242 if (bm.height() > max_height)
243 max_height = bm.height();
310 SkBitmap bm; local
[all...]
H A Dshadertext3.cpp14 static void makebm(SkBitmap* bm, int w, int h) { argument
15 bm->allocN32Pixels(w, h);
16 bm->eraseColor(SK_ColorTRANSPARENT);
18 SkCanvas canvas(*bm);
/external/skia/src/utils/
H A DSkPaintFilterCanvas.cpp70 void SkPaintFilterCanvas::onDrawBitmap(const SkBitmap& bm, SkScalar left, SkScalar top, argument
73 this->INHERITED::onDrawBitmap(bm, left, top, apf.paint());
76 void SkPaintFilterCanvas::onDrawBitmapRect(const SkBitmap& bm, const SkRect* src, const SkRect& dst, argument
79 this->INHERITED::onDrawBitmapRect(bm, src, dst, apf.paint(), flags);
94 void SkPaintFilterCanvas::onDrawBitmapNine(const SkBitmap& bm, const SkIRect& center, argument
97 this->INHERITED::onDrawBitmapNine(bm, center, dst, apf.paint());
100 void SkPaintFilterCanvas::onDrawSprite(const SkBitmap& bm, int left, int top, argument
103 this->INHERITED::onDrawSprite(bm, left, top, apf.paint());
/external/skia/tools/
H A Dpicture_utils.cpp54 bool write_bitmap_to_disk(const SkBitmap& bm, const SkString& dirPath, argument
64 if (SkImageEncoder::EncodeFile(fullPath.c_str(), bm, SkImageEncoder::kPNG_Type, 100)) {
/external/valgrind/drd/
H A Ddrd_segment.h60 struct bitmap bm; member in struct:segment
97 return &sg->bm;
/external/skia/src/core/
H A DSkBitmapHeap.h212 LookupEntry(const SkBitmap& bm) argument
213 : fGenerationId(bm.getGenerationID())
214 , fPixelOrigin(bm.pixelRefOrigin())
215 , fWidth(bm.width())
216 , fHeight(bm.height())
/external/skia/src/images/
H A DSkImageDecoder_libwebp.cpp108 Result onDecode(SkStream* stream, SkBitmap* bm, Mode) override;
159 static void print_webp_error(const SkBitmap& bm, const char msg[]) { argument
160 SkDEBUGF(("libwebp error %s [%d %d]", msg, bm.width(), bm.height()));
163 static bool return_false(const SkBitmap& bm, const char msg[]) { argument
164 print_webp_error(bm, msg);
168 static SkImageDecoder::Result return_failure(const SkBitmap& bm, const char msg[]) { argument
169 print_webp_error(bm, msg);
586 bool onEncode(SkWStream* stream, const SkBitmap& bm, int quality) override;
592 bool SkWEBPImageEncoder::onEncode(SkWStream* stream, const SkBitmap& bm, argument
[all...]
H A DSkDecodingImageGenerator.cpp67 virtual bool allocPixelRef(SkBitmap* bm, SkColorTable* ct) { argument
68 if (NULL == fTarget || !equal_modulo_alpha(fInfo, bm->info())) {
70 return bm->tryAllocPixels(NULL, ct);
76 bm->installPixels(fInfo, fTarget, fRowBytes, ct, NULL, NULL);
179 SkBitmap bm; local
181 bool copySuccess = bitmap.copyTo(&bm, info.colorType(), &allocator);
187 SkASSERT(check_alpha(info.alphaType(), bm.alphaType()));
/external/libvncserver/x11vnc/
H A Dlinuxfb.c187 unsigned long rm = 0, gm = 0, bm = 0; local
195 bm = (1 << var_info.blue.length) - 1;
198 bm = bm << var_info.blue.offset;
200 if (b == 8 && rm == 0xff && gm == 0xff && bm == 0xff) {
204 bm = 0xc0;
206 if (b <= 8 && (rm == gm && gm == bm)) {
210 bm = 0xc0;
217 w, h, b, rm, gm, bm);
/external/iptables/extensions/
H A Dlibipt_NETMAP.c35 uint32_t bm; local
39 for (bits = 0, bm = 0x80000000; netmask & bm; netmask <<= 1)
/external/skia/src/views/
H A DSkParsePaint.cpp47 SkBitmap bm;
49 if (SkImageDecoder::DecodeFile(str, &bm))
57 return SkShader::CreateBitmapShader(bm, mode, mode);
H A DSkProgressView.cpp111 SkBitmap bm; local
113 return SkImageDecoder::DecodeFile(file, &bm) ?
114 SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode) :

Completed in 2358 milliseconds

12345678910