/external/chromium_org/ui/gfx/image/ |
H A D | image_util.cc | 21 scoped_ptr<SkBitmap> bitmap(gfx::JPEGCodec::Decode(input, input_size)); 22 if (bitmap.get()) 23 return Image::CreateFrom1xBitmap(*bitmap); 35 const SkBitmap& bitmap = image_skia_rep.sk_bitmap(); local 36 SkAutoLockPixels bitmap_lock(bitmap); 38 if (!bitmap.readyToDraw()) 42 reinterpret_cast<unsigned char*>(bitmap.getAddr32(0, 0)), 43 gfx::JPEGCodec::FORMAT_SkBitmap, bitmap.width(), 44 bitmap.height(), 45 static_cast<int>(bitmap 60 const SkBitmap& bitmap = rep.sk_bitmap(); local [all...] |
/external/chromium_org/third_party/skia/tests/ |
H A D | BitmapHasherTest.cpp | 17 // Fill in bitmap with test data. 18 static void CreateTestBitmap(SkBitmap* bitmap, int width, int height, argument 20 bitmap->allocN32Pixels(width, height, kOpaque_SkAlphaType); 21 bitmap->eraseColor(color); 26 SkBitmap bitmap; local 29 CreateTestBitmap(&bitmap, 333, 555, SK_ColorBLUE, reporter); 30 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest)); 33 CreateTestBitmap(&bitmap, 555, 333, SK_ColorBLUE, reporter); 34 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest)); 37 CreateTestBitmap(&bitmap, 55 [all...] |
/external/skia/tests/ |
H A D | BitmapHasherTest.cpp | 17 // Fill in bitmap with test data. 18 static void CreateTestBitmap(SkBitmap* bitmap, int width, int height, argument 21 REPORTER_ASSERT(reporter, bitmap->allocPixels(info)); 22 bitmap->eraseColor(color); 27 SkBitmap bitmap; local 30 CreateTestBitmap(&bitmap, 333, 555, SK_ColorBLUE, reporter); 31 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest)); 34 CreateTestBitmap(&bitmap, 555, 333, SK_ColorBLUE, reporter); 35 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest)); 38 CreateTestBitmap(&bitmap, 55 [all...] |
/external/e2fsprogs/lib/ext2fs/ |
H A D | gen_bitmap.c | 2 * gen_bitmap.c --- Generic (32-bit) bitmap routines 36 char * bitmap; member in struct:ext2fs_struct_generic_bitmap 55 void ext2fs_warn_bitmap2(ext2fs_generic_bitmap bitmap, argument 59 if (bitmap->description) 60 com_err(0, bitmap->base_error_code+code, 61 "#%lu for %s", arg, bitmap->description); 63 com_err(0, bitmap->base_error_code + code, "#%lu", arg); 67 static errcode_t check_magic(ext2fs_generic_bitmap bitmap) argument 69 if (!bitmap || !((bitmap 81 ext2fs_generic_bitmap bitmap; local 153 ext2fs_free_generic_bitmap(ext2fs_inode_bitmap bitmap) argument 170 ext2fs_test_generic_bitmap(ext2fs_generic_bitmap bitmap, blk_t bitno) argument 192 ext2fs_mark_generic_bitmap(ext2fs_generic_bitmap bitmap, __u32 bitno) argument 214 ext2fs_unmark_generic_bitmap(ext2fs_generic_bitmap bitmap, blk_t bitno) argument 236 ext2fs_get_generic_bitmap_start(ext2fs_generic_bitmap bitmap) argument 253 ext2fs_get_generic_bitmap_end(ext2fs_generic_bitmap bitmap) argument 269 ext2fs_clear_generic_bitmap(ext2fs_generic_bitmap bitmap) argument 288 ext2fs_fudge_generic_bitmap_end(ext2fs_inode_bitmap bitmap, errcode_t magic, errcode_t neq, ext2_ino_t end, ext2_ino_t *oend) argument 434 ext2fs_test_clear_generic_bitmap_range(ext2fs_generic_bitmap bitmap, unsigned int start, unsigned int len) argument 506 ext2fs_find_first_zero_generic_bitmap(ext2fs_generic_bitmap bitmap, __u32 start, __u32 end, __u32 *out) argument 530 ext2fs_test_block_bitmap_range(ext2fs_block_bitmap bitmap, blk_t block, int num) argument 543 ext2fs_test_inode_bitmap_range(ext2fs_inode_bitmap bitmap, ino_t inode, int num) argument 556 ext2fs_mark_block_bitmap_range(ext2fs_block_bitmap bitmap, blk_t block, int num) argument 570 ext2fs_unmark_block_bitmap_range(ext2fs_block_bitmap bitmap, blk_t block, int num) argument [all...] |
H A D | bitops.h | 42 * EXT2FS bitmap manipulation routines. 53 extern void ext2fs_warn_bitmap2(ext2fs_generic_bitmap bitmap, 65 extern int ext2fs_mark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block); 66 extern int ext2fs_unmark_block_bitmap(ext2fs_block_bitmap bitmap, 68 extern int ext2fs_test_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block); 70 extern int ext2fs_mark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode); 71 extern int ext2fs_unmark_inode_bitmap(ext2fs_inode_bitmap bitmap, 73 extern int ext2fs_test_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode); 75 extern void ext2fs_fast_mark_block_bitmap(ext2fs_block_bitmap bitmap, 77 extern void ext2fs_fast_unmark_block_bitmap(ext2fs_block_bitmap bitmap, 378 ext2fs_mark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block) argument 385 ext2fs_unmark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block) argument 392 ext2fs_test_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block) argument 399 ext2fs_mark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 406 ext2fs_unmark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 413 ext2fs_test_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 420 ext2fs_fast_mark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block) argument 426 ext2fs_fast_unmark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block) argument 432 ext2fs_fast_test_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block) argument 439 ext2fs_fast_mark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 445 ext2fs_fast_unmark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 451 ext2fs_fast_test_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 458 ext2fs_get_block_bitmap_start(ext2fs_block_bitmap bitmap) argument 463 ext2fs_get_inode_bitmap_start(ext2fs_inode_bitmap bitmap) argument 468 ext2fs_get_block_bitmap_end(ext2fs_block_bitmap bitmap) argument 473 ext2fs_get_inode_bitmap_end(ext2fs_inode_bitmap bitmap) argument 478 ext2fs_fast_test_block_bitmap_range(ext2fs_block_bitmap bitmap, blk_t block, int num) argument 484 ext2fs_fast_mark_block_bitmap_range(ext2fs_block_bitmap bitmap, blk_t block, int num) argument 490 ext2fs_fast_unmark_block_bitmap_range(ext2fs_block_bitmap bitmap, blk_t block, int num) argument 498 ext2fs_mark_block_bitmap2(ext2fs_block_bitmap bitmap, blk64_t block) argument 505 ext2fs_unmark_block_bitmap2(ext2fs_block_bitmap bitmap, blk64_t block) argument 511 ext2fs_test_block_bitmap2(ext2fs_block_bitmap bitmap, blk64_t block) argument 518 ext2fs_mark_inode_bitmap2(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 525 ext2fs_unmark_inode_bitmap2(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 532 ext2fs_test_inode_bitmap2(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 539 ext2fs_fast_mark_block_bitmap2(ext2fs_block_bitmap bitmap, blk64_t block) argument 545 ext2fs_fast_unmark_block_bitmap2(ext2fs_block_bitmap bitmap, blk64_t block) argument 551 ext2fs_fast_test_block_bitmap2(ext2fs_block_bitmap bitmap, blk64_t block) argument 558 ext2fs_fast_mark_inode_bitmap2(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 564 ext2fs_fast_unmark_inode_bitmap2(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 570 ext2fs_fast_test_inode_bitmap2(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument 577 ext2fs_find_first_zero_block_bitmap2(ext2fs_block_bitmap bitmap, blk64_t start, blk64_t end, blk64_t *out) argument 592 ext2fs_find_first_zero_inode_bitmap2(ext2fs_inode_bitmap bitmap, ext2_ino_t start, ext2_ino_t end, ext2_ino_t *out) argument 607 ext2fs_get_block_bitmap_start2(ext2fs_block_bitmap bitmap) argument 612 ext2fs_get_inode_bitmap_start2(ext2fs_inode_bitmap bitmap) argument 617 ext2fs_get_block_bitmap_end2(ext2fs_block_bitmap bitmap) argument 622 ext2fs_get_inode_bitmap_end2(ext2fs_inode_bitmap bitmap) argument 627 ext2fs_fast_test_block_bitmap_range2(ext2fs_block_bitmap bitmap, blk64_t block, unsigned int num) argument 634 ext2fs_fast_mark_block_bitmap_range2(ext2fs_block_bitmap bitmap, blk64_t block, unsigned int num) argument 641 ext2fs_fast_unmark_block_bitmap_range2(ext2fs_block_bitmap bitmap, blk64_t block, unsigned int num) argument [all...] |
H A D | gen_bitmap64.c | 50 * new-style interfaces will support either type of bitmap, although 52 * new-style interface and the new-style bitmap are used. 54 * For example, the new bitmap interfaces will check the structure 55 * magic numbers and so will be able to detect old-stype bitmap. If 56 * they see an old-style bitmap, they will pass it to the gen_bitmap.c 66 * loop detections in pass 3, the bitmap will *always* be sparse, so 70 static void warn_bitmap(ext2fs_generic_bitmap bitmap, argument 74 if (bitmap->description) 75 com_err(0, bitmap->base_error_code+code, 76 "#%llu for %s", arg, bitmap 95 ext2fs_generic_bitmap bitmap; local 177 ext2fs_print_bmap_statistics(ext2fs_generic_bitmap bitmap) argument 361 ext2fs_fudge_generic_bmap_end(ext2fs_generic_bitmap bitmap, errcode_t neq, __u64 end, __u64 *oend) argument 390 ext2fs_get_generic_bmap_start(ext2fs_generic_bitmap bitmap) argument 404 ext2fs_get_generic_bmap_end(ext2fs_generic_bitmap bitmap) argument 418 ext2fs_clear_generic_bmap(ext2fs_generic_bitmap bitmap) argument 426 ext2fs_mark_generic_bmap(ext2fs_generic_bitmap bitmap, __u64 arg) argument 463 ext2fs_unmark_generic_bmap(ext2fs_generic_bitmap bitmap, __u64 arg) argument 493 ext2fs_test_generic_bmap(ext2fs_generic_bitmap bitmap, __u64 arg) argument 743 ext2fs_warn_bitmap32(ext2fs_generic_bitmap bitmap, const char *func) argument 756 ext2fs_convert_subcluster_bitmap(ext2_filsys fs, ext2fs_block_bitmap *bitmap) argument 799 ext2fs_find_first_zero_generic_bmap(ext2fs_generic_bitmap bitmap, __u64 start, __u64 end, __u64 *out) argument [all...] |
/external/chromium_org/ui/base/cursor/ |
H A D | cursor_loader_x11_unittest.cc | 18 SkBitmap bitmap; local 19 bitmap.allocN32Pixels(10, 5); 20 bitmap.eraseColor(SK_ColorBLACK); 26 &bitmap, 28 EXPECT_EQ(10, bitmap.width()); 29 EXPECT_EQ(5, bitmap.height()); 34 &bitmap, 37 EXPECT_EQ(5, bitmap.width()); 38 EXPECT_EQ(10, bitmap.height()); 43 &bitmap, [all...] |
H A D | cursor_util.cc | 20 SkBitmap* bitmap, 26 hotpoint->SetPoint(bitmap->height() - hotpoint->y(), hotpoint->x()); 27 *bitmap = SkBitmapOperations::Rotate( 28 *bitmap, SkBitmapOperations::ROTATION_90_CW); 32 bitmap->width() - hotpoint->x(), bitmap->height() - hotpoint->y()); 33 *bitmap = SkBitmapOperations::Rotate( 34 *bitmap, SkBitmapOperations::ROTATION_180_CW); 37 hotpoint->SetPoint(hotpoint->y(), bitmap->width() - hotpoint->x()); 38 *bitmap 18 ScaleAndRotateCursorBitmapAndHotpoint(float scale, gfx::Display::Rotation rotation, SkBitmap* bitmap, gfx::Point* hotpoint) argument 62 GetImageCursorBitmap(int resource_id, float scale, gfx::Display::Rotation rotation, gfx::Point* hotspot, SkBitmap* bitmap) argument 87 SkBitmap bitmap = image_rep.sk_bitmap(); local [all...] |
/external/valgrind/main/drd/ |
H A D | pub_drd_bitmap.h | 26 * A bitmap is a data structure that contains information about which 53 struct bitmap; 68 /* Complete bitmap. */ 69 struct bitmap struct 80 struct bitmap* DRD_(bm_new)(void); 81 void DRD_(bm_delete)(struct bitmap* const bm); 82 void DRD_(bm_init)(struct bitmap* const bm); 83 void DRD_(bm_cleanup)(struct bitmap* const bm); 84 void DRD_(bm_access_range)(struct bitmap* const bm, 87 void DRD_(bm_access_range_load)(struct bitmap* cons [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
H A D | BitmapResource.java | 1 package com.bumptech.glide.load.resource.bitmap; 9 private Bitmap bitmap; field in class:BitmapResource 12 public BitmapResource(Bitmap bitmap, BitmapPool bitmapPool) { argument 13 this.bitmap = bitmap; 19 return bitmap; 24 return Util.getSize(bitmap); 29 if (!bitmapPool.put(bitmap)) { 30 bitmap.recycle();
|
/external/skia/dm/ |
H A D | DMSKPTask.cpp | 12 SkBitmap bitmap; local 13 AllocatePixels(kN32_SkColorType, fPicture->width(), fPicture->height(), &bitmap); 14 DrawPicture(fPicture, &bitmap); 17 (*this, fPicture, bitmap, RecordTask::kNoOptimize_Mode))); 19 (*this, fPicture, bitmap, RecordTask::kOptimize_Mode))); 20 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap)));
|
/external/chromium_org/third_party/skia/include/utils/ |
H A D | SkPathUtils.h | 15 * The following methods return the boundary path given a 1-bit bitmap, specified 27 static void BitsToPath_Path(SkPath* path, const char* bitmap, 35 static void BitsToPath_Region(SkPath* path, const char* bitmap,
|
/external/chromium_org/third_party/skia/src/utils/ |
H A D | SkBitmapHasher.h | 20 * Fills in "result" with a hash of the pixels in this bitmap. 25 * Note: depending on the bitmap colortype, we may need to create an 29 static bool ComputeDigest(const SkBitmap& bitmap, uint64_t *result); 32 static bool ComputeDigestInternal(const SkBitmap& bitmap, uint64_t *result);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/ |
H A D | BitmapReferenceCounter.java | 7 public void acquireBitmap(Bitmap bitmap); argument 9 public void releaseBitmap(Bitmap bitmap); argument
|
H A D | BitmapReferenceCounterAdapter.java | 7 public void acquireBitmap(Bitmap bitmap) { } argument 10 public void releaseBitmap(Bitmap bitmap) { } argument
|
/external/skia/include/utils/ |
H A D | SkPathUtils.h | 15 * The following methods return the boundary path given a 1-bit bitmap, specified 27 static void BitsToPath_Path(SkPath* path, const char* bitmap, 35 static void BitsToPath_Region(SkPath* path, const char* bitmap,
|
/external/skia/src/utils/ |
H A D | SkBitmapHasher.h | 20 * Fills in "result" with a hash of the pixels in this bitmap. 25 * Note: depending on the bitmap colortype, we may need to create an 29 static bool ComputeDigest(const SkBitmap& bitmap, uint64_t *result); 32 static bool ComputeDigestInternal(const SkBitmap& bitmap, uint64_t *result);
|
/external/chromium_org/third_party/skia/gm/ |
H A D | extractbitmap.cpp | 17 static void create_bitmap(SkBitmap* bitmap) { argument 20 bitmap->allocN32Pixels(W, H); 22 SkCanvas canvas(*bitmap); 44 SkBitmap bitmap; variable 45 create_bitmap(&bitmap); variable 46 int x = bitmap.width() / 2; 47 int y = bitmap.height() / 2; 51 canvas->drawBitmap(bitmap, 0, 0); 56 // Draw the bottom right fourth of the bitmap over the top left 58 bitmap [all...] |
/external/skia/gm/ |
H A D | extractbitmap.cpp | 17 static void create_bitmap(SkBitmap* bitmap) { argument 20 bitmap->allocN32Pixels(W, H); 22 SkCanvas canvas(*bitmap); 44 SkBitmap bitmap; variable 45 create_bitmap(&bitmap); variable 46 int x = bitmap.width() / 2; 47 int y = bitmap.height() / 2; 51 canvas->drawBitmap(bitmap, 0, 0); 56 // Draw the bottom right fourth of the bitmap over the top left 58 bitmap [all...] |
/external/jemalloc/test/unit/ |
H A D | bitmap.c | 32 bitmap_t *bitmap = malloc(sizeof(bitmap_t) * local 34 bitmap_init(bitmap, &binfo); 37 assert_false(bitmap_get(bitmap, &binfo, j), 40 free(bitmap); 55 bitmap_t *bitmap = malloc(sizeof(bitmap_t) * local 57 bitmap_init(bitmap, &binfo); 60 bitmap_set(bitmap, &binfo, j); 61 assert_true(bitmap_full(bitmap, &binfo), 63 free(bitmap); 78 bitmap_t *bitmap local 107 bitmap_t *bitmap = malloc(sizeof(bitmap_t) * local [all...] |
/external/chromium_org/cc/test/ |
H A D | pixel_test_utils.h | 15 // Encodes a bitmap into a PNG and write to disk. Returns true on success. The 17 bool WritePNGFile(const SkBitmap& bitmap, const base::FilePath& file_path, 20 // Reads and decodes a PNG image to a bitmap. Returns true on success. The PNG 22 bool ReadPNGFile(const base::FilePath& file_path, SkBitmap* bitmap); 24 std::string GetPNGDataUrl(const SkBitmap& bitmap);
|
/external/chromium_org/third_party/skia/tools/ |
H A D | picture_utils.cpp | 18 void force_all_opaque(const SkBitmap& bitmap) { argument 19 SkASSERT(NULL == bitmap.getTexture()); 20 SkASSERT(kN32_SkColorType == bitmap.colorType()); 21 if (bitmap.getTexture() || kN32_SkColorType == bitmap.colorType()) { 25 SkAutoLockPixels lock(bitmap); 26 for (int y = 0; y < bitmap.height(); y++) { 27 for (int x = 0; x < bitmap.width(); x++) { 28 *bitmap.getAddr32(x, y) |= (SK_A32_MASK << SK_A32_SHIFT); 49 void setup_bitmap(SkBitmap* bitmap, in argument [all...] |
H A D | test_image_decoder.cpp | 25 SkBitmap bitmap; local 26 if (!(SkImageDecoder::DecodeFile(argv[1], &bitmap))) { 29 if (bitmap.empty()) {
|
/external/skia/tools/ |
H A D | picture_utils.cpp | 18 void force_all_opaque(const SkBitmap& bitmap) { argument 19 SkASSERT(NULL == bitmap.getTexture()); 20 SkASSERT(kN32_SkColorType == bitmap.colorType()); 21 if (NULL != bitmap.getTexture() || kN32_SkColorType == bitmap.colorType()) { 25 SkAutoLockPixels lock(bitmap); 26 for (int y = 0; y < bitmap.height(); y++) { 27 for (int x = 0; x < bitmap.width(); x++) { 28 *bitmap.getAddr32(x, y) |= (SK_A32_MASK << SK_A32_SHIFT); 49 void setup_bitmap(SkBitmap* bitmap, in argument [all...] |
H A D | test_image_decoder.cpp | 25 SkBitmap bitmap; local 26 if (!(SkImageDecoder::DecodeFile(argv[1], &bitmap))) { 29 if (bitmap.empty()) {
|