/external/skia/src/pipe/utils/ |
SamplePipeControllers.cpp | 42 TiledPipeController::TiledPipeController(const SkBitmap& bitmap, 47 int32_t height = bitmap.height() / NumberOfTiles; 50 bottom = i + 1 == NumberOfTiles ? bitmap.height() : top + height; 51 rect.setLTRB(0, top, bitmap.width(), bottom); 54 SkDEBUGCODE(bool extracted = )bitmap.extractSubset(&fBitmaps[i], rect);
|
/external/skia/tests/ |
ReadPixelsTest.cpp | 132 void fillBitmap(SkBitmap* bitmap) { 133 SkASSERT(bitmap->lockPixelsAreWritable()); 134 SkAutoLockPixels alp(*bitmap); 135 int w = bitmap->width(); 136 int h = bitmap->height(); 137 intptr_t pixels = reinterpret_cast<intptr_t>(bitmap->getPixels()); 140 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bitmap->rowBytes() + x * bitmap->bytesPerPixel()); 166 // checks the bitmap contains correct pixels after the readPixels 167 // if the bitmap was prefilled with pixels it checks that these weren' [all...] |
BitmapCopyTest.cpp | 37 SkBitmap bitmap(src); 41 SkAutoLockPixels alp(bitmap); 42 SkColorTable* ctable = bitmap.getColorTable(); 45 if (canHaveAlpha(bitmap.config()) && canHaveAlpha(dstConfig)) { 46 bitmap.setIsOpaque(false); 50 REPORTER_ASSERT(reporter, bitmap.copyTo(&dst, dstConfig)); 52 if (bitmap.isOpaque() != dst.isOpaque()) { 53 report_opaqueness(reporter, bitmap, dst); 57 bitmap.setIsOpaque(true); 61 REPORTER_ASSERT(reporter, bitmap.copyTo(&dst, dstConfig)) [all...] |
/packages/apps/Gallery2/src/com/android/photos/data/ |
FileRetriever.java | 18 import android.graphics.Bitmap; 76 // Video needs to extract the bitmap. 77 Bitmap bitmap = BitmapUtils.createVideoThumbnail(highRes.getPath()); local 78 if (bitmap == null) { 81 && !MediaCacheUtils.needsDownsample(bitmap, MediaSize.Preview) 82 && MediaCacheUtils.writeToFile(bitmap, tempFile)) { 88 success = MediaCacheUtils.downsample(bitmap, imageSize, tempFile);
|
/external/skia/src/utils/ |
SkDeferredCanvas.cpp | 33 bool shouldDrawImmediately(const SkBitmap* bitmap, const SkPaint* paint, 35 if (bitmap && ((bitmap->getTexture() && !bitmap->isImmutable()) || 36 (bitmap->getSize() > bitmapSizeThreshold))) { 170 virtual void writePixels(const SkBitmap& bitmap, int x, int y, 175 virtual bool onReadPixels(const SkBitmap& bitmap, 202 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, 206 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, 396 void DeferredDevice::writePixels(const SkBitmap& bitmap, [all...] |
/external/skia/src/gpu/ |
SkGpuDevice.cpp | 88 const SkBitmap& bitmap, 94 *texture = this->set(device, bitmap, params); 104 const SkBitmap& bitmap, 111 GrTexture* result = (GrTexture*)bitmap.getTexture(); 114 fTexture = GrLockAndRefCachedBitmapTexture(device->context(), bitmap, params); 162 SkBitmap bitmap; local 163 bitmap.setConfig(grConfig2skConfig(config, &isOpaque), 165 bitmap.setIsOpaque(isOpaque); 166 return bitmap; 241 // wrap the bitmap with a pixelref to expose our textur [all...] |
/external/skia/gm/ |
gmmain.cpp | 230 static void force_all_opaque(const SkBitmap& bitmap) { 231 SkBitmap::Config config = bitmap.config(); 234 force_all_opaque_8888(bitmap); 240 fprintf(stderr, "unsupported bitmap config %d\n", config); 241 SkDEBUGFAIL("unsupported bitmap config"); 245 static void force_all_opaque_8888(const SkBitmap& bitmap) { 246 SkAutoLockPixels lock(bitmap); 247 for (int y = 0; y < bitmap.height(); y++) { 248 for (int x = 0; x < bitmap.width(); x++) { 249 *bitmap.getAddr32(x, y) |= (SK_A32_MASK << SK_A32_SHIFT) 901 SkBitmap bitmap; local 918 SkBitmap bitmap; local 944 SkBitmap bitmap; local 1563 SkBitmap bitmap; local 1576 SkBitmap bitmap; local 1603 SkBitmap bitmap; local 1622 SkBitmap bitmap; local [all...] |
/external/skia/legacy/include/utils/ |
SkDeferredCanvas.h | 104 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, 107 virtual void drawBitmapRect(const SkBitmap& bitmap, const SkIRect* src, 111 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, 113 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, 116 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, 139 void flushIfNeeded(const SkBitmap& bitmap); 191 void flushIfNeeded(const SkBitmap& bitmap); 203 virtual void writePixels(const SkBitmap& bitmap, int x, int y, 208 virtual bool onReadPixels(const SkBitmap& bitmap, 241 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaThumbRequest.java | 29 import android.graphics.Bitmap; 108 Uri updateDatabase(Bitmap thumbnail) { 172 Bitmap bitmap = null; 176 bitmap = ThumbnailUtils.createVideoThumbnail(mPath, 179 bitmap = ThumbnailUtils.createImageThumbnail(mPath, 182 if (bitmap == null) { 187 Uri uri = updateDatabase(bitmap); 190 bitmap.compress(Bitmap.CompressFormat.JPEG, 85, thumbOut) [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
FadeDrawableComponent.java | 114 DrawableBitmap bitmap = factory.allocateDrawableBitmap(); local 115 bitmap.resize((int)mTexture.width, (int)mTexture.height); 117 bitmap.setWidth((int)parentObject.width); 118 bitmap.setHeight((int)parentObject.height); 119 bitmap.setOpacity(opacity); 120 bitmap.setTexture(mTexture); 121 mRenderComponent.setDrawable(bitmap);
|
/external/skia/include/gpu/ |
SkGpuDevice.h | 59 virtual void writePixels(const SkBitmap& bitmap, int x, int y, 72 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, 78 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, 116 virtual bool onReadPixels(const SkBitmap& bitmap, 154 const SkBitmap& bitmap, 163 bool shouldTileBitmap(const SkBitmap& bitmap, 171 void drawTiledBitmap(const SkBitmap& bitmap,
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
GraphicsContextCairoWin.cpp | 46 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP)); local 48 BITMAP info; 49 if (!GetObject(bitmap, sizeof(info), &info)) 98 // Need to make a cairo_surface_t out of the bitmap's pixel buffer and then draw 134 OwnPtr<HBITMAP> bitmap = adoptPtr(static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP))); 136 DIBPixelData pixelData(bitmap.get()); 141 // to zero. We need to manually set the bitmap to be fully opaque. 151 void GraphicsContext::drawWindowsBitmap(WindowsBitmap* bitmap, const IntPoint& point) 153 drawBitmapToContext(m_data, platformContext()->cr(), bitmap->windowsDIB(), IntSize(point.x(), bitmap->size().height() + point.y())) [all...] |
/frameworks/base/tests/BrowserTestPlugin/jni/event/ |
EventPlugin.cpp | 47 void EventPlugin::drawPlugin(const ANPBitmap& bitmap, const ANPRectI& clip) { 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);
|
/cts/tests/tests/holo/src/android/holo/cts/ |
LayoutTestActivity.java | 23 import android.graphics.Bitmap; 40 * compares or generates a bitmap of the layout. 127 private Bitmap mBitmap; 158 private Bitmap mBitmap; 159 private Bitmap mReferenceBitmap; 172 private boolean compareTo(Bitmap bitmap, Bitmap reference, int threshold) { 173 if (bitmap.getConfig() != reference.getConfig() || 174 bitmap.getWidth() != reference.getWidth() | [all...] |
/frameworks/base/libs/hwui/ |
DisplayListRenderer.h | 98 virtual status_t drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint); 99 virtual status_t drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint); 100 virtual status_t drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, 103 virtual status_t drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint); 104 virtual status_t drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, 106 virtual status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, 281 inline SkBitmap* refBitmap(SkBitmap* bitmap) { 282 // Note that this assumes the bitmap is immutable. There are cases this won't handle 283 // correctly, such as creating the bitmap from scratch, drawing with it, changing its 286 mBitmapResources.add(bitmap); [all...] |
DisplayListRenderer.cpp | 256 status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) { 257 bitmap = refBitmap(bitmap); 260 addDrawOp(new (alloc()) DrawBitmapOp(bitmap, left, top, paint)); 264 status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) { 265 bitmap = refBitmap(bitmap); 269 addDrawOp(new (alloc()) DrawBitmapMatrixOp(bitmap, matrix, paint)); 273 status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, 276 bitmap = refBitmap(bitmap) [all...] |
/external/chromium/chrome/browser/tab_contents/ |
thumbnail_generator.cc | 74 // bitmap will be isNull if there was an error creating it. 85 // Get the bitmap as a Skia object so we can resample it. This is a large 111 // refcounting. If the bitmap doesn't change, then the downsampler 112 // will return the input bitmap, which will be the reference to the 114 // regular refcounted bitmap, we need to copy it. 378 double ThumbnailGenerator::CalculateBoringScore(SkBitmap* bitmap) { 379 if (bitmap->isNull() || bitmap->empty()) 382 color_utils::BuildLumaHistogram(bitmap, histogram); 385 int pixel_count = bitmap->width() * bitmap->height() [all...] |
/external/skia/src/pdf/ |
SkPDFImage.cpp | 25 void extractImageData(const SkBitmap& bitmap, const SkIRect& srcRect, 32 bitmap.lockPixels(); 33 switch (bitmap.getConfig()) { 39 memcpy(dst, bitmap.getAddr8(srcRect.fLeft, y), rowBytes); 49 (const SkBitmap::RLEPixels*)bitmap.getPixels(); 66 uint16_t* src = bitmap.getAddr16(0, y); 108 uint16_t* src = bitmap.getAddr16(0, y); 126 uint32_t* src = bitmap.getAddr32(0, y); 155 uint8_t* src = bitmap.getAddr1(0, y); 195 uint8_t* src = bitmap.getAddr8(0, y) [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
BitmapDrawable.java | 21 import android.graphics.Bitmap; 39 * A Drawable that wraps a bitmap and can be tiled, stretched, or aligned. You can create a 41 * a {@link android.graphics.Bitmap} object. 42 * <p>It can be defined in an XML file with the <code><bitmap></code> element. For more 46 * Also see the {@link android.graphics.Bitmap} class, which handles the management and 47 * transformation of raw bitmap graphics, and should be used when drawing to a 64 private Bitmap mBitmap; 78 * @deprecated Use {@link #BitmapDrawable(android.content.res.Resources, android.graphics.Bitmap)} 79 * instead to specify a bitmap to draw with and ensure the correct density is set. 83 mBitmapState = new BitmapState((Bitmap) null) 414 Bitmap bitmap = mBitmap; local 493 final Bitmap bitmap = BitmapFactory.decodeResource(r, id); local [all...] |
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
CarouselController.java | 22 import android.graphics.Bitmap; 56 private Bitmap mDefaultBitmap; 57 private Bitmap mLoadingBitmap; 58 private Bitmap mBackgroundBitmap; 59 private Bitmap mDefaultLineBitmap = Bitmap.createBitmap( 60 new int[] {0x00000000, 0xffffffff, 0x00000000}, 0, 3, 3, 1, Bitmap.Config.ARGB_4444); 91 private Bitmap mDetailLoadingBitmap = Bitmap.createBitmap( 92 new int[] {0}, 0, 1, 1, 1, Bitmap.Config.ARGB_4444) [all...] |
/external/valgrind/main/drd/ |
drd_bitmap.c | 60 = VG_(OSetGen_Create_With_Pool)(0, 0, VG_(malloc), "drd.bitmap.bn.2", 71 struct bitmap* DRD_(bm_new)() 73 struct bitmap* bm; 79 bm = VG_(malloc)("drd.bitmap.bn.1", sizeof(*bm)); 85 void DRD_(bm_delete)(struct bitmap* const bm) 94 void DRD_(bm_init)(struct bitmap* const bm) 115 void DRD_(bm_cleanup)(struct bitmap* const bm) 122 * bitmap bm. 129 void DRD_(bm_access_range)(struct bitmap* const bm, 141 void DRD_(bm_access_range_load)(struct bitmap* const bm, Addr a1, Addr a2 [all...] |
/external/webkit/Source/WebCore/platform/graphics/android/rendering/ |
TransferQueue.cpp | 356 // Here we just need to upload the bitmap content to the GL Texture 358 *m_transferQueue[index].bitmap); 393 SkBitmap& bitmap) 396 if (!tryUpdateQueueWithBitmap(renderInfo, bitmap)) { 397 // failed placing bitmap in queue, discard tile's texture so it will be 406 SkBitmap& bitmap) 416 ALOGV("Quit bitmap update: not ready! for tile x y %d %d", 427 if (!GLUtils::updateSharedSurfaceTextureWithBitmap(m_ANW.get(), bitmap)) 432 addItemInTransferQueue(renderInfo, currentUploadType, bitmap); 434 ALOGV("Bitmap updated x, y %d %d, baseTile %p" [all...] |
ImageTexture.cpp | 107 SkBitmap* ImageTexture::convertBitmap(SkBitmap* bitmap) 110 int w = bitmap->width(); 111 int h = bitmap->height(); 121 canvas.drawBitmapRect(*bitmap, 0, dest); 126 unsigned ImageTexture::computeCRC(const SkBitmap* bitmap) 128 if (!bitmap) 130 bitmap->lockPixels(); 131 uint8_t* img = static_cast<uint8_t*>(bitmap->getPixels()); 134 crc = computeCrc(img, bitmap->getSize()); 135 bitmap->unlockPixels() [all...] |
/cts/tests/tests/text/src/android/text/cts/ |
EmojiTest.java | 20 import android.graphics.Bitmap; 63 Bitmap mBitmapA, mBitmapB; // Emoji displayed Bitmaps to compare 150 Bitmap capture(char c[]) { 159 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()); local 161 return bitmap; 172 Bitmap capture(char c[]) { 182 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()) local 205 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()); local 216 Bitmap bitmap; field in class:EmojiTest.CaptureWebView [all...] |
/external/qemu/block/ |
cow.c | 94 * We should just read the whole bitmap we'll need in one go instead. 99 uint8_t bitmap; local 102 ret = bdrv_pread(bs->file, offset, &bitmap, sizeof(bitmap)); 107 bitmap |= (1 << (bitnum % 8)); 109 ret = bdrv_pwrite_sync(bs->file, offset, &bitmap, sizeof(bitmap)); 119 uint8_t bitmap; local 122 ret = bdrv_pread(bs->file, offset, &bitmap, sizeof(bitmap)); [all...] |