/external/skia/gm/ |
smallimage.cpp | 5 SkBitmap bitmap; local 6 if (GetResourceAsBitmap("randPixels.png", &bitmap)) { 7 canvas->drawBitmap(bitmap, 0.0f, 0.0f);
|
colorwheel.cpp | 14 SkBitmap bitmap; local 15 if (GetResourceAsBitmap(resource, &bitmap)) { 16 canvas->drawBitmap(bitmap, SkIntToScalar(x), SkIntToScalar(y));
|
grayscalejpg.cpp | 18 SkBitmap bitmap; local 19 if (GetResourceAsBitmap(kResource, &bitmap)) { 20 canvas->drawBitmap(bitmap, 0.0f, 0.0f);
|
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/ |
test_image_decoder.cpp | 25 SkBitmap bitmap; local 26 if (!(SkImageDecoder::DecodeFile(argv[1], &bitmap))) { 29 if (bitmap.empty()) {
|
/external/skia/tests/ |
BitmapHasherTest.cpp | 17 // Fill in bitmap with test data. 18 static void CreateTestBitmap(SkBitmap* bitmap, int width, int height, 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, 555, 333, SK_ColorGREEN, reporter) [all...] |
PDFInvalidBitmapTest.cpp | 33 SkBitmap bitmap; local 34 bitmap.setInfo(imageInfo); 35 bitmap.setPixelRef(SkNEW_ARGS(InvalidPixelRef, (imageInfo)))->unref(); 36 return bitmap;
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
BitmapCache.java | 17 package com.android.bitmap;
|
DecodeAggregator.java | 17 package com.android.bitmap;
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
BitmapResource.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 10 * A resource wrapping a {@link android.graphics.Bitmap} object. 12 public class BitmapResource implements Resource<Bitmap> { 13 private final Bitmap bitmap; field in class:BitmapResource 17 * Returns a new {@link BitmapResource} wrapping the given {@link Bitmap} if the Bitmap is non-null or null if the 18 * given Bitmap is null. 20 * @param bitmap A Bitmap [all...] |
FileDescriptorBitmapDecoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 4 import android.graphics.Bitmap; 16 * An {@link com.bumptech.glide.load.ResourceDecoder} for decoding {@link android.graphics.Bitmap}s from 19 public class FileDescriptorBitmapDecoder implements ResourceDecoder<ParcelFileDescriptor, Bitmap> { 44 public Resource<Bitmap> decode(ParcelFileDescriptor source, int width, int height) throws IOException { 45 Bitmap bitmap = bitmapDecoder.decode(source, bitmapPool, width, height, decodeFormat); local 46 return BitmapResource.obtain(bitmap, bitmapPool); 51 return "FileDescriptorBitmapDecoder.com.bumptech.glide.load.data.bitmap";
|
StreamBitmapDecoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 4 import android.graphics.Bitmap; 16 * {@link com.bumptech.glide.load.resource.bitmap.Downsampler} to decode an {@link android.graphics.Bitmap} from an 19 public class StreamBitmapDecoder implements ResourceDecoder<InputStream, Bitmap> { 20 private static final String ID = "StreamBitmapDecoder.com.bumptech.glide.load.resource.bitmap"; 49 public Resource<Bitmap> decode(InputStream source, int width, int height) { 50 Bitmap bitmap = downsampler.decode(source, bitmapPool, width, height, decodeFormat); local 51 return BitmapResource.obtain(bitmap, bitmapPool) [all...] |
BitmapEncoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 14 * An {@link com.bumptech.glide.load.ResourceEncoder} that writes {@link android.graphics.Bitmap}s to 18 * {@link android.graphics.Bitmap}s that return true from {@link android.graphics.Bitmap#hasAlpha()}} are written 19 * using {@link android.graphics.Bitmap.CompressFormat#PNG} to preserve alpha and all other bitmaps are written 20 * using {@link android.graphics.Bitmap.CompressFormat#JPEG}. 23 * @see android.graphics.Bitmap#compress(android.graphics.Bitmap.CompressFormat, int, java.io.OutputStream) 25 public class BitmapEncoder implements ResourceEncoder<Bitmap> { 42 final Bitmap bitmap = resource.get(); local [all...] |
BitmapDecoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 9 * A bitmap decoder for a given resource type. 11 * @param <T> The type of resource this decoder can decode a {@link Bitmap} from. 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 [all...] |
FitCenter.java | 1 package com.bumptech.glide.load.resource.bitmap; 4 import android.graphics.Bitmap; 23 protected Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight) { 29 return "FitCenter.com.bumptech.glide.load.resource.bitmap";
|
/external/wpa_supplicant_8/src/ap/ |
p2p_hostapd.c | 96 u8 bitmap; local 105 bitmap = P2P_MAN_DEVICE_MANAGEMENT; 107 bitmap |= P2P_MAN_CROSS_CONNECTION_PERMITTED; 108 bitmap |= P2P_MAN_COEXISTENCE_OPTIONAL; 109 *eid++ = bitmap;
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
Parallaxable.java | 17 package com.android.bitmap.drawable;
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
ImageEncoder.java | 26 import android.graphics.Bitmap; 27 import android.graphics.Bitmap.CompressFormat; 55 Bitmap bitmap = input.getBitmap(); local 56 bitmap.compress(CompressFormat.JPEG, mQuality, mOutputStream);
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
CanvasTexture.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 24 // The subclasses should override onDraw() to draw on the bitmap. 37 protected Bitmap onGetBitmap() { 38 Bitmap bitmap = Bitmap.createBitmap(mWidth, mHeight, mConfig); local 39 mCanvas = new Canvas(bitmap); 40 onDraw(mCanvas, bitmap); 41 return bitmap; [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
VideoThumbnailRequest.java | 21 import android.graphics.Bitmap; 59 protected Bitmap getBitmapForResource() throws IOException { 61 Bitmap bitmap = null; local 64 bitmap = Thumbnails.getThumbnail(cr, mediaId, Thumbnails.MICRO_KIND, null); 69 bitmap = retriever.getFrameAtTime(); 74 if (bitmap != null) { 75 mDescriptor.updateSourceDimensions(bitmap.getWidth(), bitmap.getHeight()); 77 return bitmap; [all...] |
/external/jemalloc/test/unit/ |
bitmap.c | 11 "Bitmap size is smaller than expected"); 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 = malloc(sizeof(bitmap_t) * local 101 bitmap_t *bitmap = malloc(sizeof(bitmap_t) * local [all...] |
/external/jmonkeyengine/engine/src/android/com/jme3/texture/plugins/ |
AndroidImageLoader.java | 3 import android.graphics.Bitmap; 14 Bitmap bitmap = imageInfo.getBitmap(); local 16 Image image = new Image(imageInfo.getFormat(), bitmap.getWidth(), bitmap.getHeight(), null);
|
/external/replicaisland/src/com/replica/replicaisland/ |
DebugSystem.java | 68 DrawableBitmap bitmap = factory.allocateDrawableBitmap(); local 69 if (bitmap != null) { 71 bitmap.resize((int)texture.width, (int)texture.height); 73 bitmap.setWidth((int)width); 74 bitmap.setHeight((int)height); 75 bitmap.setTexture(texture); 78 render.scheduleForDraw(bitmap, mWorkVector, SortConstants.HUD, true);
|
/external/skia/bench/ |
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/ |
pdf_viewer_main.cpp | 98 static void setup_bitmap(SkBitmap* bitmap, int width, int height, SkColor color) { 99 bitmap->allocN32Pixels(width, height); 100 bitmap->eraseColor(color); 123 SkBitmap bitmap; local 124 SkAutoTUnref<SkBaseDevice> device(SkNEW_ARGS(SkBitmapDevice, (bitmap))); 131 SkBitmap bitmap; 140 setup_bitmap(&bitmap, 3 * (int)SkScalarToDouble(width), 3 * (int)SkScalarToDouble(height), 143 setup_bitmap(&bitmap, (int)SkScalarToDouble(width), (int)SkScalarToDouble(height), 148 device.reset(SkNEW_ARGS(SkBitmapDevice, (bitmap))); 156 gDumpBitmap = &bitmap; [all...] |