HomeSort by relevance Sort by last modified time
    Searched refs:bitmap (Results 426 - 450 of 1127) sorted by null

<<11121314151617181920>>

  /external/webkit/Source/WebCore/platform/graphics/android/rendering/
InspectorCanvas.cpp 61 void InspectorCanvas::commonDrawBitmap(const SkBitmap& bitmap,
69 void InspectorCanvas::drawBitmapRectToRect(const SkBitmap& bitmap,
  /frameworks/base/media/mca/filterfw/jni/
jni_native_frame.cpp 17 #include "android/bitmap.h"
168 jobject bitmap,
172 if (frame && bitmap) {
173 // Make sure frame size matches bitmap size
180 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&src_ptr));
210 return (AndroidBitmap_unlockPixels(env, bitmap) == ANDROID_BITMAP_RESULT_SUCCESS);
218 jobject bitmap,
222 if (frame && bitmap) {
224 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&dst_ptr));
226 // Make sure frame size matches bitmap siz
    [all...]
  /packages/apps/Gallery/src/com/android/camera/
PhotoAppWidgetConfigure.java 24 import android.graphics.Bitmap;
78 Bitmap bitmap = (Bitmap) data.getParcelableExtra("data"); local
81 if (helper.setPhoto(mAppWidgetId, bitmap)) {
  /external/kernel-headers/original/linux/
bitmap.h 12 * longs. The bitmap interface and available operations are listed
13 * here, in bitmap.h
16 * lib/bitmap.c. Functions implementations that are architecture
20 * See lib/bitmap.c for more details.
24 * The available bitmap operations and their rough meaning in the
25 * case that the bitmap is a single unsigned long are thus:
48 * bitmap_scnprintf(buf, len, src, nbits) Print bitmap src to buf
49 * bitmap_parse(ubuf, ulen, dst, nbits) Parse bitmap dst from user buf
50 * bitmap_scnlistprintf(buf, len, src, nbits) Print bitmap src as list to buf
51 * bitmap_parselist(buf, dst, nbits) Parse bitmap dst from lis
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/android/layers/
CanvasLayer.cpp 80 m_bitmap = layer.bitmap();
86 m_bitmap = layer.bitmap();
158 SkBitmapRef* CanvasLayer::bitmap() const function in class:WebCore::CanvasLayer
191 SkBitmap& bitmap = m_bitmap->bitmap();
195 canvas->drawBitmapRect(bitmap, 0, dst, 0);
  /external/webkit/Source/WebKit/android/plugins/
ANPCanvasInterface.cpp 30 static ANPCanvas* anp_newCanvas(const ANPBitmap* bitmap) {
32 return new ANPCanvas(*SkANP::SetBitmap(&bm, *bitmap));
143 static void anp_drawBitmap(ANPCanvas* canvas, const ANPBitmap* bitmap,
146 canvas->skcanvas->drawBitmap(*SkANP::SetBitmap(&bm, *bitmap),
151 static void anp_drawBitmapRect(ANPCanvas* canvas, const ANPBitmap* bitmap,
161 canvas->skcanvas->drawBitmapRect(*SkANP::SetBitmap(&bm, *bitmap), srcPtr,
  /frameworks/base/core/jni/android/graphics/
GraphicsJNI.h 43 static SkBitmap* getNativeBitmap(JNIEnv*, jobject bitmap);
52 /** Create a java Bitmap object given the native bitmap (required) and optional
55 static jobject createBitmap(JNIEnv* env, SkBitmap* bitmap, jbyteArray buffer,
59 static jobject createBitmap(JNIEnv* env, SkBitmap* bitmap, bool isMutable,
64 static jobject createBitmapRegionDecoder(JNIEnv* env, SkBitmapRegionDecoder* bitmap);
66 static jbyteArray allocateJavaPixelRef(JNIEnv* env, SkBitmap* bitmap,
69 /** Copy the colors in colors[] to the bitmap, convert to the correct
90 /** Used to hold a ref to the pixels when the Java bitmap may be collected.
106 jbyteArray fStorageObj; // The Java byte[] object used as the bitmap backing stor
    [all...]
  /frameworks/base/core/jni/
android_view_TextureView.cpp 161 SkBitmap bitmap; local
162 bitmap.setConfig(convertPixelFormat(buffer.format), buffer.width, buffer.height, bytesCount);
165 bitmap.setIsOpaque(true);
169 bitmap.setPixels(buffer.bits);
171 bitmap.setPixels(NULL);
176 SkCanvas* nativeCanvas = SkNEW_ARGS(SkCanvas, (bitmap));
  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
GLFrame.java 25 import android.graphics.Bitmap;
226 public void setBitmap(Bitmap bitmap) {
229 if (getFormat().getWidth() != bitmap.getWidth() ||
230 getFormat().getHeight() != bitmap.getHeight()) {
231 throw new RuntimeException("Bitmap dimensions do not match GL frame dimensions!");
233 Bitmap rgbaBitmap = convertBitmapToRGBA(bitmap);
235 throw new RuntimeException("Could not set GL frame bitmap data!");
241 public Bitmap getBitmap()
    [all...]
  /frameworks/ex/carousel/java/com/android/ex/carousel/
CarouselViewHelper.java 4 import android.graphics.Bitmap;
110 final Bitmap bitmap = getTexture(id); local
111 if (bitmap != null) {
112 mSyncHandler.obtainMessage(SET_TEXTURE_N, id, 0, bitmap).sendToTarget();
122 final Bitmap bitmap = getDetailTexture(id); local
123 if (bitmap != null) {
124 mSyncHandler.obtainMessage(SET_DETAIL_TEXTURE_N, id, 0, bitmap).sendToTarget();
147 mCarouselView.setTextureForItem(id, (Bitmap) msg.obj)
    [all...]
  /frameworks/ex/carousel/test/src/com/android/carouseltest/
CarouselTestActivity.java 26 import android.graphics.Bitmap;
51 private Bitmap mGlossyOverlay;
52 private Bitmap mBorder;
84 public Bitmap getTexture(int n) {
85 Bitmap bitmap = Bitmap.createBitmap(TEXTURE_WIDTH, TEXTURE_HEIGHT, local
86 Bitmap.Config.ARGB_8888);
87 Canvas canvas = new Canvas(bitmap);
98 return bitmap;
103 Bitmap bitmap = Bitmap.createBitmap(DETAIL_TEXTURE_WIDTH, DETAIL_TEXTURE_HEIGHT, local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
Action.java 20 import android.graphics.Bitmap;
39 private Bitmap mImage;
44 private Bitmap mPortraitImage;
45 private Bitmap mOverlayBitmap;
79 Bitmap bitmap = MasterImage.getImage().getLargeThumbnailBitmap(); local
80 if (bitmap != null) {
87 Bitmap bitmapCrop = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888)
    [all...]
  /packages/apps/VideoEditor/src/com/android/videoeditor/util/
FileUtils.java 28 import android.graphics.Bitmap;
30 import android.graphics.Bitmap.CompressFormat;
103 Bitmap bitmap = null; local
108 bitmap = BitmapFactory.decodeStream(is);
109 if (bitmap == null) {
114 if (!bitmap.compress(CompressFormat.JPEG, 100, fos)) {
115 throw new IllegalStateException("Cannot compress bitmap");
122 if (bitmap != null) {
123 bitmap.recycle()
    [all...]
  /external/skia/legacy/src/core/
SkDraw.cpp 146 static BitmapXferProc ChooseBitmapXferProc(const SkBitmap& bitmap,
184 switch (bitmap.config()) {
220 static void CallBitmapXferProc(const SkBitmap& bitmap, const SkIRect& rect,
223 switch (bitmap.config()) {
239 uint8_t* pixels = (uint8_t*)bitmap.getPixels();
241 const size_t rowBytes = bitmap.rowBytes();
267 be faster to operate directly on the device bitmap, rather than invoking
335 const SkBitmap* bitmap = blitter->justAnOpaqueColor(&value); local
336 SkASSERT(bitmap);
338 uint16_t* addr = bitmap->getAddr16(0, 0)
    [all...]
  /external/skia/legacy/src/images/
SkImageDecoder_libwebp.cpp 105 virtual bool onDecodeRegion(SkBitmap* bitmap, SkIRect rect);
307 static bool isConfigCompatible(SkBitmap* bitmap) {
308 SkBitmap::Config config = bitmap->config();
331 // 2. bitmap's config is compatible
332 // 3. bitmap's size is same as the required region (after sampled)
339 SkBitmap *bitmap = decodedBitmap; local
342 // allocates a temp bitmap
343 bitmap = new SkBitmap;
344 adb.reset(bitmap);
347 if (bitmap->isNull())
    [all...]
  /external/skia/src/images/
SkImageDecoder_libwebp.cpp 105 virtual bool onDecodeRegion(SkBitmap* bitmap, SkIRect rect);
301 static bool isConfigCompatible(SkBitmap* bitmap) {
302 SkBitmap::Config config = bitmap->config();
325 // 2. bitmap's config is compatible
326 // 3. bitmap's size is same as the required region (after sampled)
333 SkBitmap *bitmap = decodedBitmap; local
336 // allocates a temp bitmap
337 bitmap = new SkBitmap;
338 adb.reset(bitmap);
341 if (bitmap->isNull())
    [all...]
  /packages/apps/Nfc/src/com/android/nfc/
SendUi.java 29 import android.graphics.Bitmap;
165 Bitmap mScreenshotBitmap;
422 // did store the bitmap. Clear out the bitmap, reset
514 final class ScreenshotTask extends AsyncTask<Void, Void, Bitmap> {
516 protected Bitmap doInBackground(Void... params) {
521 protected void onPostExecute(Bitmap result) {
548 Bitmap createScreenshot() {
580 Bitmap bitmap = SurfaceControl.screenshot((int) dims[0], (int) dims[1]) local
    [all...]
  /development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/
ImageCache.java 23 import android.graphics.Bitmap;
24 import android.graphics.Bitmap.CompressFormat;
79 private HashSet<SoftReference<Bitmap>> mReusableBitmaps;
135 mReusableBitmaps = new HashSet<SoftReference<Bitmap>>();
154 // We're running on Honeycomb or later, so add the bitmap
156 mReusableBitmaps.add(new SoftReference<Bitmap>(oldValue.getBitmap()));
163 * for a bitmap cache
216 * Adds a bitmap to both memory and disk cache.
217 * @param data Unique identifier for the bitmap to store
218 * @param value The bitmap drawable to stor
297 Bitmap bitmap = null; local
342 Bitmap bitmap = null; local
556 Bitmap bitmap = value.getBitmap(); local
    [all...]
  /external/skia/legacy/src/views/
SkWidgets.cpp 506 bool SkBitmapView::getBitmap(SkBitmap* bitmap) const
508 if (bitmap)
509 *bitmap = fBitmap;
513 void SkBitmapView::setBitmap(const SkBitmap* bitmap, bool viewOwnsPixels)
515 if (bitmap)
517 fBitmap = *bitmap;
524 SkBitmap bitmap; local
526 if (SkImageDecoder::DecodeFile(path, &bitmap))
528 this->setBitmap(&bitmap, true);
529 bitmap.setOwnsPixels(false)
    [all...]
  /external/skia/src/views/
SkWidgets.cpp 506 bool SkBitmapView::getBitmap(SkBitmap* bitmap) const
508 if (bitmap)
509 *bitmap = fBitmap;
513 void SkBitmapView::setBitmap(const SkBitmap* bitmap, bool viewOwnsPixels)
515 if (bitmap)
517 fBitmap = *bitmap;
524 SkBitmap bitmap; local
526 if (SkImageDecoder::DecodeFile(path, &bitmap))
528 this->setBitmap(&bitmap, true);
529 bitmap.setOwnsPixels(false)
    [all...]
  /frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
KeyguardTransportControlView.java 23 import android.graphics.Bitmap;
103 if (mMetadata.bitmap != null) {
104 mMetadata.bitmap.recycle();
106 mMetadata.bitmap = (Bitmap) msg.obj;
107 mAlbumArt.setImageBitmap(mMetadata.bitmap);
158 public void setArtwork(int generationId, Bitmap bitmap) {
161 handler.obtainMessage(MSG_SET_ARTWORK, generationId, 0, bitmap).sendToTarget();
165 public void setAllMetadata(int generationId, Bundle metadata, Bitmap bitmap)
249 private Bitmap bitmap; field in class:KeyguardTransportControlView.Metadata
    [all...]
  /frameworks/base/core/java/android/view/
GLES20Canvas.java 19 import android.graphics.Bitmap;
183 static native boolean nCopyLayer(int layerId, int bitmap);
721 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) {
722 if (bitmap.isRecycled()) throw new IllegalArgumentException("Cannot draw recycled bitmaps");
727 nDrawPatch(mRenderer, bitmap.mNativeBitmap, bitmap.mBuffer, chunks,
734 private static native void nDrawPatch(int renderer, int bitmap, byte[] buffer, byte[] chunks,
738 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint)
    [all...]
  /external/webkit/Source/WebKit2/WebProcess/WebCoreSupport/mac/
WebDragClientMac.mm 80 RefPtr<ShareableBitmap> bitmap = ShareableBitmap::createShareable(IntSize([image size]), ShareableBitmap::SupportsAlpha);
81 OwnPtr<GraphicsContext> graphicsContext = bitmap->createGraphicsContext();
86 [image drawInRect:NSMakeRect(0, 0, bitmap->size().width(), bitmap->size().height()) fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1 respectFlipped:YES hints:nil];
90 return bitmap.release();
95 RefPtr<ShareableBitmap> bitmap = convertImageToBitmap(image.get());
97 if (!bitmap->createHandle(handle))
  /frameworks/base/cmds/bootanimation/
BootAnimation.cpp 105 SkBitmap bitmap;
107 &bitmap, SkBitmap::kNo_Config, SkImageDecoder::kDecodePixels_Mode);
112 // bitmap will go out of scope when we return from this method.
113 bitmap.lockPixels();
115 const int w = bitmap.width();
116 const int h = bitmap.height();
117 const void* p = bitmap.getPixels();
126 switch (bitmap.getConfig()) {
159 SkBitmap bitmap; local
164 codec->decode(&stream, &bitmap,
    [all...]
  /external/qemu/distrib/sdl-1.2.15/src/video/picogui/
SDL_pgvideo.c 194 if ( this->hidden->bitmap ) {
195 /* Free old bitmap */
200 pgDelete(this->hidden->bitmap);
209 /* Create a new picogui bitmap */
210 this->hidden->bitmap = pgCreateBitmap(width,height);
211 this->hidden->shm = *pgMakeSHMBitmap(this->hidden->bitmap);
226 /* 1. Incremental bitmap rendering
229 0,0,0,0,this->hidden->bitmap);
232 /* 2. Normal bitmap rendering
235 0,0,this->hidden->shm.width,this->hidden->shm.height,this->hidden->bitmap);
    [all...]

Completed in 1553 milliseconds

<<11121314151617181920>>