/external/e2fsprogs/lib/ext2fs/ |
bitops.h | 2 * bitops.h --- Bitmap frobbing code. The byte swapping routines are 47 * EXT2FS bitmap manipulation routines. 58 extern void ext2fs_warn_bitmap2(ext2fs_generic_bitmap bitmap, 61 extern int ext2fs_mark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block); 62 extern int ext2fs_unmark_block_bitmap(ext2fs_block_bitmap bitmap, 64 extern int ext2fs_test_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block); 66 extern int ext2fs_mark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode); 67 extern int ext2fs_unmark_inode_bitmap(ext2fs_inode_bitmap bitmap, 69 extern int ext2fs_test_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode); 71 extern void ext2fs_fast_mark_block_bitmap(ext2fs_block_bitmap bitmap, [all...] |
/frameworks/ex/photoviewer/src/com/android/ex/photo/loaders/ |
PhotoBitmapLoader.java | 23 import android.graphics.Bitmap; 31 * Loader for the bitmap of a photo. 33 public class PhotoBitmapLoader extends AsyncTaskLoader<Bitmap> { 36 private Bitmap mBitmap; 48 public Bitmap loadInBackground() { 53 Bitmap bitmap = ImageUtils.createLocalBitmap(resolver, Uri.parse(mPhotoUri), local 55 if (bitmap != null) { 56 bitmap.setDensity(DisplayMetrics.DENSITY_MEDIUM); 58 return bitmap; [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/ |
PhotoBitmapLoader.java | 23 import android.graphics.Bitmap; 31 * Loader for the bitmap of a photo. 33 public class PhotoBitmapLoader extends AsyncTaskLoader<Bitmap> { 36 private Bitmap mBitmap; 48 public Bitmap loadInBackground() { 53 Bitmap bitmap = ImageUtils.createLocalBitmap(resolver, Uri.parse(mPhotoUri), local 55 if (bitmap != null) { 56 bitmap.setDensity(DisplayMetrics.DENSITY_MEDIUM); 58 return bitmap; [all...] |
/external/skia/src/gpu/ |
SkGr.cpp | 14 based bitmap. [palette (colortable) + indices]. 24 static void build_compressed_data(void* buffer, const SkBitmap& bitmap) { 25 SkASSERT(SkBitmap::kIndex8_Config == bitmap.config()); 27 SkAutoLockPixels apl(bitmap); 28 if (!bitmap.readyToDraw()) { 29 SkDEBUGFAIL("bitmap not ready to draw!"); 33 SkColorTable* ctable = bitmap.getColorTable(); 42 if (bitmap.width() == bitmap.rowBytes()) { 43 memcpy(dst, bitmap.getPixels(), bitmap.getSize()) 72 const SkBitmap* bitmap = &origBitmap; local [all...] |
/external/skia/src/images/ |
SkBitmapRegionDecoder.cpp | 3 bool SkBitmapRegionDecoder::decodeRegion(SkBitmap* bitmap, SkIRect rect, 6 return fDecoder->decodeRegion(bitmap, rect, pref);
|
/packages/apps/Camera/src/com/android/camera/ |
StaticBitmapScreenNail.java | 19 import android.graphics.Bitmap; 24 public StaticBitmapScreenNail(Bitmap bitmap) { 25 super(bitmap); 30 // Always keep the bitmap in memory.
|
/dalvik/vm/alloc/ |
Verify.h | 26 * Verifies the object references in a heap bitmap. Assumes the VM is 29 void dvmVerifyBitmap(const HeapBitmap *bitmap);
|
/frameworks/base/libs/hwui/ |
TextureCache.cpp | 106 void TextureCache::operator()(SkBitmap*& bitmap, Texture*& texture) { 124 Texture* TextureCache::get(SkBitmap* bitmap) { 125 Texture* texture = mCache.get(bitmap); 128 if (bitmap->width() > mMaxTextureSize || bitmap->height() > mMaxTextureSize) { 129 ALOGW("Bitmap too large to be uploaded into a texture (%dx%d, max=%dx%d)", 130 bitmap->width(), bitmap->height(), mMaxTextureSize, mMaxTextureSize); 134 const uint32_t size = bitmap->rowBytes() * bitmap->height() [all...] |
/external/webkit/Source/WebCore/platform/graphics/android/ |
BitmapAllocatorAndroid.cpp | 57 bool BitmapAllocatorAndroid::allocPixelRef(SkBitmap* bitmap, SkColorTable*) 60 if (should_use_ashmem(*bitmap)) { 61 // SkDebugf("ashmem [%d %d]\n", bitmap->width(), bitmap->height()); 62 ref = new SkImageRef_ashmem(fStream, bitmap->config(), fSampleSize); 64 // SkDebugf("globalpool [%d %d]\n", bitmap->width(), bitmap->height()); 65 ref = new SkImageRef_GlobalPool(fStream, bitmap->config(), fSampleSize); 67 bitmap->setPixelRef(ref)->unref();
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterFx.java | 19 import android.graphics.Bitmap; 23 Bitmap fxBitmap; 24 public ImageFilterFx(Bitmap fxBitmap,String name) { 45 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h,Bitmap fxBitmap, int fxw, int fxh); 48 public Bitmap apply(Bitmap bitmap, float scaleFactor, boolean highQuality) { 50 return bitmap; [all...] |
ImageFilterRS.java | 20 import android.graphics.Bitmap; 33 public void prepare(Bitmap bitmap) { 34 mInPixelsAllocation = Allocation.createFromBitmap(mRS, bitmap, 47 public void update(Bitmap bitmap) { 48 mOutPixelsAllocation.copyTo(bitmap); 52 public Bitmap apply(Bitmap bitmap, float scaleFactor, boolean highQuality) [all...] |
ImageFilterBwFilter.java | 19 import android.graphics.Bitmap; 37 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, int r, int g, int b); 40 public Bitmap apply(Bitmap bitmap, float scaleFactor, boolean highQuality) { 41 int w = bitmap.getWidth(); 42 int h = bitmap.getHeight(); 50 nativeApplyFilter(bitmap, w, h, r, g, b); 51 return bitmap; [all...] |
ImageFilterHue.java | 19 import android.graphics.Bitmap; 38 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float []matrix); 41 public Bitmap apply(Bitmap bitmap, float scaleFactor, boolean highQuality) { 42 int w = bitmap.getWidth(); 43 int h = bitmap.getHeight(); 49 nativeApplyFilter(bitmap, w, h, cmatrix.getMatrix()); 51 return bitmap; [all...] |
ImageFilterRedEye.java | 19 import android.graphics.Bitmap; 37 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, short []matrix); 40 public Bitmap apply(Bitmap bitmap, float scaleFactor, boolean highQuality) { 41 int w = bitmap.getWidth(); 42 int h = bitmap.getHeight(); 53 nativeApplyFilter(bitmap, w, h, rect); 54 return bitmap; [all...] |
/external/skia/samplecode/ |
SampleWritePixels.cpp | 19 static void create_bitmap(SkBitmap* bitmap) { 22 bitmap->setConfig(SkBitmap::kARGB_8888_Config, W, H); 23 bitmap->allocPixels(); 25 SkCanvas canvas(*bitmap); 48 SkBitmap bitmap; local 49 create_bitmap(&bitmap); 50 int x = bitmap.width() / 2; 51 int y = bitmap.height() / 2; 54 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)); 58 canvas->writePixels(bitmap, 0, 0) [all...] |
SampleDrawBitmap.cpp | 15 static void create_bitmap(SkBitmap* bitmap) { 18 bitmap->setConfig(SkBitmap::kARGB_8888_Config, W, H); 19 bitmap->allocPixels(); 21 SkCanvas canvas(*bitmap); 44 SkBitmap bitmap; local 45 create_bitmap(&bitmap); 46 int x = bitmap.width() / 2; 47 int y = bitmap.height() / 2; 49 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)); 53 canvas->drawBitmap(bitmap, 0, 0) [all...] |
/external/jmonkeyengine/engine/src/android/com/jme3/asset/ |
AndroidImageInfo.java | 3 import android.graphics.Bitmap; 13 * method to retrieve a {@link Bitmap} when it is needed by the renderer. 15 * {@link AndroidImageInfo#loadBitmap()} method to acquire a bitmap by their own means. 22 protected Bitmap bitmap; field in class:AndroidImageInfo 29 public Bitmap getBitmap(){ 30 if (bitmap == null || bitmap.isRecycled()){ 40 return bitmap; 50 * Loads the bitmap directly from the asset info, possibly updatin [all...] |
/frameworks/base/media/tests/omxjpegdecoder/ |
jpeg_decoder_bench.cpp | 53 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 = new SkBitmap local [all...] |
/external/webkit/Source/WebKit2/Shared/ |
WebCoreArgumentCoders.cpp | 40 RefPtr<ShareableBitmap> bitmap = ShareableBitmap::createShareable(image->size(), ShareableBitmap::SupportsAlpha); local 41 bitmap->createGraphicsContext()->drawImage(image, ColorSpaceDeviceRGB, IntPoint()); 43 bitmap->createHandle(handle); 54 RefPtr<ShareableBitmap> bitmap = ShareableBitmap::create(handle); 55 if (!bitmap) 57 image = createImage(bitmap.get());
|
WebImage.cpp | 42 PassRefPtr<WebImage> WebImage::create(PassRefPtr<ShareableBitmap> bitmap) 44 return adoptRef(new WebImage(bitmap)); 47 WebImage::WebImage(PassRefPtr<ShareableBitmap> bitmap) 48 : m_bitmap(bitmap)
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
CanvasTexture.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 24 // The subclasses should override onDraw() to draw on the bitmap. 37 protected Bitmap onGetBitmap() { 38 Bitmap bitmap = Bitmap.createBitmap(mWidth, mHeight, mConfig); local 39 mCanvas = new Canvas(bitmap); 40 onDraw(mCanvas, bitmap); 41 return bitmap; [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
BitmapUtils.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.CompressFormat; 44 * bitmap. 52 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED. 116 public static Bitmap resizeBitmapByScale( 117 Bitmap bitmap, float scale, boolean recycle) { 118 int width = Math.round(bitmap.getWidth() * scale); 119 int height = Math.round(bitmap.getHeight() * scale); 120 if (width == bitmap.getWidth( 185 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true); local 208 Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local [all...] |
/packages/apps/Gallery2/jni/filters/ |
redeye.c | 20 void JNIFUNCF(ImageFilterRedEye, nativeApplyFilter, jobject bitmap, jint width, jint height, jshortArray vrect) 23 AndroidBitmap_lockPixels(env, bitmap, (void**) &destination); 30 AndroidBitmap_unlockPixels(env, bitmap);
|
/external/webkit/Source/WebKit2/UIProcess/ |
BackingStore.cpp | 60 RefPtr<ShareableBitmap> bitmap = ShareableBitmap::create(updateInfo.bitmapHandle); local 61 if (!bitmap) 63 ASSERT(bitmap->size() == updateInfo.updateRectBounds.size()); 65 incorporateUpdate(bitmap.get(), updateInfo);
|
/external/chromium/net/disk_cache/ |
bitmap_unittest.cc | 5 #include "net/disk_cache/bitmap.h" 10 disk_cache::Bitmap map32(32, false); 13 disk_cache::Bitmap map64(64, false); 18 // Verify that the default constructor doesn't allocate a bitmap. 19 disk_cache::Bitmap map; 26 disk_cache::Bitmap bitmap(80, true); 30 EXPECT_EQ(80, bitmap.Size()); 31 EXPECT_EQ(3, bitmap.ArraySize()); 34 EXPECT_EQ(0U, bitmap.GetMapElement(1)) [all...] |