| /external/skia/src/effects/ |
| SkShaderMaskFilter.cpp | 99 SkBitmap bitmap; local 100 if (!bitmap.installMaskPixels(*dst)) { 109 SkCanvas canvas(bitmap);
|
| /external/skia/tests/ |
| ColorMatrixTest.cpp | 37 SkBitmap bitmap; local 38 bitmap.allocN32Pixels(1,1); 40 SkCanvas canvas(bitmap); 52 assert_color(reporter, SK_ColorCYAN, bitmap.getColor(0, 0)); 56 assert_color(reporter, SK_ColorGREEN, bitmap.getColor(0, 0)); 60 assert_color(reporter, SK_ColorRED, bitmap.getColor(0, 0)); 65 assert_color(reporter, SK_ColorWHITE, bitmap.getColor(0, 0)); 74 bitmap.eraseColor(SK_ColorTRANSPARENT); 78 assert_color(reporter, SkColorSetARGB(128, 255, 0, 64), bitmap.getColor(0, 0), 2); 83 assert_color(reporter, SK_ColorCYAN, bitmap.getColor(0, 0)) [all...] |
| /external/skia/tools/ |
| chrome_fuzz.cpp | 31 static void run_test_case(const SkString& testdata, const SkBitmap& bitmap, 50 canvas->drawBitmap(bitmap, 0, 0, &paint); 59 static bool read_and_run_test_case(const char* filename, const SkBitmap& bitmap, 66 run_test_case(testdata, bitmap, canvas); 72 SkBitmap bitmap; local 73 bitmap.allocN32Pixels(kBitmapSize, kBitmapSize); 74 SkCanvas canvas(bitmap); 77 if (!read_and_run_test_case(argv[i], bitmap, &canvas))
|
| /external/skqp/gm/ |
| bitmapimage.cpp | 22 return SkString("bitmap-image-srgb-legacy"); 38 // Create matching bitmap. 40 SkBitmap bitmap; variable 41 bitmap.allocPixels(codec->getInfo()); 42 codec->getPixels(codec->getInfo(), bitmap.getPixels(), bitmap.rowBytes()); 45 // The top two squares show an sRGB image, then bitmap, drawn to a legacy canvas. 52 legacyCanvas.drawBitmap(bitmap, 0.0f, 0.0f, nullptr); 56 // The bottom two squares show an sRGB image, then bitmap, drawn to a srgb canvas. 63 srgbCanvas.drawBitmap(bitmap, 0.0f, 0.0f, nullptr) [all...] |
| bitmappremul.cpp | 14 * This GM checks that bitmap pixels are unpremultiplied before being exported 18 * This tests both the ARGB4444 and ARGB8888 bitmap configurations. 25 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { 26 bitmap->allocPixels(SkImageInfo::Make(SLIDE_SIZE, SLIDE_SIZE, ct, 28 bitmap->eraseColor(SK_ColorWHITE); 32 SkBitmap bitmap; local 33 init_bitmap(kN32_SkColorType, &bitmap); 36 uint32_t* dst = bitmap.getAddr32(0, y); 45 return bitmap; 49 SkBitmap bitmap; local 66 SkBitmap bitmap; local 85 SkBitmap bitmap; local [all...] |
| extractbitmap.cpp | 16 static void create_bitmap(SkBitmap* bitmap) { 19 bitmap->allocN32Pixels(W, H); 21 SkCanvas canvas(*bitmap); 43 SkBitmap bitmap; variable 44 create_bitmap(&bitmap); variable 45 int x = bitmap.width() / 2; 46 int y = bitmap.height() / 2; 50 canvas->drawBitmap(bitmap, 0, 0); 55 // Draw the bottom right fourth of the bitmap over the top left 57 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)) [all...] |
| imagemagnifier.cpp | 48 SkBitmap bitmap; local 49 bitmap.allocN32Pixels(WIDTH_HEIGHT, WIDTH_HEIGHT); 50 SkCanvas canvas(bitmap); 64 result.setPixelRef(sk_ref_sp(bitmap.pixelRef()), 0, 0);
|
| makecolorspace.cpp | 18 SkBitmap bitmap; local 19 bitmap.allocPixels(codec->getInfo()); 23 codec->getPixels(codec->getInfo(), bitmap.getPixels(), bitmap.rowBytes(), &opts); 24 return SkImage::MakeFromBitmap(bitmap);
|
| /external/skqp/samplecode/ |
| SampleWritePixels.cpp | 18 static void create_bitmap(SkBitmap* bitmap) { 21 bitmap->allocN32Pixels(W, H); 23 SkCanvas canvas(*bitmap); 46 SkBitmap bitmap; local 47 create_bitmap(&bitmap); 48 int x = bitmap.width() / 2; 49 int y = bitmap.height() / 2; 52 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)); 56 canvas->writePixels(bitmap, 0, 0);
|
| /external/skqp/src/effects/ |
| SkShaderMaskFilter.cpp | 99 SkBitmap bitmap; local 100 if (!bitmap.installMaskPixels(*dst)) { 109 SkCanvas canvas(bitmap);
|
| /external/skqp/tests/ |
| ColorMatrixTest.cpp | 37 SkBitmap bitmap; local 38 bitmap.allocN32Pixels(1,1); 40 SkCanvas canvas(bitmap); 52 assert_color(reporter, SK_ColorCYAN, bitmap.getColor(0, 0)); 56 assert_color(reporter, SK_ColorGREEN, bitmap.getColor(0, 0)); 60 assert_color(reporter, SK_ColorRED, bitmap.getColor(0, 0)); 65 assert_color(reporter, SK_ColorWHITE, bitmap.getColor(0, 0)); 74 bitmap.eraseColor(SK_ColorTRANSPARENT); 78 assert_color(reporter, SkColorSetARGB(128, 255, 0, 64), bitmap.getColor(0, 0), 2); 83 assert_color(reporter, SK_ColorCYAN, bitmap.getColor(0, 0)) [all...] |
| /external/skqp/tools/ |
| chrome_fuzz.cpp | 31 static void run_test_case(const SkString& testdata, const SkBitmap& bitmap, 50 canvas->drawBitmap(bitmap, 0, 0, &paint); 59 static bool read_and_run_test_case(const char* filename, const SkBitmap& bitmap, 66 run_test_case(testdata, bitmap, canvas); 72 SkBitmap bitmap; local 73 bitmap.allocN32Pixels(kBitmapSize, kBitmapSize); 74 SkCanvas canvas(bitmap); 77 if (!read_and_run_test_case(argv[i], bitmap, &canvas))
|
| /external/syslinux/gpxe/src/include/gpxe/ |
| bitmap.h | 16 /** A single block of bits within a bitmap */ 23 * Block index within bitmap 31 * Block mask within bitmap 38 /** A bitmap */ 39 struct bitmap { struct 40 /** Bitmap data */ 42 /** Length of the bitmap, in bits */ 44 /** Index of first gap in the bitmap */ 48 extern int bitmap_resize ( struct bitmap *bitmap, unsigned int new_length ) [all...] |
| /external/tensorflow/tensorflow/core/lib/core/ |
| bitmap_test.cc | 16 #include "tensorflow/core/lib/core/bitmap.h" 29 static void MakeRandomBitmap(random::SimplePhilox* rnd, Bitmap* bitmap) { 31 bitmap->Reset(n); 33 if (rnd->OneIn(2)) bitmap->set(i); 39 Bitmap bits(n); 51 Bitmap bits(10); 61 // Generate a bitmap of length n with long runs of ones. 62 Bitmap bitmap(n) 101 Bitmap bitmap; local [all...] |
| /frameworks/base/core/jni/android/graphics/ |
| MovieImpl.cpp | 68 const SkBitmap& Movie::bitmap() function in class:Movie
|
| /frameworks/base/core/tests/coretests/src/android/graphics/ |
| BitmapFactoryTest.java | 33 Bitmap bitmap1 = Bitmap.createBitmap( 34 new int[] { Color.BLUE }, 1, 1, Bitmap.Config.RGB_565); 36 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, out); 41 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fd); local 42 assertNotNull("BitmapFactory returned null", bitmap); 43 assertEquals("Bitmap width", 1, bitmap.getWidth()); 44 assertEquals("Bitmap height", 1, bitmap.getHeight()) [all...] |
| /frameworks/base/libs/hwui/tests/common/ |
| BitmapAllocationTestUtils.h | 30 static sk_sp<Bitmap> allocateHeapBitmap(int width, int height, SkColorType colorType, 31 std::function<void(SkBitmap& bitmap)> setup) { 32 sk_sp<Bitmap> bitmap = TestUtils::createBitmap(width, height, colorType); local 34 bitmap->getSkBitmap(&skBitmap); 36 return bitmap; 39 static sk_sp<Bitmap> allocateHardwareBitmap(int width, int height, SkColorType colorType, 40 std::function<void(SkBitmap& bitmap)> setup) { 44 sk_sp<Bitmap> heapBitmap(Bitmap::allocateHeapBitmap(&skBitmap)) [all...] |
| /frameworks/base/libs/hwui/tests/common/scenes/ |
| RecentsAnimation.cpp | 44 SkBitmap bitmap; variable 45 sk_sp<Bitmap> thumb(TestUtils::createBitmap(thumbnailSize, thumbnailSize, &bitmap)); 47 bitmap.eraseColor(COLORS[i]); 51 mThumbnail = bitmap; 69 sp<RenderNode> createCard(int x, int y, int width, int height, Bitmap& thumb) {
|
| /frameworks/base/libs/hwui/tests/unit/ |
| CacheManagerTests.cpp | 55 sk_sp<Bitmap> bitmap = local 56 Bitmap::allocateHeapBitmap(SkImageInfo::MakeA8(displayInfo.w, displayInfo.h)); 58 sk_sp<SkImage> image = bitmap->makeImage(&filter);
|
| /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
| AvgBrightnessFilterTest.java | 20 import android.graphics.Bitmap; 47 Bitmap bitmap = BitmapFactory.decodeStream(assetMgr.open("0002_000390.jpg")); local 48 image.setBitmap(bitmap);
|
| ContrastRatioFilterTest.java | 27 import android.graphics.Bitmap; 55 Bitmap bitmap = BitmapFactory.decodeStream(assetMgr.open("0002_000390.jpg")); local 56 image.setBitmap(bitmap);
|
| /frameworks/opt/bitmap/src/com/android/bitmap/ |
| RequestKey.java | 17 package com.android.bitmap;
|
| ResourceRequestKey.java | 17 package com.android.bitmap;
|
| /frameworks/opt/bitmap/src/com/android/bitmap/util/ |
| Trace.java | 17 package com.android.bitmap.util;
|
| /frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/ |
| PhotoBitmapLoaderInterface.java | 4 import android.graphics.Bitmap; 19 public Bitmap bitmap; field in class:PhotoBitmapLoaderInterface.BitmapResult 25 * the underlying bitmap is null). 36 // Don't create a new drawable if there's no bitmap. PhotoViewFragment regards 39 if (bitmap == null) { 43 return new BitmapDrawable(resources, bitmap);
|