Searched defs:bmp (Results 1 - 25 of 88) sorted by relevance

1234

/external/skia/gm/
H A Djpg_color_cube.cpp31 SkBitmap bmp; variable
32 bmp.allocN32Pixels(512, 512, true);
37 *bmp.getAddr32(bX + r, bY + g) = SkPackARGB32(255,
49 auto jpegData(sk_tool_utils::EncodeImageToData(bmp, SkEncodedImageFormat::kJPEG, 100));
H A Dtosrgb_colorfilter.cpp15 SkBitmap bmp; local
16 bmp.allocN32Pixels(3, 2);
17 SkPMColor* pixels = reinterpret_cast<SkPMColor*>(bmp.getPixels());
26 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(10, 10, 50, 50), nullptr);
48 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(70, 10, 50, 50), &paint);
52 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(10, 70, 50, 50), &paint);
56 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(70, 70, 50, 50), &paint);
H A Dbigmatrix.cpp47 SkBitmap bmp; local
48 bmp.allocN32Pixels(2, 2);
49 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels());
59 paint.setShader(SkShader::MakeBitmapShader(bmp, SkShader::kRepeat_TileMode,
H A Dbitmaptiled.cpp44 SkBitmap bmp; local
45 bmp.allocN32Pixels(vertical ? kBitmapShortEdge : kBitmapLongEdge,
47 bmp.eraseColor(SK_ColorWHITE);
53 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(0.0f, (kTileSize - 50) + offset,
57 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH((kTileSize - 50) + offset, 0.0f,
H A Dcrosscontextimage.cpp31 SkBitmap bmp; local
33 SkAssertResult(encodedImage->asLegacyBitmap(&bmp) &&
34 bmp.peekPixels(&pixmap));
H A Datlastext.cpp93 auto bmp = this->drawText(); variable
96 canvas->drawBitmap(bmp, 0, 0);
H A Dclippedbitmapshaders.cpp29 SkBitmap bmp; local
30 bmp.allocN32Pixels(2, 2);
31 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels());
37 return bmp;
80 SkBitmap bmp = create_bitmap(); local
86 paint.setShader(SkShader::MakeBitmapShader(bmp, fMode, fMode, &s));
H A Dgm.cpp78 SkBitmap bmp; local
79 bmp.allocN32Pixels(128, 64);
80 SkCanvas bmpCanvas(bmp);
92 paint.setShader(SkShader::MakeBitmapShader(bmp, SkShader::kMirror_TileMode,
H A Dtallstretchedbitmaps.cpp82 SkBitmap bmp = fTallBmps[i].fBmp; variable
85 int itemHeight = bmp.height() / fTallBmps[i].fItemCnt;
87 bmp.width(), bmp.height());
88 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(bmp.width()), 10.f * itemHeight);
91 canvas->drawBitmapRect(bmp, subRect, dstRect, &paint);
92 canvas->translate(SkIntToScalar(bmp.width() + 10), 0);
/external/skqp/gm/
H A Djpg_color_cube.cpp30 SkBitmap bmp; variable
31 bmp.allocN32Pixels(512, 512, true);
36 *bmp.getAddr32(bX + r, bY + g) = SkPackARGB32(255,
48 auto jpegData(sk_tool_utils::EncodeImageToData(bmp, SkEncodedImageFormat::kJPEG, 100));
H A Dtosrgb_colorfilter.cpp15 SkBitmap bmp; local
16 bmp.allocN32Pixels(3, 2);
17 SkPMColor* pixels = reinterpret_cast<SkPMColor*>(bmp.getPixels());
26 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(10, 10, 50, 50), nullptr);
48 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(70, 10, 50, 50), &paint);
52 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(10, 70, 50, 50), &paint);
56 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(70, 70, 50, 50), &paint);
H A Dbigmatrix.cpp47 SkBitmap bmp; local
48 bmp.allocN32Pixels(2, 2);
49 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels());
59 paint.setShader(SkShader::MakeBitmapShader(bmp, SkShader::kRepeat_TileMode,
H A Dbitmaptiled.cpp44 SkBitmap bmp; local
45 bmp.allocN32Pixels(vertical ? kBitmapShortEdge : kBitmapLongEdge,
47 bmp.eraseColor(SK_ColorWHITE);
53 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(0.0f, (kTileSize - 50) + offset,
57 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH((kTileSize - 50) + offset, 0.0f,
H A Dcrosscontextimage.cpp31 SkBitmap bmp; local
33 SkAssertResult(encodedImage->asLegacyBitmap(&bmp, SkImage::kRO_LegacyBitmapMode) &&
34 bmp.peekPixels(&pixmap));
H A Datlastext.cpp90 auto bmp = this->drawText(); variable
93 canvas->drawBitmap(bmp, 0, 0);
H A Dclippedbitmapshaders.cpp29 SkBitmap bmp; local
30 bmp.allocN32Pixels(2, 2);
31 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels());
37 return bmp;
80 SkBitmap bmp = create_bitmap(); local
86 paint.setShader(SkShader::MakeBitmapShader(bmp, fMode, fMode, &s));
H A Dgm.cpp78 SkBitmap bmp; local
79 bmp.allocN32Pixels(128, 64);
80 SkCanvas bmpCanvas(bmp);
92 paint.setShader(SkShader::MakeBitmapShader(bmp, SkShader::kMirror_TileMode,
H A Dtallstretchedbitmaps.cpp82 SkBitmap bmp = fTallBmps[i].fBmp; variable
85 int itemHeight = bmp.height() / fTallBmps[i].fItemCnt;
87 bmp.width(), bmp.height());
88 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(bmp.width()), 10.f * itemHeight);
91 canvas->drawBitmapRect(bmp, subRect, dstRect, &paint);
92 canvas->translate(SkIntToScalar(bmp.width() + 10), 0);
/external/skia/bench/
H A DWritePixelsBench.cpp54 SkBitmap bmp; variable
55 bmp.allocN32Pixels(size.width(), size.height());
56 canvas->readPixels(bmp, 0, 0);
58 SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), fColorType, fAlphaType);
61 canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0);
/external/skqp/bench/
H A DWritePixelsBench.cpp54 SkBitmap bmp; variable
55 bmp.allocN32Pixels(size.width(), size.height());
56 canvas->readPixels(bmp, 0, 0);
58 SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), fColorType, fAlphaType);
61 canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0);
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
H A Dmeminfo.c92 struct bitmask *bmp = NULL; local
103 bmp = bitmask_alloc(mems_nbits);
104 if (bmp == NULL)
107 if (present_memmask(bmp)) {
108 bitmask_free(bmp);
113 if (bitmask_weight(bmp) <= 0) {
114 bitmask_free(bmp);
118 n = bitmask_last(bmp) + 1;
119 bitmask_free(bmp);
/external/skia/tests/
H A DShaderOpacityTest.cpp17 SkBitmap bmp; local
18 bmp.setInfo(info);
21 auto shader = SkShader::MakeBitmapShader(bmp,
27 bmp.allocPixels(info);
30 shader = SkShader::MakeBitmapShader(bmp,
36 bmp.setAlphaType(kOpaque_SkAlphaType);
37 shader = SkShader::MakeBitmapShader(bmp,
43 bmp.setAlphaType(kPremul_SkAlphaType);
44 shader = SkShader::MakeBitmapShader(bmp,
H A DPremulAlphaRoundTripTest.cpp49 SkBitmap bmp; local
50 bmp.allocN32Pixels(256, 256);
53 uint32_t* pixels = bmp.getAddr32(0, a);
59 const SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(),
61 surf->writePixels({info, bmp.getPixels(), bmp.rowBytes()}, 0, 0);
H A Dskbug6653.cpp20 SkBitmap bmp; local
21 bmp.allocN32Pixels(surface->width(), surface->height());
22 if (!surface->readPixels(bmp, 0, 0)) {
25 return bmp;
/external/skqp/tests/
H A DShaderOpacityTest.cpp17 SkBitmap bmp; local
18 bmp.setInfo(info);
21 auto shader = SkShader::MakeBitmapShader(bmp,
27 bmp.allocPixels(info);
30 shader = SkShader::MakeBitmapShader(bmp,
36 bmp.setAlphaType(kOpaque_SkAlphaType);
37 shader = SkShader::MakeBitmapShader(bmp,
43 bmp.setAlphaType(kPremul_SkAlphaType);
44 shader = SkShader::MakeBitmapShader(bmp,

Completed in 863 milliseconds

1234