Home
last modified time | relevance | path

Searched refs:bmp (Results 1 – 25 of 77) sorted by relevance

1234

/external/skia/bench/
DWritePixelsBench.cpp53 SkBitmap bmp; in onDraw() local
54 bmp.allocN32Pixels(size.width(), size.height()); in onDraw()
55 canvas->readPixels(&bmp, 0, 0); in onDraw()
57 SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), fColorType, fAlphaType); in onDraw()
60 canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0); in onDraw()
DnanobenchAndroid.cpp54 bool HWUITarget::capturePixels(SkBitmap* bmp) { in capturePixels() argument
55 return this->renderer.capturePixels(bmp); in capturePixels()
/external/skia/tests/
DShaderOpacityTest.cpp16 SkBitmap bmp; in test_bitmap() local
17 bmp.setInfo(info); in test_bitmap()
20 SkShader* shader = SkShader::CreateBitmapShader(bmp, in test_bitmap()
27 bmp.allocPixels(info); in test_bitmap()
30 shader = SkShader::CreateBitmapShader(bmp, in test_bitmap()
37 bmp.setAlphaType(kOpaque_SkAlphaType); in test_bitmap()
38 shader = SkShader::CreateBitmapShader(bmp, in test_bitmap()
45 bmp.setAlphaType(kPremul_SkAlphaType); in test_bitmap()
46 shader = SkShader::CreateBitmapShader(bmp, in test_bitmap()
DReadPixelsTest.cpp97 static SkBitmap bmp; in fillCanvas() local
98 if (bmp.isNull()) { in fillCanvas()
99 bmp.allocN32Pixels(DEV_W, DEV_H); in fillCanvas()
100 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels()); in fillCanvas()
103 …SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixe… in fillCanvas()
113 canvas->drawBitmap(bmp, 0, 0, &paint); in fillCanvas()
344 SkBitmap bmp; in DEF_GPUTEST() local
345 init_bitmap(&bmp, srcRect, bmi, in DEF_GPUTEST()
350 bool startsWithPixels = !bmp.isNull(); in DEF_GPUTEST()
352 fillBitmap(&bmp); in DEF_GPUTEST()
[all …]
DPremulAlphaRoundTripTest.cpp51 SkBitmap bmp; in fillCanvas() local
52 bmp.allocN32Pixels(256, 256); in fillCanvas()
55 uint32_t* pixels = bmp.getAddr32(0, a); in fillCanvas()
61 const SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), in fillCanvas()
63 canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0); in fillCanvas()
DWritePixelsTest.cpp116 SkBitmap bmp; in fillCanvas() local
117 if (bmp.isNull()) { in fillCanvas()
118 bmp.allocN32Pixels(DEV_W, DEV_H); in fillCanvas()
121 *bmp.getAddr32(x, y) = getCanvasColor(x, y); in fillCanvas()
130 canvas->drawBitmap(bmp, 0, 0, &paint); in fillCanvas()
456 SkBitmap bmp; in DEF_GPUTEST() local
457 REPORTER_ASSERT(reporter, setup_bitmap(&bmp, ct, at, rect.width(), in DEF_GPUTEST()
462 canvas.writePixels(bmp, rect.fLeft, rect.fTop); in DEF_GPUTEST()
465 REPORTER_ASSERT(reporter, check_write(reporter, &canvas, bmp, in DEF_GPUTEST()
471 bmp.width(), bmp.height()); in DEF_GPUTEST()
/external/skia/gm/
Dtallstretchedbitmaps.cpp82 SkBitmap bmp = fTallBmps[i].fBmp; in onDraw() local
85 int itemHeight = bmp.height() / fTallBmps[i].fItemCnt; in onDraw()
87 bmp.width(), bmp.height()); in onDraw()
88 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(bmp.width()), 10.f * itemHeight); in onDraw()
91 canvas->drawBitmapRect(bmp, &subRect, dstRect, &paint); in onDraw()
92 canvas->translate(SkIntToScalar(bmp.width() + 10), 0); in onDraw()
Dclippedbitmapshaders.cpp29 SkBitmap bmp; in create_bitmap() local
30 bmp.allocN32Pixels(2, 2); in create_bitmap()
31 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels()); in create_bitmap()
37 return bmp; in create_bitmap()
80 SkBitmap bmp = create_bitmap(); in onDraw() local
86 bmp, fMode, fMode, &s); in onDraw()
Dbigmatrix.cpp61 SkBitmap bmp; in onDraw() local
62 bmp.allocN32Pixels(2, 2); in onDraw()
63 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels()); in onDraw()
74 bmp, in onDraw()
Dgm.cpp74 SkBitmap bmp; in drawGpuOnlyMessage() local
75 bmp.allocN32Pixels(128, 64); in drawGpuOnlyMessage()
76 SkCanvas bmpCanvas(bmp); in drawGpuOnlyMessage()
87 SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(bmp, SkShader::kMirror_TileMode, in drawGpuOnlyMessage()
Dshadertext2.cpp86 static SkBitmap bmp; in onDraw() local
87 if (bmp.isNull()) { in onDraw()
88 makebm(&bmp, kPointSize / 2, kPointSize / 2); in onDraw()
119 canvas->drawBitmap(bmp, 0, 0); in onDraw()
120 canvas->translate(0, bmp.height() + labelPaint.getTextSize() + 15.f); in onDraw()
154 SkShader::CreateBitmapShader(bmp, in onDraw()
Dmodecolorfilters.cpp40 SkBitmap bmp; in make_bg_shader() local
41 bmp.allocN32Pixels(2 * checkSize, 2 * checkSize); in make_bg_shader()
42 SkCanvas canvas(bmp); in make_bg_shader()
52 return SkNEW_ARGS(SkBitmapProcShader, (bmp, SkShader::kRepeat_TileMode, in make_bg_shader()
Dxfermodes3.cpp212 SkBitmap bmp; in onOnceBeforeDraw() local
213 bmp.allocN32Pixels(kSize, kSize); in onOnceBeforeDraw()
214 SkCanvas bmpCanvas(bmp); in onOnceBeforeDraw()
221 fBmpShader.reset(SkShader::CreateBitmapShader(bmp, in onOnceBeforeDraw()
Dconvexpolyclip.cpp16 SkBitmap bmp; in make_bmp() local
17 bmp.allocN32Pixels(w, h, true); in make_bmp()
19 SkCanvas canvas(bmp); in make_bmp()
68 return bmp; in make_bmp()
/external/skia/src/utils/android/
DSkHwuiRenderer.cpp79 bool SkHwuiRenderer::capturePixels(SkBitmap* bmp) { in capturePixels() argument
83 bmp->allocPixels(destinationConfig); in capturePixels()
84 sk_memset32((uint32_t*) bmp->getPixels(), SK_ColorRED, in capturePixels()
94 bmp->eraseColor(SK_ColorTRANSPARENT); in capturePixels()
118 SK_ALWAYSBREAK(bmp->colorType() == kRGBA_8888_SkColorType && in capturePixels()
121 nativeWrapper.readPixels(destinationConfig, bmp->getPixels(), bmp->rowBytes(), 0, 0); in capturePixels()
/external/skia/src/gpu/
DGrAADistanceFieldPathRenderer.cpp356 SkBitmap bmp; in addPathToAtlas() local
359 if (!bmp.tryAllocPixels(bmImageInfo)) { in addPathToAtlas()
363 sk_bzero(bmp.getPixels(), bmp.getSafeSize()); in addPathToAtlas()
390 draw.fBitmap = &bmp; in addPathToAtlas()
403 SkAutoLockPixels alp(bmp); in addPathToAtlas()
406 (const unsigned char*)bmp.getPixels(), in addPathToAtlas()
407 bmp.width(), bmp.height(), bmp.rowBytes()); in addPathToAtlas()
/external/libvncserver/test/
DMakefile.am8 tjutil.c tjutil.h bmp.c bmp.h
/external/vboot_reference/futility/
Dcmd_show.c132 BmpBlockHeader *bmp; in futil_cb_show_gbb() local
202 bmp = (BmpBlockHeader *)(buf + gbb->bmpfv_offset); in futil_cb_show_gbb()
203 if (0 != memcmp(bmp, BMPBLOCK_SIGNATURE, BMPBLOCK_SIGNATURE_SIZE)) { in futil_cb_show_gbb()
210 bmp->major_version, bmp->minor_version); in futil_cb_show_gbb()
212 bmp->number_of_localizations); in futil_cb_show_gbb()
214 bmp->number_of_screenlayouts); in futil_cb_show_gbb()
216 bmp->number_of_imageinfos); in futil_cb_show_gbb()
/external/skia/samplecode/
DSampleShaderText.cpp32 static SkBitmap bmp; in MakeBitmapShader() local
33 if (bmp.isNull()) { in MakeBitmapShader()
34 makebm(&bmp, w/2, h/4); in MakeBitmapShader()
36 return SkShader::CreateBitmapShader(bmp, tx, ty); in MakeBitmapShader()
/external/vboot_reference/firmware/lib/
Dregion-kernel.c33 if (!cparams->bmp) { in VbGbbReadBmpHeader()
58 cparams->bmp = hdr; in VbGbbReadBmpHeader()
61 *hdr_ret = *cparams->bmp; in VbGbbReadBmpHeader()
/external/pdfium/core/src/fxge/win32/
Dfx_win32_dib.cpp108 BITMAP bmp; in GetBitmapSize() local
109 GetObject(hBitmap, sizeof bmp, &bmp); in GetBitmapSize()
110 w = bmp.bmWidth; in GetBitmapSize()
111 h = bmp.bmHeight; in GetBitmapSize()
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/widget/
DDemoAppWidgetProvider.java80 Bitmap bmp = plot.getDrawingCache(); in onUpdate() local
83 rv.setBitmap(R.id.imgView, "setImageBitmap", bmp); in onUpdate()
/external/e2fsprogs/lib/quota/
Dquotaio_tree.c539 #define set_bit(bmp, ind) ((bmp)[(ind) >> 3] |= (1 << ((ind) & 7))) argument
540 #define get_bit(bmp, ind) ((bmp)[(ind) >> 3] & (1 << ((ind) & 7))) argument
622 static uint find_set_bits(char *bmp, int blocks) in find_set_bits() argument
627 if (get_bit(bmp, i)) in find_set_bits()
/external/mesa3d/src/gallium/tests/trivial/
D.gitignore3 result.bmp
/external/vboot_reference/
D.gitignore5 scripts/newbitmaps/default_source/*.bmp

1234