HomeSort by relevance Sort by last modified time
    Searched refs:bm (Results 76 - 100 of 508) sorted by null

1 2 34 5 6 7 8 91011>>

  /external/chromium_org/third_party/skia/gm/
bitmapshader.cpp 16 static void draw_bm(SkBitmap* bm) {
20 bm->allocN32Pixels(20, 20);
21 bm->eraseColor(SK_ColorRED);
23 SkCanvas canvas(*bm);
27 static void draw_mask(SkBitmap* bm) {
31 bm->allocPixels(SkImageInfo::MakeA8(20, 20));
32 bm->eraseColor(SK_ColorTRANSPARENT);
34 SkCanvas canvas(*bm);
filterindiabox.cpp 19 static SkSize computeSize(const SkBitmap& bm, const SkMatrix& mat) {
20 SkRect bounds = SkRect::MakeWH(SkIntToScalar(bm.width()),
21 SkIntToScalar(bm.height()));
26 static void draw_row(SkCanvas* canvas, const SkBitmap& bm, const SkMatrix& mat, SkScalar dx) {
31 canvas->drawBitmapMatrix(bm, mat, &paint);
35 canvas->drawBitmapMatrix(bm, mat, &paint);
39 canvas->drawBitmapMatrix(bm, mat, &paint);
43 canvas->drawBitmapMatrix(bm, mat, &paint);
arithmode.cpp 19 SkBitmap bm; local
20 bm.allocN32Pixels(WW, HH);
21 bm.eraseColor(SK_ColorTRANSPARENT);
22 return bm;
26 SkBitmap bm = make_bm(); local
27 SkCanvas canvas(bm);
38 return bm;
42 SkBitmap bm = make_bm(); local
43 SkCanvas canvas(bm);
53 return bm;
    [all...]
drawbitmaprect.cpp 18 SkBitmap bm; local
19 bm.allocN32Pixels(w, h);
21 for (int y = 0; y < bm.height(); y++) {
22 uint32_t* p = bm.getAddr32(0, y);
23 for (int x = 0; x < bm.width(); x++) {
27 bm.unlockPixels();
28 return bm;
31 static void makebm(SkBitmap* bm, int w, int h) {
32 bm->allocN32Pixels(w, h);
33 bm->eraseColor(SK_ColorTRANSPARENT)
162 SkBitmap bm; local
    [all...]
  /external/chromium_org/third_party/skia/src/images/
SkMovie_gif.cpp 127 static void copyInterlaceGroup(SkBitmap* bm, const unsigned char*& src,
135 uint32_t* dst = bm->getAddr32(imageDesc.Left, imageDesc.Top + row);
144 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap,
147 int width = bm->width();
148 int height = bm->height();
163 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0);
166 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4);
169 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 4, 2);
171 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 2, 1);
175 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap
    [all...]
  /external/skia/gm/
bitmapshader.cpp 16 static void draw_bm(SkBitmap* bm) {
20 bm->allocN32Pixels(20, 20);
21 bm->eraseColor(SK_ColorRED);
23 SkCanvas canvas(*bm);
27 static void draw_mask(SkBitmap* bm) {
31 bm->allocPixels(SkImageInfo::MakeA8(20, 20));
32 bm->eraseColor(SK_ColorTRANSPARENT);
34 SkCanvas canvas(*bm);
arithmode.cpp 19 SkBitmap bm; local
20 bm.allocN32Pixels(WW, HH);
21 bm.eraseColor(SK_ColorTRANSPARENT);
22 return bm;
26 SkBitmap bm = make_bm(); local
27 SkCanvas canvas(bm);
38 return bm;
42 SkBitmap bm = make_bm(); local
43 SkCanvas canvas(bm);
53 return bm;
    [all...]
drawbitmaprect.cpp 18 SkBitmap bm; local
19 bm.allocN32Pixels(w, h);
21 for (int y = 0; y < bm.height(); y++) {
22 uint32_t* p = bm.getAddr32(0, y);
23 for (int x = 0; x < bm.width(); x++) {
27 bm.unlockPixels();
28 return bm;
31 static void makebm(SkBitmap* bm, int w, int h) {
32 bm->allocN32Pixels(w, h);
33 bm->eraseColor(SK_ColorTRANSPARENT)
161 SkBitmap bm; local
    [all...]
  /external/skia/src/images/
SkMovie_gif.cpp 127 static void copyInterlaceGroup(SkBitmap* bm, const unsigned char*& src,
135 uint32_t* dst = bm->getAddr32(imageDesc.Left, imageDesc.Top + row);
144 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap,
147 int width = bm->width();
148 int height = bm->height();
163 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0);
166 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4);
169 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 4, 2);
171 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 2, 1);
175 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap
    [all...]
  /external/chromium_org/third_party/skia/src/gpu/
GrSurface.cpp 24 SkBitmap bm; local
25 if (!bm.tryAllocPixels(SkImageInfo::MakeN32Premul(this->width(), this->height()))) {
30 bm.getPixels());
39 if (!SkImageEncoder::EncodeFile(filename, bm, SkImageEncoder::kPNG_Type, 100)) {
  /external/chromium_org/third_party/skia/tools/
picture_utils.h 44 * @param bm the bitmap to record
51 bool write_bitmap_to_disk(const SkBitmap& bm, const SkString& dirPath,
  /external/skia/tools/
picture_utils.h 44 * @param bm the bitmap to record
51 bool write_bitmap_to_disk(const SkBitmap& bm, const SkString& dirPath,
  /external/skia/bench/
TileBench.cpp 15 static void create_gradient(SkBitmap* bm) {
16 SkASSERT(1 == bm->width());
17 const int height = bm->height();
22 SkAutoLockPixels lock(*bm);
24 *bm->getAddr32(0, y) = SkColorSetRGB(0, 0, (U8CPU) blue);
49 SkBitmap bm; local
51 bm.allocN32Pixels(kWidth, kHeight, true);
52 bm.eraseColor(SK_ColorWHITE);
54 create_gradient(&bm);
56 SkShader* s = SkShader::CreateBitmapShader(bm, xTile, yTile)
    [all...]
  /external/chromium_org/third_party/skia/samplecode/
SampleCamera.cpp 34 SkBitmap bm; local
35 if (SkImageDecoder::DecodeFile(str.c_str(), &bm)) {
36 SkRect src = { 0, 0, SkIntToScalar(bm.width()), SkIntToScalar(bm.height()) };
41 SkShader* s = SkShader::CreateBitmapShader(bm,
SampleBlur.cpp 23 SkBitmap bm; local
26 bm.allocPixels(SkImageInfo::Make(256, 256, kIndex_8_SkColorType,
31 bm.lockPixels();
32 const float cx = bm.width() * 0.5f;
33 const float cy = bm.height() * 0.5f;
34 for (int y = 0; y < bm.height(); y++) {
37 uint8_t* p = bm.getAddr8(0, y);
49 bm.unlockPixels();
50 return bm;
  /external/chromium_org/third_party/skia/tests/
BitmapHeapTest.cpp 35 SkBitmap bm; local
36 bm.allocN32Pixels(2, 2);
37 bm.eraseColor(SK_ColorRED);
38 uint32_t* pixel = bm.getAddr32(1,0);
41 SkShader* bitmapShader = SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode,
BlitRowTest.cpp 63 static Proc find_proc(const SkBitmap& bm, SkPMColor expect32, uint16_t expect16,
65 switch (bm.colorType()) {
82 static bool check_color(const SkBitmap& bm, SkPMColor expect32,
86 Proc proc = find_proc(bm, expect32, expect16, expect8, &expect);
87 for (int y = 0; y < bm.height(); y++) {
89 int x = proc(bm.getAddr(0, y), bm.width(), expect, &bad);
92 gColorTypeName[bm.colorType()], x, y, expect, bad);
162 Mesh(const SkBitmap& bm, SkPaint* paint) {
163 const SkScalar w = SkIntToScalar(bm.width())
    [all...]
  /external/skia/samplecode/
SampleCamera.cpp 34 SkBitmap bm; local
35 if (SkImageDecoder::DecodeFile(str.c_str(), &bm)) {
36 SkRect src = { 0, 0, SkIntToScalar(bm.width()), SkIntToScalar(bm.height()) };
41 SkShader* s = SkShader::CreateBitmapShader(bm,
SampleTextAlpha.cpp 31 static void check_for_nonwhite(const SkBitmap& bm, int alpha) {
32 if (bm.colorType() != kRGB_565_SkColorType) {
36 for (int y = 0; y < bm.height(); y++) {
37 for (int x = 0; x < bm.width(); x++) {
38 uint16_t c = *bm.getAddr16(x, y);
SampleBlur.cpp 23 SkBitmap bm; local
26 bm.allocPixels(SkImageInfo::Make(256, 256, kIndex_8_SkColorType,
31 bm.lockPixels();
32 const float cx = bm.width() * 0.5f;
33 const float cy = bm.height() * 0.5f;
34 for (int y = 0; y < bm.height(); y++) {
37 uint8_t* p = bm.getAddr8(0, y);
49 bm.unlockPixels();
50 return bm;
  /external/skia/tests/
BitmapHeapTest.cpp 35 SkBitmap bm; local
36 bm.allocN32Pixels(2, 2);
37 bm.eraseColor(SK_ColorRED);
38 uint32_t* pixel = bm.getAddr32(1,0);
41 SkShader* bitmapShader = SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode,
ImageCacheTest.cpp 12 static void make_bm(SkBitmap* bm, int w, int h) {
13 bm->allocN32Pixels(w, h);
23 SkBitmap bm[COUNT]; local
27 make_bm(&bm[i], DIM, DIM);
33 SkScaledImageCache::ID* id = cache.findAndLock(bm[i], scale, scale, &tmp);
37 id = cache.addAndLock(bm[i], scale, scale, tmp);
41 SkScaledImageCache::ID* id2 = cache.findAndLock(bm[i], scale, scale,
61 SkScaledImageCache::ID* id = cache.addAndLock(bm[0], incScale,
71 id = cache.findAndLock(bm[i], scale, scale, &tmp);
  /external/chromium_org/third_party/skia/src/utils/mac/
SkCreateCGImageRef.cpp 51 static bool getBitmapInfo(const SkBitmap& bm,
59 switch (bm.colorType()) {
76 *info = ComputeCGAlphaInfo_RGBA(bm.alphaType());
80 *info = ComputeCGAlphaInfo_BGRA(bm.alphaType());
85 if (bm.isOpaque()) {
97 static SkBitmap* prepareForImageRef(const SkBitmap& bm,
101 if (!getBitmapInfo(bm, bitsPerComponent, info, &upscaleTo32)) {
110 bm.copyTo(copy, kN32_SkColorType);
112 copy = new SkBitmap(bm);
117 CGImageRef SkCreateCGImageRefWithColorspace(const SkBitmap& bm,
    [all...]
  /external/skia/src/utils/mac/
SkCreateCGImageRef.cpp 51 static bool getBitmapInfo(const SkBitmap& bm,
59 switch (bm.colorType()) {
76 *info = ComputeCGAlphaInfo_RGBA(bm.alphaType());
80 *info = ComputeCGAlphaInfo_BGRA(bm.alphaType());
85 if (bm.isOpaque()) {
97 static SkBitmap* prepareForImageRef(const SkBitmap& bm,
101 if (!getBitmapInfo(bm, bitsPerComponent, info, &upscaleTo32)) {
110 bm.copyTo(copy, kN32_SkColorType);
112 copy = new SkBitmap(bm);
117 CGImageRef SkCreateCGImageRefWithColorspace(const SkBitmap& bm,
    [all...]
  /external/chromium_org/third_party/skia/src/core/
SkBitmapProcShader.cpp 20 bool SkBitmapProcShader::CanDo(const SkBitmap& bm, TileMode tx, TileMode ty) {
21 switch (bm.colorType()) {
70 SkBitmap bm; local
71 if (!buffer.readBitmap(&bm)) {
74 bm.setImmutable();
77 return SkShader::CreateBitmapShader(bm, mx, my, &lm);
96 static bool valid_for_drawing(const SkBitmap& bm) {
97 if (0 == bm.width() || 0 == bm.height()) {
100 if (NULL == bm.pixelRef())
    [all...]

Completed in 1917 milliseconds

1 2 34 5 6 7 8 91011>>