| /external/skia/gm/ |
| bitmaprect.cpp | 16 static void make_bitmap(SkBitmap* bitmap) { 17 bitmap->allocN32Pixels(64, 64); 19 SkCanvas canvas(*bitmap); 61 SkBitmap bitmap; variable 62 make_bitmap(&bitmap); variable 71 canvas->drawBitmap(bitmap, 0, 0, &paint); 73 canvas->drawBitmapRectToRect(bitmap, &srcR, dstR, &paint); 75 canvas->drawBitmapRect(bitmap, &src[i], dstR, &paint); 90 static void make_3x3_bitmap(SkBitmap* bitmap) { 102 bitmap->allocN32Pixels(gXSize, gYSize) 136 SkBitmap bitmap; variable 137 make_3x3_bitmap(&bitmap); variable [all...] |
| xfermodes3.cpp | 22 * This tests drawing device-covering rects with solid colors and bitmap shaders over a 172 SkBitmap bitmap; local 173 if (ropixels.asROBitmap(&bitmap)) { 174 canvas->drawBitmap(bitmap, 0, 0);
|
| /external/skia/platform_tools/nacl/src/ |
| nacl_sample.cpp | 95 // Create a bitmap using the fPixelBuffer pixels 96 SkBitmap bitmap; local 97 bitmap.setConfig(SkBitmap::kARGB_8888_Config, w, h); 98 bitmap.setPixels(data); 99 // Create a canvas with the bitmap as the backend 100 SkCanvas canvas(bitmap);
|
| /external/skia/samplecode/ |
| SampleBitmapRect.cpp | 36 static void make_bitmap(SkBitmap* bitmap) { 37 bitmap->allocN32Pixels(INT_SIZE, INT_SIZE); 38 SkCanvas canvas(*bitmap); 126 SkBitmap bitmap; local 127 make_bitmap(&bitmap); 131 canvas->drawBitmap(bitmap, 0, 0, &paint); 136 canvas->drawBitmapRectToRect(bitmap, &srcR, fDstR[i], &paint);
|
| SamplePath.cpp | 75 SkBitmap bitmap; local 76 bitmap.allocN32Pixels(300, 200); 78 SkCanvas canvas(bitmap);
|
| /external/skia/src/images/ |
| SkDecodingImageGenerator.cpp | 88 // a bitmap described by fInfo and fRowBytes 89 const size_t fRowBytes; // rowbytes for the destination bitmap 173 SkBitmap bitmap; local 176 bool success = decoder->decode(fStream, &bitmap, info.colorType(), 184 SkASSERT(bitmap.canCopyTo(info.colorType())); 185 bool copySuccess = bitmap.copyTo(&bm, info.colorType(), &allocator); 187 SkDEBUGFAIL("bitmap.copyTo(requestedConfig) failed."); 193 SkASSERT(check_alpha(info.alphaType(), bitmap.alphaType())); 197 if (kIndex_8_SkColorType != bitmap.colorType()) { 200 SkColorTable* ctable = bitmap.getColorTable() 226 SkBitmap bitmap; local [all...] |
| /external/skia/src/utils/ |
| SkGatherPixelRefsAndRects.h | 117 virtual void drawBitmap(const SkDraw& draw, const SkBitmap& bitmap, 122 SkRect bitmapRect = SkRect::MakeWH(SkIntToScalar(bitmap.width()), 123 SkIntToScalar(bitmap.height())); 126 fPRCont->add(bitmap.pixelRef(), mappedRect); 133 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, 139 SkRect bitmapRect = SkRect::MakeWH(SkIntToScalar(bitmap.width()), 140 SkIntToScalar(bitmap.height())); 143 fPRCont->add(bitmap.pixelRef(), mappedRect); 150 virtual void drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap, 154 SkRect bitmapRect = SkRect::MakeWH(SkIntToScalar(bitmap.width()) 163 SkBitmap bitmap; variable 205 SkBitmap bitmap; variable 252 SkBitmap bitmap; variable [all...] |
| /external/skia/tests/ |
| CanvasStateTest.cpp | 192 SkBitmap bitmap; local 193 bitmap.allocN32Pixels(10, 10); 194 SkCanvas canvas(bitmap); 216 SkBitmap bitmap; local 217 bitmap.allocN32Pixels(10, 10); 218 SkCanvas canvas(bitmap); 241 SkBitmap bitmap; local 242 bitmap.allocN32Pixels(WIDTH, HEIGHT); 243 SkCanvas canvas(bitmap);
|
| /external/zxing/qr_scanner/src/com/google/zxing/client/android/ |
| DecodeHandler.java | 74 BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source)); local 76 rawResult = multiFormatReader.decodeWithState(bitmap);
|
| /frameworks/av/media/libmedia/ |
| IMediaMetadataRetriever.cpp | 246 sp<IMemory> bitmap = getFrameAtTime(timeUs, option); local 247 if (bitmap != 0) { // Don't send NULL across the binder interface 249 reply->writeStrongBinder(bitmap->asBinder());
|
| /frameworks/base/core/java/android/app/ |
| SharedElementCallback.java | 20 import android.graphics.Bitmap; 46 private static final String BUNDLE_SNAPSHOT_BITMAP = "sharedElement:snapshot:bitmap"; 156 Bitmap bitmap = TransitionUtils.createDrawableBitmap(d); local 157 if (bitmap != null) { 159 bundle.putParcelable(BUNDLE_SNAPSHOT_BITMAP, bitmap); 201 Bitmap bitmap = (Bitmap) bundle.getParcelable(BUNDLE_SNAPSHOT_BITMAP); local 202 if (bitmap == null) 217 Bitmap bitmap = (Bitmap) snapshot; local [all...] |
| /frameworks/base/core/java/com/android/internal/util/ |
| ImageUtils.java | 19 import android.graphics.Bitmap; 38 // Size of the smaller bitmap we're actually going to scan. 42 private Bitmap mTempCompactBitmap; 48 * Checks whether a bitmap is grayscale. Grayscale here means "very close to a perfect 51 * Instead of scanning every pixel in the bitmap, we first resize the bitmap to no more than 55 public boolean isGrayscale(Bitmap bitmap) { 56 int height = bitmap.getHeight(); 57 int width = bitmap.getWidth() [all...] |
| /frameworks/base/core/jni/ |
| android_view_TextureView.cpp | 161 SkBitmap bitmap; local 162 bitmap.setInfo(convertPixelFormat(buffer), bytesCount); 165 bitmap.setPixels(buffer.bits); 167 bitmap.setPixels(NULL); 171 INVOKEV(canvas, gCanvasClassInfo.setNativeBitmap, reinterpret_cast<jlong>(&bitmap));
|
| /frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
| ObjectBrowser.java | 23 import android.graphics.Bitmap; 96 Bitmap bitmap = BitmapFactory.decodeByteArray(thumbnail, 0, thumbnail.length); local 97 if (bitmap != null) { 99 thumbView.setImageBitmap(bitmap);
|
| /frameworks/base/services/core/jni/ |
| com_android_server_AssetAtlasService.cpp | 63 SkBitmap* bitmap = new SkBitmap; local 64 bitmap->allocN32Pixels(width, height); 65 bitmap->eraseColor(0); 66 INVOKEV(canvas, gCanvasClassInfo.setNativeBitmap, reinterpret_cast<jlong>(bitmap)); 68 return reinterpret_cast<jlong>(bitmap); 74 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 77 delete bitmap; 94 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 95 // The goal of this method is to copy the bitmap into the GraphicBuffer 184 // Upload the content of the bitmap in the GraphicBuffe [all...] |
| /frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
| BitmapShader_Delegate.java | 70 Bitmap_Delegate bitmap = Bitmap_Delegate.getDelegate(native_bitmap); local 71 if (bitmap == null) { 76 bitmap.getImage(),
|
| /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
| RenderDrawable.java | 29 import android.graphics.Bitmap; 101 // create an Android bitmap around the BufferedImage 102 Bitmap bitmap = Bitmap_Delegate.createBitmap(image, local 105 // create a Canvas around the Android bitmap 106 Canvas canvas = new Canvas(bitmap);
|
| /frameworks/minikin/sample/ |
| example_skia.cpp | 134 SkBitmap bitmap; local 135 bitmap.allocN32Pixels(width, height); 136 SkCanvas canvas(bitmap); 147 SkImageEncoder::EncodeFile("/data/local/tmp/foo.png", bitmap, SkImageEncoder::kPNG_Type, 100);
|
| /frameworks/opt/bitmap/src/com/android/bitmap/ |
| ReusableBitmap.java | 17 package com.android.bitmap; 19 import android.graphics.Bitmap; 22 * A simple bitmap wrapper. Currently supports reference counting and logical width/height 23 * (which may differ from a bitmap's reported width/height due to bitmap reuse). 27 public final Bitmap bmp; 35 public ReusableBitmap(final Bitmap bitmap) { 36 this(bitmap, true /* reusable */); 39 public ReusableBitmap(final Bitmap bitmap, final boolean reusable) [all...] |
| /frameworks/opt/bitmap/src/com/android/bitmap/util/ |
| InputStreamBuffer.java | 17 package com.android.bitmap.util;
|
| /frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
| MediaControllerGlue.java | 4 import android.graphics.Bitmap; 179 Bitmap bitmap = mMediaController.getMetadata().getDescription().getIconBitmap(); local 180 return bitmap == null ? null : new BitmapDrawable(getContext().getResources(), bitmap);
|
| /frameworks/volley/src/com/android/volley/toolbox/ |
| ImageRequest.java | 26 import android.graphics.Bitmap; 27 import android.graphics.Bitmap.Config; 32 * back with a decoded Bitmap. 34 public class ImageRequest extends Request<Bitmap> { 44 private final Response.Listener<Bitmap> mListener; 62 * @param listener Listener to receive the decoded bitmap 63 * @param maxWidth Maximum width to decode this bitmap to, or zero for none 64 * @param maxHeight Maximum height to decode this bitmap to, or zero for 66 * @param decodeConfig Format to decode the bitmap to 69 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight 140 Bitmap bitmap = null; local [all...] |
| /packages/apps/Camera2/src/com/android/camera/data/ |
| LocalDataUtil.java | 19 import android.graphics.Bitmap; 58 * Decodes the dimension of a bitmap. 60 * @param path The path to the bitmap. 83 * Decodes the dimension of a bitmap. 85 * @param is An input stream with the data of the bitmap. 97 Log.e(TAG, "Bitmap dimension decoding failed"); 115 public static Bitmap loadImageThumbnailFromStream(InputStream stream, int imageWidth, 128 // Generate Bitmap of maximum size that fits into widthBound x heightBound. 142 // Bitmap requests: 155 Bitmap b = BitmapFactory.decodeStream(stream, null, opts) 188 Bitmap bitmap = null; local [all...] |
| /packages/apps/Contacts/src/com/android/contacts/util/ |
| ImageViewDrawableSetter.java | 20 import android.graphics.Bitmap; 55 public Bitmap setupContactPhoto(Contact contactData, ImageView photoView) { 86 protected Bitmap setCompressedImage(byte[] compressed) { 131 private Bitmap previousBitmap() { 167 Bitmap bitmap = BitmapFactory.decodeByteArray(compressed, 0, compressed.length); local 168 if (bitmap == null) { 171 if (bitmap.getHeight() != bitmap.getWidth()) { 172 // Crop the bitmap into a square [all...] |
| /packages/apps/Gallery/src/com/android/camera/gallery/ |
| Image.java | 24 import android.graphics.Bitmap; 151 public Bitmap thumbBitmap(boolean rotateAsNeeded) { 152 Bitmap bitmap = null; local 155 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 156 bitmap = BitmapManager.instance().getThumbnail(mContentResolver, mId, 159 if (bitmap != null && rotateAsNeeded) { 160 bitmap = Util.rotate(bitmap, getDegreesRotated()); 163 return bitmap; [all...] |