/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
H A D | BitmapFactoryTest.java | 41 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/libs/hwui/ |
H A D | DisplayListRenderer.cpp | 140 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 D | DisplayListRenderer.h | 583 virtual status_t drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint); 584 virtual status_t drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint); 585 virtual status_t drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, 588 virtual status_t drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint); 589 virtual status_t drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, 591 virtual status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, 824 inline void addBitmap(SkBitmap* bitmap) { argument 825 // Note that this assumes the bitmap is immutable. There are cases this won't handle 826 // correctly, such as creating the bitmap from scratch, drawing with it, changing its 829 addInt((int) bitmap); 834 addBitmapData(SkBitmap* bitmap) argument [all...] |
H A D | LayerRenderer.cpp | 359 bool LayerRenderer::copyLayer(Layer* layer, SkBitmap* bitmap) { argument 361 if (layer && bitmap->width() <= caches.maxTextureSize && 362 bitmap->height() <= caches.maxTextureSize) { 370 SkAutoLockPixels alp(*bitmap); 382 switch (bitmap->config()) { 419 glPixelStorei(GL_PACK_ALIGNMENT, bitmap->bytesPerPixel()); 427 glTexImage2D(GL_TEXTURE_2D, 0, format, bitmap->width(), bitmap->height(), 437 renderer.setViewport(bitmap->width(), bitmap [all...] |
H A D | LayerRenderer.h | 62 ANDROID_API static bool copyLayer(Layer* layer, SkBitmap* bitmap);
|
H A D | OpenGLRenderer.cpp | 1661 status_t OpenGLRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) { argument 1662 const float right = left + bitmap->width(); 1663 const float bottom = top + bitmap->height(); 1670 Texture* texture = mCaches.textureCache.get(bitmap); 1674 if (CC_UNLIKELY(bitmap->getConfig() == SkBitmap::kA8_Config)) { 1683 status_t OpenGLRenderer::drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) { argument 1684 Rect r(0.0f, 0.0f, bitmap->width(), bitmap->height()); 1693 Texture* texture = mCaches.textureCache.get(bitmap); 1701 drawTextureRect(0.0f, 0.0f, bitmap 1707 drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument 1724 drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument 1803 drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) argument 1860 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 1871 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, int alpha, SkXfermode::Mode mode) argument [all...] |
H A D | OpenGLRenderer.h | 173 virtual status_t drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint); 174 virtual status_t drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint); 175 virtual status_t drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, 178 virtual status_t drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint); 179 virtual status_t drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, 181 virtual status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, 184 status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, 516 * Draws the specified texture as an alpha bitmap. Alpha bitmaps obey 520 * @param left The x coordinate of the bitmap 521 * @param top The y coordinate of the bitmap [all...] |
H A D | ResourceCache.cpp | 313 SkBitmap* bitmap = (SkBitmap*) resource; local 315 Caches::getInstance().textureCache.removeDeferred(bitmap); 317 delete bitmap;
|
H A D | ShapeCache.cpp | 119 SkBitmap bitmap; local 120 initBitmap(bitmap, rectWidth, rectHeight); 125 SkCanvas canvas(bitmap); 130 addTexture(entry, &bitmap, texture);
|
H A D | ShapeCache.h | 339 PathTexture* addTexture(const Entry& entry, SkBitmap* bitmap); 340 void addTexture(const Entry& entry, SkBitmap* bitmap, PathTexture* texture); 348 void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height); 369 * Generates the texture from a bitmap into the specified texture structure. 371 void generateTexture(SkBitmap& bitmap, Texture* texture); 525 // Don't even try to cache a bitmap that's bigger than the cache 534 void ShapeCache<Entry>::initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) { argument 535 bitmap.setConfig(SkBitmap::kA8_Config, width, height); 536 bitmap.allocPixels(); 537 bitmap 575 SkBitmap bitmap; local 592 addTexture(const Entry& entry, SkBitmap* bitmap, PathTexture* texture) argument 615 generateTexture(SkBitmap& bitmap, Texture* texture) argument [all...] |
H A D | SkiaShader.cpp | 103 SkiaBitmapShader::SkiaBitmapShader(SkBitmap* bitmap, SkShader* key, SkShader::TileMode tileX, argument 105 SkiaShader(kBitmap, key, tileX, tileY, matrix, blend), mBitmap(bitmap), mTexture(NULL) {
|
H A D | SkiaShader.h | 137 * A shader that draws a bitmap. 140 ANDROID_API SkiaBitmapShader(SkBitmap* bitmap, SkShader* key, SkShader::TileMode tileX,
|
H A D | TextureCache.cpp | 106 void TextureCache::operator()(SkBitmap*& bitmap, Texture*& texture) { argument 124 Texture* TextureCache::get(SkBitmap* bitmap) { argument 125 Texture* texture = mCache.get(bitmap); 128 if (bitmap->width() > mMaxTextureSize || bitmap->height() > mMaxTextureSize) { 130 bitmap->width(), bitmap->height(), mMaxTextureSize, mMaxTextureSize); 134 const uint32_t size = bitmap->rowBytes() * bitmap->height(); 135 // Don't even try to cache a bitmap tha 164 getTransient(SkBitmap* bitmap) argument 174 remove(SkBitmap* bitmap) argument 178 removeDeferred(SkBitmap* bitmap) argument 212 generateTexture(SkBitmap* bitmap, Texture* texture, bool regenerate) argument 285 uploadLoFiTexture(bool resize, SkBitmap* bitmap, uint32_t width, uint32_t height) argument [all...] |
H A D | TextureCache.h | 62 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/libs/hwui/font/ |
H A D | Font.cpp | 63 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) { 85 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) { 104 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) { 126 bitmap[bY * bitmapW + bX] = tempCol; 187 int numGlyphs, int x, int y, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) { 188 if (bitmap != NULL && bitmapW > 0 && bitmapH > 0) { 189 render(paint, text, start, len, numGlyphs, x, y, BITMAP, bitmap, 285 int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, 322 bitmap, bitmapW, bitmapH, bounds, positions); 361 bitmap, bitmap 62 measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 84 drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 103 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 186 render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 284 render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument [all...] |
H A D | Font.h | 52 * If bitmap is specified, it will be used as the render target 55 int numGlyphs, int x, int y, uint8_t *bitmap = NULL, 85 int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, 104 uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, 107 uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, 110 uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH,
|
/frameworks/base/media/java/android/media/ |
H A D | FaceDetector.java | 33 * 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 D | RemoteControlClient.java | 484 * @param key the identifier of the bitmap to set. The only valid value is 486 * @param bitmap The bitmap for the artwork, or null if there isn't any. 492 public synchronized MetadataEditor putBitmap(int key, Bitmap bitmap) argument 502 mEditorArtwork = scaleBitmapIfTooBig(bitmap, 506 mEditorArtwork = bitmap; 763 * Cache for the artwork bitmap. 765 * Artwork and metadata are not kept in one Bundle because the bitmap sometimes needs to be 1012 // send the bitmap, there might be newer and smaller expected dimensions, so we have 1027 // send the bitmap, ther 1117 scaleBitmapIfTooBig(Bitmap bitmap, int maxWidth, int maxHeight) argument [all...] |
H A D | ThumbnailUtils.java | 49 /* 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/base/media/java/android/media/videoeditor/ |
H A D | MediaArtistNativeHelper.java | 1949 Bitmap bitmap = null; 1959 if ((bitmap = overlay.getBitmap()) != null) { 1970 if (bitmap.getConfig() == Bitmap.Config.ARGB_8888) 1972 else if (bitmap.getConfig() == Bitmap.Config.ARGB_4444) 1974 else if (bitmap.getConfig() == Bitmap.Config.RGB_565) 1976 else if (bitmap.getConfig() == Bitmap.Config.ALPHA_8) 1979 effectSettings.width = bitmap.getWidth(); 1980 effectSettings.height = bitmap.getHeight(); 1987 bitmap.getPixels(effectSettings.framingBuffer, 0, 2015 effectSettings.width = bitmap [all...] |
H A D | MediaImageItem.java | 925 * Resize a bitmap to the specified width and height 931 * @return The resized bitmap 972 * Create the bitmap from file 994 * Create the canvas bitmap 996 final Bitmap bitmap = Bitmap.createBitmap((int)bitmapWidth, 999 final Canvas canvas = new Canvas(bitmap); 1006 * Release the source bitmap 1009 return bitmap;
|
H A D | MediaItem.java | 411 * or if the bitmap is not specified or if the dimensions of the 412 * bitmap do not match the dimensions of the media item 436 final Bitmap bitmap = frame.getBitmap(); 437 if (bitmap == null) { 438 throw new IllegalArgumentException("Overlay bitmap not specified"); 451 * The dimensions of the overlay bitmap must be the same as the 454 if (bitmap.getWidth() != scaledWidth || bitmap.getHeight() != scaledHeight) { 580 public void onThumbnail(Bitmap bitmap, int index); argument 595 public void onThumbnail(Bitmap bitmap, in [all...] |
H A D | OverlayFrame.java | 77 * @param bitmap The bitmap to be used as an overlay. The size of the 78 * bitmap must equal to the size of the media item to which it is 79 * added. The bitmap is typically a decoded PNG file. 86 public OverlayFrame(MediaItem mediaItem, String overlayId, Bitmap bitmap, argument 89 mBitmap = bitmap; 120 * Get the overlay bitmap. 122 * @return Get the overlay bitmap 129 * Get the overlay bitmap. 131 * @return Get the overlay bitmap a 141 setBitmap(Bitmap bitmap) argument [all...] |
H A D | VideoEditorImpl.java | 1838 Bitmap bitmap = retriever.getFrameAtTime(); 1841 if (bitmap == null) { 1848 Bitmap.createScaledBitmap(bitmap, width, height, true);
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaMetadataRetriever.cpp | 266 SkBitmap *bitmap = local 269 bitmap->lockPixels(); 270 rotate((uint16_t*)bitmap->getPixels(), 275 bitmap->unlockPixels();
|