/external/skia/gm/ |
H A D | smallimage.cpp | 5 SkBitmap bitmap; local 6 if (GetResourceAsBitmap("randPixels.png", &bitmap)) { 7 canvas->drawBitmap(bitmap, 0.0f, 0.0f);
|
H A D | grayscalejpg.cpp | 18 SkBitmap bitmap; local 19 if (GetResourceAsBitmap(kResource, &bitmap)) { 20 canvas->drawBitmap(bitmap, 0.0f, 0.0f);
|
H A D | colorwheel.cpp | 14 SkBitmap bitmap; local 15 if (GetResourceAsBitmap(resource, &bitmap)) { 16 canvas->drawBitmap(bitmap, SkIntToScalar(x), SkIntToScalar(y));
|
H A D | peekpixels.cpp | 42 SkBitmap bitmap; variable 49 if (addr && bitmap.installPixels(info, const_cast<void*>(addr), rowBytes)) { 50 canvas->drawBitmap(bitmap, 0, 0, NULL); 57 if (ropixels.asROBitmap(&bitmap)) { 58 canvas->drawBitmap(bitmap, 0, 0, NULL);
|
/external/skia/tools/ |
H A D | test_image_decoder.cpp | 25 SkBitmap bitmap; local 26 if (!(SkImageDecoder::DecodeFile(argv[1], &bitmap))) { 29 if (bitmap.empty()) {
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
H A D | BitmapResource.java | 1 package com.bumptech.glide.load.resource.bitmap; 13 private final Bitmap bitmap; field in class:BitmapResource 20 * @param bitmap A Bitmap. 23 public static BitmapResource obtain(Bitmap bitmap, BitmapPool bitmapPool) { argument 24 if (bitmap == null) { 27 return new BitmapResource(bitmap, bitmapPool); 31 public BitmapResource(Bitmap bitmap, BitmapPool bitmapPool) { argument 32 if (bitmap == null) { 38 this.bitmap = bitmap; [all...] |
H A D | BitmapEncoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 42 final Bitmap bitmap = resource.get(); 45 Bitmap.CompressFormat format = getFormat(bitmap); 46 bitmap.compress(format, quality, os); 48 Log.v(TAG, "Compressed with type: " + format + " of size " + Util.getBitmapByteSize(bitmap) + " in " 56 return "BitmapEncoder.com.bumptech.glide.load.resource.bitmap"; 59 private Bitmap.CompressFormat getFormat(Bitmap bitmap) { argument 62 } else if (bitmap.hasAlpha()) {
|
H A D | BitmapDecoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 9 * A bitmap decoder for a given resource type. 15 * Returns a decoded bitmap for a given resource and target dimensions. 18 * @param bitmapPool A bitmap pool that can be used to reuse bitmaps during the load. Any bitmaps created or 19 * obtained from the pool other than the bitmap returned by this method should be returned to the 21 * @param outWidth The target width for the returned bitmap (need not match exactly). 22 * @param outHeight The target height for the returned bitmap (need not match exactly). 23 * @param decodeFormat The desired configuration for the returned bitmap.
|
H A D | BitmapDrawableResource.java | 1 package com.bumptech.glide.load.resource.bitmap;
|
H A D | BitmapTransformation.java | 1 package com.bumptech.glide.load.resource.bitmap; 71 * @param outWidth The ideal width of the transformed bitmap (does not need to match exactly). 72 * @param outHeight The ideal height of the transformed bitmap (does not need to match exactly).
|
H A D | CenterCrop.java | 1 package com.bumptech.glide.load.resource.bitmap; 39 return "CenterCrop.com.bumptech.glide.load.resource.bitmap";
|
H A D | FileDescriptorBitmapDecoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 45 Bitmap bitmap = bitmapDecoder.decode(source, bitmapPool, width, height, decodeFormat); 46 return BitmapResource.obtain(bitmap, bitmapPool); 51 return "FileDescriptorBitmapDecoder.com.bumptech.glide.load.data.bitmap";
|
H A D | FitCenter.java | 1 package com.bumptech.glide.load.resource.bitmap; 29 return "FitCenter.com.bumptech.glide.load.resource.bitmap";
|
H A D | GlideBitmapDrawableResource.java | 1 package com.bumptech.glide.load.resource.bitmap; 8 * A resource wrapper for {@link com.bumptech.glide.load.resource.bitmap.GlideBitmapDrawable}.
|
H A D | ImageVideoBitmapDecoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 58 return "ImageVideoBitmapDecoder.com.bumptech.glide.load.resource.bitmap";
|
/external/jemalloc/test/unit/ |
H A D | bitmap.c | 26 bitmap_t *bitmap = malloc(sizeof(bitmap_t) * local 28 bitmap_init(bitmap, &binfo); 31 assert_false(bitmap_get(bitmap, &binfo, j), 34 free(bitmap); 49 bitmap_t *bitmap = malloc(sizeof(bitmap_t) * local 51 bitmap_init(bitmap, &binfo); 54 bitmap_set(bitmap, &binfo, j); 55 assert_true(bitmap_full(bitmap, &binfo), 57 free(bitmap); 72 bitmap_t *bitmap local 101 bitmap_t *bitmap = malloc(sizeof(bitmap_t) * local [all...] |
/external/jmonkeyengine/engine/src/android/com/jme3/asset/ |
H A D | AndroidImageInfo.java | 15 * {@link AndroidImageInfo#loadBitmap()} method to acquire a bitmap by their own means. 22 protected Bitmap bitmap; field in class:AndroidImageInfo 30 if (bitmap == null || bitmap.isRecycled()){ 40 return bitmap; 50 * Loads the bitmap directly from the asset info, possibly updating 57 bitmap = BitmapFactory.decodeStream(in); 58 if (bitmap == null) { 67 switch (bitmap.getConfig()) { 83 // but just loads bitmap directl [all...] |
/external/selinux/libsepol/tests/ |
H A D | debug.c | 27 void print_ebitmap(ebitmap_t * bitmap, FILE * fp) argument 30 for (i = 0; i < bitmap->highbit; i++) { 31 fprintf(fp, "%d", ebitmap_get_bit(bitmap, i));
|
/external/skia/bench/ |
H A D | ReadPixBench.cpp | 44 SkBitmap bitmap; variable 46 bitmap.setInfo(SkImageInfo::MakeN32Premul(kWindowSize, kWindowSize)); 51 canvas->readPixels(&bitmap, x * offX, y * offY);
|
/external/skia/experimental/PdfViewer/ |
H A D | SkNulCanvas.h | 26 explicit SkNulCanvas(const SkBitmap& bitmap) : SkCanvas(bitmap) {} argument 85 void onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, 87 void onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, 94 void onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, 96 void onDrawSprite(const SkBitmap& bitmap, int left, int top,
|
/external/skia/tests/ |
H A D | ARGBImageEncoderTest.cpp | 35 // A bitmap that should generate the above bytes: 36 SkBitmap bitmap; local 38 bitmap.allocPixels(SkImageInfo::Make(kWidth, kHeight, gColorTypes[ctIndex], 40 bitmap.eraseColor(SK_ColorBLUE); 42 SkCanvas canvas(bitmap); 50 // Transform the bitmap. 51 int bufferSize = bitmap.width() * bitmap.height() * 4; 55 REPORTER_ASSERT(reporter, enc->encodeStream(&out, bitmap, SkImageEncoder::kDefaultQuality));
|
H A D | BitmapHasherTest.cpp | 17 // Fill in bitmap with test data. 18 static void CreateTestBitmap(SkBitmap* bitmap, int width, int height, argument 20 bitmap->allocN32Pixels(width, height, kOpaque_SkAlphaType); 21 bitmap->eraseColor(color); 26 SkBitmap bitmap; local 29 CreateTestBitmap(&bitmap, 333, 555, SK_ColorBLUE, reporter); 30 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest)); 33 CreateTestBitmap(&bitmap, 555, 333, SK_ColorBLUE, reporter); 34 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest)); 37 CreateTestBitmap(&bitmap, 55 [all...] |
H A D | PDFInvalidBitmapTest.cpp | 33 SkBitmap bitmap; local 34 bitmap.setInfo(imageInfo); 35 bitmap.setPixelRef(SkNEW_ARGS(InvalidPixelRef, (imageInfo)))->unref(); 36 return bitmap;
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/ |
H A D | LruPoolStrategy.java | 6 void put(Bitmap bitmap); argument 9 String logBitmap(Bitmap bitmap); argument 11 int getSize(Bitmap bitmap); argument
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/ |
H A D | GifBitmapProvider.java | 22 public void release(Bitmap bitmap) { argument 23 if (!bitmapPool.put(bitmap)) { 24 bitmap.recycle();
|