Searched refs:bitmap (Results 1 - 25 of 131) sorted by relevance

123456

/frameworks/base/opengl/java/android/opengl/
H A DGLUtils.java44 * return the internal format as defined by OpenGL ES of the supplied bitmap.
45 * @param bitmap
46 * @return the internal format of the bitmap.
48 public static int getInternalFormat(Bitmap bitmap) { argument
49 if (bitmap == null) {
52 if (bitmap.isRecycled()) {
53 throw new IllegalArgumentException("bitmap is recycled");
55 int result = native_getInternalFormat(bitmap);
63 * Return the type as defined by OpenGL ES of the supplied bitmap, if there
64 * is one. If the bitmap i
70 getType(Bitmap bitmap) argument
106 texImage2D(int target, int level, int internalformat, Bitmap bitmap, int border) argument
132 texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument
154 texImage2D(int target, int level, Bitmap bitmap, int border) argument
189 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap) argument
214 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument
282 native_getInternalFormat(Bitmap bitmap) argument
283 native_getType(Bitmap bitmap) argument
284 native_texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument
286 native_texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument
[all...]
/frameworks/base/libs/hwui/
H A DTextureCache.cpp105 void TextureCache::operator()(SkBitmap*& bitmap, Texture*& texture) { argument
123 Texture* TextureCache::get(SkBitmap* bitmap) { argument
124 Texture* texture = mCache.get(bitmap);
127 if (bitmap->width() > mMaxTextureSize || bitmap->height() > mMaxTextureSize) {
129 bitmap->width(), bitmap->height(), mMaxTextureSize, mMaxTextureSize);
133 const uint32_t size = bitmap->rowBytes() * bitmap->height();
134 // Don't even try to cache a bitmap tha
163 getTransient(SkBitmap* bitmap) argument
173 remove(SkBitmap* bitmap) argument
177 removeDeferred(SkBitmap* bitmap) argument
211 generateTexture(SkBitmap* bitmap, Texture* texture, bool regenerate) argument
272 uploadLoFiTexture(bool resize, SkBitmap* bitmap, uint32_t width, uint32_t height) argument
[all...]
H A DGradientCache.cpp119 SkBitmap bitmap; local
120 bitmap.setConfig(SkBitmap::kARGB_8888_Config, 1024, 1);
121 bitmap.allocPixels();
122 bitmap.eraseColor(0);
124 SkCanvas canvas(bitmap);
128 points[1].set(bitmap.width(), 0.0f);
137 canvas.drawRectCoords(0.0f, 0.0f, bitmap.width(), 1.0f, p);
140 const uint32_t size = bitmap.rowBytes() * bitmap.height();
146 generateTexture(&bitmap, textur
154 generateTexture(SkBitmap* bitmap, Texture* texture) argument
[all...]
H A DTextureCache.h62 void operator()(SkBitmap*& bitmap, Texture*& texture);
65 * Returns the texture associated with the specified bitmap. If the texture
68 Texture* get(SkBitmap* bitmap);
70 * Returns the texture associated with the specified bitmap. The generated
73 Texture* getTransient(SkBitmap* bitmap);
75 * Removes the texture associated with the specified bitmap.
78 void remove(SkBitmap* bitmap);
80 * Removes the texture associated with the specified bitmap. This is meant
83 void removeDeferred(SkBitmap* bitmap);
120 * Generates the texture from a bitmap int
[all...]
/frameworks/base/media/tests/omxjpegdecoder/
H A Djpeg_decoder_bench.cpp53 SkBitmap* bitmap) {
58 // Decode the input stream and then use the bitmap.
59 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) {
63 printf("WidthxHeight: %dx%d\n", bitmap->width(), bitmap->height());
70 SkBitmap* bitmap) {
75 // Decode the input stream and then use the bitmap.
76 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) {
82 return storeBitmapToFile(bitmap, filename);
89 SkBitmap* bitmap local
52 testDecodeBounds(SkImageDecoder* decoder, SkStream* stream, SkBitmap* bitmap) argument
69 testDecodePixels(SkImageDecoder* decoder, SkStream* stream, SkBitmap* bitmap) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBitmapShader.java20 * Shader used to draw a bitmap as a texture. The bitmap can be repeated or
32 * Call this to create a new shader that will draw with a bitmap.
34 * @param bitmap The bitmap to use inside the shader
35 * @param tileX The tiling mode for x to draw the bitmap in.
36 * @param tileY The tiling mode for y to draw the bitmap in.
38 public BitmapShader(Bitmap bitmap, TileMode tileX, TileMode tileY) { argument
39 mBitmap = bitmap;
40 final int b = bitmap
[all...]
H A DCanvas.java29 * the draw calls (writing into the bitmap), a drawing primitive (e.g. Rect,
77 // Maximum bitmap size as defined in Skia's native code
105 * Construct an empty raster canvas. Use setBitmap() to specify a bitmap to
107 * this will typically be replaced when a target bitmap is set for the
111 // 0 means no native bitmap
117 * Construct a canvas with the specified bitmap to draw into. The bitmap
121 * bitmap's density.
123 * @param bitmap Specifies a mutable bitmap fo
125 Canvas(Bitmap bitmap) argument
179 setBitmap(Bitmap bitmap) argument
1024 throwIfRecycled(Bitmap bitmap) argument
1042 drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) argument
1064 drawBitmap(Bitmap bitmap, float left, float top, Paint paint) argument
1092 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument
1123 drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) argument
1194 drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) argument
1234 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument
1628 native_setBitmap(int nativeCanvas, int bitmap) argument
1697 native_drawBitmap(int nativeCanvas, int bitmap, float left, float top, int nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument
1703 native_drawBitmap(int nativeCanvas, int bitmap, Rect src, RectF dst, int nativePaintOrZero, int screenDensity, int bitmapDensity) argument
1708 native_drawBitmap(int nativeCanvas, int bitmap, Rect src, Rect dst, int nativePaintOrZero, int screenDensity, int bitmapDensity) argument
[all...]
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DBitmapFactoryTest.java41 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fd);
42 assertNotNull("BitmapFactory returned null", bitmap);
43 assertEquals("Bitmap width", 1, bitmap.getWidth());
44 assertEquals("Bitmap height", 1, bitmap.getHeight());
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp225 SkBitmap bitmap; local
227 bitmap.setConfig(config, width, height);
229 jbyteArray buff = GraphicsJNI::allocateJavaPixelRef(env, &bitmap, NULL);
236 0, 0, width, height, bitmap);
239 return GraphicsJNI::createBitmap(env, new SkBitmap(bitmap), buff, isMutable, NULL, NULL);
254 static void Bitmap_destructor(JNIEnv* env, jobject, SkBitmap* bitmap) { argument
257 android::uirenderer::Caches::getInstance().resourceCache.destructor(bitmap);
261 delete bitmap;
264 static void Bitmap_recycle(JNIEnv* env, jobject, SkBitmap* bitmap) { argument
267 android::uirenderer::Caches::getInstance().resourceCache.recycle(bitmap);
281 Bitmap_compress(JNIEnv* env, jobject clazz, SkBitmap* bitmap, int format, int quality, jobject jstream, jbyteArray jstorage) argument
313 Bitmap_erase(JNIEnv* env, jobject, SkBitmap* bitmap, jint color) argument
317 Bitmap_width(JNIEnv* env, jobject, SkBitmap* bitmap) argument
321 Bitmap_height(JNIEnv* env, jobject, SkBitmap* bitmap) argument
325 Bitmap_rowBytes(JNIEnv* env, jobject, SkBitmap* bitmap) argument
329 Bitmap_config(JNIEnv* env, jobject, SkBitmap* bitmap) argument
333 Bitmap_getGenerationId(JNIEnv* env, jobject, SkBitmap* bitmap) argument
337 Bitmap_hasAlpha(JNIEnv* env, jobject, SkBitmap* bitmap) argument
341 Bitmap_setHasAlpha(JNIEnv* env, jobject, SkBitmap* bitmap, jboolean hasAlpha) argument
372 SkBitmap* bitmap = new SkBitmap; local
413 Bitmap_writeToParcel(JNIEnv* env, jobject, const SkBitmap* bitmap, jboolean isMutable, jint density, jobject parcel) argument
493 Bitmap_getPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y) argument
511 Bitmap_getPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height) argument
538 Bitmap_setPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y, SkColor color) argument
554 Bitmap_setPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height) argument
561 Bitmap_copyPixelsToBuffer(JNIEnv* env, jobject, const SkBitmap* bitmap, jobject jbuffer) argument
574 Bitmap_copyPixelsFromBuffer(JNIEnv* env, jobject, const SkBitmap* bitmap, jobject jbuffer) argument
634 Bitmap_prepareToDraw(JNIEnv* env, jobject, SkBitmap* bitmap) argument
[all...]
H A DNinePatchImpl.cpp40 static bool getColor(const SkBitmap& bitmap, int x, int y, SkColor* c) { argument
41 switch (bitmap.getConfig()) {
43 *c = SkUnPreMultiply::PMColorToColor(*bitmap.getAddr32(x, y));
46 *c = SkPixel16ToPixel32(*bitmap.getAddr16(x, y));
50 SkPixel4444ToPixel32(*bitmap.getAddr16(x, y)));
53 SkColorTable* ctable = bitmap.getColorTable();
55 (*ctable)[*bitmap.getAddr8(x, y)]);
71 const SkBitmap& bitmap, const SkPaint& paint,
80 if (!getColor(bitmap, src.fLeft, src.fTop, &c)) {
91 canvas->drawBitmapRect(bitmap,
70 drawStretchyPatch(SkCanvas* canvas, SkIRect& src, const SkRect& dst, const SkBitmap& bitmap, const SkPaint& paint, SkColor initColor, uint32_t colorHint, bool hasXfer) argument
105 NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const android::Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion) argument
[all...]
H A DNinePatch.cpp31 const SkBitmap& bitmap, const android::Res_png_9patch& chunk,
69 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint,
88 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL);
105 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL);
113 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint,
118 SkASSERT(bitmap);
125 draw(env, canvas, bounds, bitmap, chunkObj, paint, destDensity, srcDensity);
129 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint,
134 SkASSERT(bitmap);
140 draw(env, canvas, bounds, bitmap, chunkOb
68 draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument
112 drawF(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRectF, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument
128 drawI(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRect, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument
143 getTransparentRegion(JNIEnv* env, jobject, const SkBitmap* bitmap, jbyteArray chunkObj, jobject boundsRect) argument
[all...]
/frameworks/base/tests/BrowserTestPlugin/jni/event/
H A DEventPlugin.h38 void drawPlugin(const ANPBitmap& bitmap, const ANPRectI& clip);
H A DEventPlugin.cpp47 void EventPlugin::drawPlugin(const ANPBitmap& bitmap, const ANPRectI& clip) { argument
50 inst(), bitmap.width, bitmap.height);
58 const float zoomFactorW = static_cast<float>(bitmap.width) / W;
59 const float zoomFactorH = static_cast<float>(bitmap.height) / H;
71 ANPCanvas* canvas = gCanvasI.newCanvas(&bitmap);
147 drawPlugin(evt->data.draw.data.bitmap, evt->data.draw.clip);
/frameworks/base/media/java/android/media/
H A DFaceDetector.java33 * of a face in a bitmap.
127 * face found. The bitmap must be in 565 format (for now).
129 * @param bitmap the {@link android.graphics.Bitmap} graphic to be analyzed
139 public int findFaces(Bitmap bitmap, Face[] faces) argument
144 if (bitmap.getWidth() != mWidth || bitmap.getHeight() != mHeight) {
146 "bitmap size doesn't match initialization");
153 int numFaces = fft_detect(bitmap);
190 native private int fft_detect(Bitmap bitmap); argument
H A DThumbnailUtils.java49 /* Maximum pixels size for created bitmap. */
99 Bitmap bitmap = null;
103 bitmap = sizedThumbnailBitmap.mBitmap;
106 if (bitmap == null) {
125 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, options);
144 bitmap = extractThumbnail(bitmap,
148 return bitmap;
159 Bitmap bitmap = null;
163 bitmap
[all...]
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A DCarouselView.java347 * @param bitmap the bitmap image to show
349 public void setTextureForItem(int n, Bitmap bitmap) { argument
350 mController.setTextureForItem(n, bitmap);
365 * @param bitmap the bitmap to show as the detail
368 Bitmap bitmap) {
369 mController.setDetailTextureForItem(n, offx, offy, loffx, loffy, bitmap);
373 * Sets the bitmap to show on a card when the card draws the very first time.
374 * Generally, this bitmap wil
367 setDetailTextureForItem(int n, float offx, float offy, float loffx, float loffy, Bitmap bitmap) argument
380 setDefaultBitmap(Bitmap bitmap) argument
392 setLoadingBitmap(Bitmap bitmap) argument
415 setBackgroundBitmap(Bitmap bitmap) argument
425 setDetailLoadingBitmap(Bitmap bitmap) argument
436 setDetailLineBitmap(Bitmap bitmap) argument
[all...]
H A DCarouselViewUtilities.java16 * Debug utility to write the given bitmap to a file.
19 * @param bitmap the bitmap to write
23 public static boolean writeBitmapToFile(Context context, Bitmap bitmap, String filename) { argument
31 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
H A DCarouselController.java368 * @param bitmap the bitmap image to show
370 public void setTextureForItem(int n, Bitmap bitmap) { argument
375 mRenderScript.setTexture(n, bitmap);
392 * @param bitmap the bitmap to show as the detail
395 Bitmap bitmap) {
398 mRenderScript.setDetailTexture(n, offx, offy, loffx, loffy, bitmap);
438 * Sets the bitmap to show on a card when the card draws the very first time.
439 * Generally, this bitmap wil
394 setDetailTextureForItem(int n, float offx, float offy, float loffx, float loffy, Bitmap bitmap) argument
445 setDefaultBitmap(Bitmap bitmap) argument
460 setLoadingBitmap(Bitmap bitmap) argument
489 setBackgroundBitmap(Bitmap bitmap) argument
502 setDetailLoadingBitmap(Bitmap bitmap) argument
516 setDetailLineBitmap(Bitmap bitmap) argument
[all...]
/frameworks/base/core/java/android/view/
H A DGLES20Layer.java46 boolean copyInto(Bitmap bitmap) { argument
47 return GLES20Canvas.nCopyLayer(mLayer, bitmap.mNativeBitmap);
H A DGLES20RecordingCanvas.java95 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) { argument
96 super.drawPatch(bitmap, chunks, dst, paint);
97 mDisplayList.mBitmaps.add(bitmap);
102 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { argument
103 super.drawBitmap(bitmap, left, top, paint);
104 mDisplayList.mBitmaps.add(bitmap);
109 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { argument
110 super.drawBitmap(bitmap, matrix, paint);
111 mDisplayList.mBitmaps.add(bitmap);
116 public void drawBitmap(Bitmap bitmap, Rec argument
123 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument
144 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_PointerIcon.h48 SkBitmap bitmap; member in struct:android::PointerIcon
58 bitmap.reset();
68 /* Loads the bitmap associated with a pointer icon.
73 /* Loads the bitmap associated with a pointer icon by style.
/frameworks/support/volley/tests/src/com/android/volley/toolbox/
H A DImageRequestTest.java68 Bitmap bitmap = response.result;
69 assertNotNull(bitmap);
70 assertEquals(expectedWidth, bitmap.getWidth());
71 assertEquals(expectedHeight, bitmap.getHeight());
/frameworks/base/graphics/java/android/graphics/drawable/
H A DBitmapDrawable.java39 * A Drawable that wraps a bitmap and can be tiled, stretched, or aligned. You can create a
42 * <p>It can be defined in an XML file with the <code>&lt;bitmap></code> element. For more
47 * transformation of raw bitmap graphics, and should be used when drawing to a
96 * Create drawable from a bitmap, not dealing with density.
101 public BitmapDrawable(Bitmap bitmap) { argument
102 this(new BitmapState(bitmap), null);
106 * Create drawable from a bitmap, setting initial target density based on
109 public BitmapDrawable(Resources res, Bitmap bitmap) { argument
110 this(new BitmapState(bitmap), res);
115 * Create a drawable by opening a given file path and decoding the bitmap
183 setBitmap(Bitmap bitmap) argument
517 BitmapState(Bitmap bitmap) argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DNativeFrame.java170 public void setBitmap(Bitmap bitmap) { argument
174 } else if (getFormat().getWidth() != bitmap.getWidth() ||
175 getFormat().getHeight() != bitmap.getHeight()) {
178 Bitmap rgbaBitmap = convertBitmapToRGBA(bitmap);
182 throw new RuntimeException("Could not set native frame bitmap data!");
198 throw new RuntimeException("Could not get bitmap data from native frame!");
258 private native boolean setNativeBitmap(Bitmap bitmap, int size, int bytesPerSample); argument
260 private native boolean getNativeBitmap(Bitmap bitmap, int size, int bytesPerSample); argument
/frameworks/support/volley/src/com/android/volley/toolbox/
H A DImageRequest.java62 * @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
140 Bitmap bitmap = null;
143 bitmap = BitmapFactory.decodeByteArray(data, 0, data.length, decodeOptions);
169 bitmap = Bitmap.createScaledBitmap(tempBitmap,
173 bitmap = tempBitmap;
177 if (bitmap == null) {
180 return Response.success(bitmap, HttpHeaderParse
[all...]

Completed in 353 milliseconds

123456