Searched refs:bitmap (Results 51 - 75 of 139) sorted by relevance

123456

/frameworks/base/media/mca/filterfw/jni/
H A Djni_native_frame.cpp17 #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_RESUT_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
166 Java_android_filterfw_core_NativeFrame_setNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument
216 Java_android_filterfw_core_NativeFrame_getNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument
[all...]
H A Djni_gl_frame.cpp17 #include "android/bitmap.h"
218 jobject bitmap,
221 if (frame && bitmap) {
223 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels));
227 AndroidBitmap_unlockPixels(env, bitmap) == ANDROID_BITMAP_RESUT_SUCCESS);
235 jobject bitmap) {
237 if (frame && bitmap) {
239 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels));
242 return (AndroidBitmap_unlockPixels(env, bitmap) == ANDROID_BITMAP_RESUT_SUCCESS);
216 Java_android_filterfw_core_GLFrame_setNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size) argument
233 Java_android_filterfw_core_GLFrame_getNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap) argument
H A Djni_native_frame.h66 jobject bitmap,
73 jobject bitmap,
/frameworks/base/core/jni/android/graphics/
H A DGraphicsJNI.h43 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 store
114 * reference to the bitmap longe
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_TextureView.cpp147 SkBitmap bitmap; local
148 bitmap.setConfig(convertPixelFormat(buffer.format), buffer.width, buffer.height, bytesCount);
151 bitmap.setIsOpaque(true);
155 bitmap.setPixels(buffer.bits);
157 bitmap.setPixels(NULL);
162 nativeCanvas->setBitmapDevice(bitmap);
H A Dandroid_view_GLES20Canvas.cpp332 OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer,
335 JavaHeapBitmapRef bitmapRef(env, bitmap, buffer);
337 renderer->drawBitmap(bitmap, left, top, paint);
341 OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer,
345 JavaHeapBitmapRef bitmapRef(env, bitmap, buffer);
347 renderer->drawBitmap(bitmap, srcLeft, srcTop, srcRight, srcBottom,
352 OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, SkMatrix* matrix,
355 JavaHeapBitmapRef bitmapRef(env, bitmap, buffer);
357 renderer->drawBitmap(bitmap, matrix, paint);
363 SkBitmap* bitmap local
331 android_view_GLES20Canvas_drawBitmap(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, jfloat left, jfloat top, SkPaint* paint) argument
340 android_view_GLES20Canvas_drawBitmapRect(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) argument
351 android_view_GLES20Canvas_drawBitmapMatrix(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, SkMatrix* matrix, SkPaint* paint) argument
385 android_view_GLES20Canvas_drawBitmapMesh(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, jint meshWidth, jint meshHeight, jfloatArray vertices, jint offset, jintArray colors, jint colorOffset, SkPaint* paint) argument
401 android_view_GLES20Canvas_drawPatch(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, jbyteArray chunks, float left, float top, float right, float bottom, SkPaint* paint) argument
849 android_view_GLES20Canvas_copyLayer(JNIEnv* env, jobject clazz, Layer* layer, SkBitmap* bitmap) argument
[all...]
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A DCarouselViewHelper.java110 final Bitmap bitmap = getTexture(id);
111 if (bitmap != null) {
112 mSyncHandler.obtainMessage(SET_TEXTURE_N, id, 0, bitmap).sendToTarget();
122 final Bitmap bitmap = getDetailTexture(id);
123 if (bitmap != null) {
124 mSyncHandler.obtainMessage(SET_DETAIL_TEXTURE_N, id, 0, bitmap).sendToTarget();
176 * @return a valid bitmap
/frameworks/ex/carousel/test/src/com/android/carouseltest/
H A DCarouselTestActivity.java85 Bitmap bitmap = Bitmap.createBitmap(TEXTURE_WIDTH, TEXTURE_HEIGHT,
87 Canvas canvas = new Canvas(bitmap);
98 return bitmap;
103 Bitmap bitmap = Bitmap.createBitmap(DETAIL_TEXTURE_WIDTH, DETAIL_TEXTURE_HEIGHT,
105 Canvas canvas = new Canvas(bitmap);
110 return bitmap;
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGLFrame.java226 public void setBitmap(Bitmap bitmap) { argument
229 if (getFormat().getWidth() != bitmap.getWidth() ||
230 getFormat().getHeight() != bitmap.getHeight()) {
233 Bitmap rgbaBitmap = convertBitmapToRGBA(bitmap);
235 throw new RuntimeException("Could not set GL frame bitmap data!");
248 throw new RuntimeException("Could not get bitmap data from GL frame!");
392 private native boolean setNativeBitmap(Bitmap bitmap, int size); argument
394 private native boolean getNativeBitmap(Bitmap bitmap); argument
H A DSimpleFrame.java123 public void setBitmap(Bitmap bitmap) { argument
125 setGenericObjectValue(bitmap);
/frameworks/base/core/java/android/view/
H A DGLES20Canvas.java175 static native boolean nCopyLayer(int layerId, int bitmap); argument
738 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) { argument
739 if (bitmap.isRecycled()) throw new IllegalArgumentException("Cannot draw recycled bitmaps");
744 nDrawPatch(mRenderer, bitmap.mNativeBitmap, bitmap.mBuffer, chunks,
751 private static native void nDrawPatch(int renderer, int bitmap, byte[] buffer, byte[] chunks, argument
755 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { argument
756 if (bitmap.isRecycled()) throw new IllegalArgumentException("Cannot draw recycled bitmaps");
758 int modifiers = paint != null ? setupModifiers(bitmap, paint) : MODIFIER_NONE;
761 nDrawBitmap(mRenderer, bitmap
767 nDrawBitmap( int renderer, int bitmap, byte[] buffer, float left, float top, int paint) argument
771 drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) argument
784 nDrawBitmap(int renderer, int bitmap, byte[] buff, int matrix, int paint) argument
788 drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) argument
815 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument
841 nDrawBitmap(int renderer, int bitmap, byte[] buffer, float srcLeft, float srcTop, float srcRight, float srcBottom, float left, float top, float right, float bottom, int paint) argument
890 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument
918 nDrawBitmapMesh(int renderer, int bitmap, byte[] buffer, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int paint) argument
[all...]
H A DHardwareLayer.java168 * Copies this layer into the specified bitmap.
170 * @param bitmap The bitmap to copy they layer into
174 abstract boolean copyInto(Bitmap bitmap); argument
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp105 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...]
/frameworks/base/services/input/
H A DSpriteController.cpp134 update.state.surfaceWidth = update.state.icon.bitmap.width();
135 update.state.surfaceHeight = update.state.icon.bitmap.height();
152 int32_t desiredWidth = update.state.icon.bitmap.width();
153 int32_t desiredHeight = update.state.icon.bitmap.height();
216 surfaceCanvas.drawBitmap(update.state.icon.bitmap, 0, 0, &paint);
218 if (surfaceInfo.w > uint32_t(update.state.icon.bitmap.width())) {
220 surfaceCanvas.drawRectCoords(update.state.icon.bitmap.width(), 0,
221 surfaceInfo.w, update.state.icon.bitmap.height(), paint);
223 if (surfaceInfo.h > uint32_t(update.state.icon.bitmap.height())) {
225 surfaceCanvas.drawRectCoords(0, update.state.icon.bitmap
[all...]
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp634 const SkBitmap& bitmap(*nativeBitmap);
635 SkBitmap::Config config = bitmap.getConfig();
644 const SkBitmap& bitmap(*nativeBitmap);
645 SkBitmap::Config config = bitmap.getConfig();
655 const SkBitmap& bitmap(*nativeBitmap);
656 SkBitmap::Config config = bitmap.getConfig();
666 bitmap.lockPixels();
667 const int w = bitmap.width();
668 const int h = bitmap.height();
669 const void* p = bitmap
[all...]
/frameworks/rs/
H A DrsFont.h89 uint8_t *bitmap = NULL, uint32_t bitmapW = 0, uint32_t bitmapH = 0);
96 // Location of the cached glyph in the bitmap
111 // Values below contain a glyph's origin in the bitmap
136 uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH);
153 uint8_t *bitmap = NULL, uint32_t bitmapW = 0, uint32_t bitmapH = 0);
179 bool fitBitmap(FT_Bitmap_ *bitmap, uint32_t *retOriginX, uint32_t *retOriginY);
225 bool cacheBitmap(FT_Bitmap_ *bitmap, uint32_t *retOriginX, uint32_t *retOriginY);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DIconUtilities.java111 * Returns a bitmap suitable for the all apps view. The bitmap will be a power
112 * of two sized ARGB_8888 bitmap that can be used as a gl texture.
123 // Ensure the bitmap has a density.
125 Bitmap bitmap = bitmapDrawable.getBitmap();
126 if (bitmap.getDensity() == Bitmap.DENSITY_NONE) {
154 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight,
157 canvas.setBitmap(bitmap);
176 return bitmap;
/frameworks/base/core/java/android/provider/
H A DMediaStore.java536 Bitmap bitmap = null;
543 bitmap = BitmapFactory.decodeFileDescriptor(
554 return bitmap;
593 * @return Bitmap bitmap of specified thumbnail kind
597 Bitmap bitmap = null;
614 bitmap = BitmapFactory.decodeByteArray(sThumbBuf, 0, sThumbBuf.length);
615 if (bitmap == null) {
620 return bitmap;
625 bitmap = getMiniThumbFromFile(c, baseUri, cr, options);
626 if (bitmap !
[all...]
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DObjectBrowser.java96 Bitmap bitmap = BitmapFactory.decodeByteArray(thumbnail, 0, thumbnail.length);
97 if (bitmap != null) {
99 thumbView.setImageBitmap(bitmap);
/frameworks/base/core/java/android/gesture/
H A DGesture.java176 * Creates a bitmap of the gesture with a transparent background.
178 * @param width width of the target bitmap
179 * @param height height of the target bitmap
183 * @return the bitmap
186 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
187 final Canvas canvas = new Canvas(bitmap);
208 return bitmap;
212 * Creates a bitmap of the gesture with a transparent background.
218 * @return the bitmap
221 final Bitmap bitmap
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DCustomBar.java94 // bitmap url relative to this class
125 // look for a cached bitmap
126 Bitmap bitmap = Bridge.getCachedBitmap(pathOut[0], true /*isFramework*/);
127 if (bitmap == null) {
129 bitmap = Bitmap_Delegate.createBitmap(stream, false /*isMutable*/, density);
130 Bridge.setCachedBitmap(pathOut[0], bitmap, true /*isFramework*/);
136 if (bitmap != null) {
138 bitmap);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DMediaMetadataRetrieverTest.java89 Bitmap bitmap = retriever.getFrameAtTime(-1);
90 assertTrue(bitmap != null);
93 bitmap.compress(Bitmap.CompressFormat.JPEG, 75, stream);
96 Log.e(TAG, "Fails to convert the bitmap to a JPEG file for " + MediaNames.THUMBNAIL_METADATA_TEST_FILES[i]);
147 Bitmap bitmap = retriever.getFrameAtTime(-1);
148 assertTrue(bitmap != null);
151 bitmap.compress(Bitmap.CompressFormat.JPEG, 75, stream);
154 throw new Exception("Fails to convert the bitmap to a JPEG file for " + MediaNames.TEST_PATH_1, e);
/frameworks/base/libs/hwui/
H A DDisplayListRenderer.cpp140 SkBitmap* bitmap = mOwnedBitmapResources.itemAt(i); local
141 caches.resourceCache.decrementRefcountLocked(bitmap);
142 caches.resourceCache.destructorLocked(bitmap);
449 SkBitmap* bitmap = getBitmap(); local
454 bitmap, x, y, paint);
458 SkBitmap* bitmap = getBitmap(); local
462 bitmap, matrix, paint);
466 SkBitmap* bitmap = getBitmap(); local
477 (char*) indent, OP_NAMES[op], bitmap, f1, f2, f3, f4, f5, f6, f7, f8, paint);
481 SkBitmap* bitmap local
491 SkBitmap* bitmap = getBitmap(); local
508 SkBitmap* bitmap = getBitmap(); local
1054 SkBitmap* bitmap = getBitmap(); local
1071 SkBitmap* bitmap = getBitmap(); local
1080 SkBitmap* bitmap = getBitmap(); local
1097 SkBitmap* bitmap = getBitmapData(); local
1110 SkBitmap* bitmap = getBitmap(); local
1131 SkBitmap* bitmap = getBitmap(); local
1577 drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument
1588 drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) argument
1602 drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) argument
1615 drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument
1627 drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument
1644 drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, uint32_t width, uint32_t height, int8_t numColors, float left, float top, float right, float bottom, SkPaint* paint) argument
[all...]
H A DLayerRenderer.h62 ANDROID_API static bool copyLayer(Layer* layer, SkBitmap* bitmap);
/frameworks/base/media/tests/omxjpegdecoder/
H A Domx_jpeg_decoder.cpp62 extern int storeBitmapToFile(SkBitmap* bitmap, const char* filename) { argument
63 bitmap->lockPixels();
64 uint8_t* data = (uint8_t *)bitmap->getPixels();
65 int size = bitmap->getSize();

Completed in 319 milliseconds

123456