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

1234567891011>>

/external/skia/gm/
H A Dsmallimage.cpp5 SkBitmap bitmap; local
6 if (GetResourceAsBitmap("randPixels.png", &bitmap)) {
7 canvas->drawBitmap(bitmap, 0.0f, 0.0f);
H A Dgrayscalejpg.cpp18 SkBitmap bitmap; local
19 if (GetResourceAsBitmap(kResource, &bitmap)) {
20 canvas->drawBitmap(bitmap, 0.0f, 0.0f);
H A Dextractbitmap.cpp17 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...]
H A Dbitmappremul.cpp14 * This GM checks that bitmap pixels are unpremultiplied before being exported
18 * This tests both the ARGB4444 and ARGB8888 bitmap configurations.
25 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { argument
26 bitmap->allocPixels(SkImageInfo::Make(SLIDE_SIZE, SLIDE_SIZE, ct,
28 bitmap->eraseColor(SK_ColorWHITE);
32 SkBitmap bitmap; local
33 init_bitmap(kN32_SkColorType, &bitmap);
36 uint32_t* dst = bitmap.getAddr32(0, y);
45 return bitmap;
49 SkBitmap bitmap; local
66 SkBitmap bitmap; local
85 SkBitmap bitmap; local
[all...]
/external/openssh/
H A Dbitmap.h24 struct bitmap;
26 /* Allocate a new bitmap. Returns NULL on allocation failure. */
27 struct bitmap *bitmap_new(void);
29 /* Free a bitmap */
30 void bitmap_free(struct bitmap *b);
32 /* Zero an existing bitmap */
33 void bitmap_zero(struct bitmap *b);
35 /* Test whether a bit is set in a bitmap. */
36 int bitmap_test_bit(struct bitmap *b, u_int n);
38 /* Set a bit in a bitmap
[all...]
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
H A DBitmapResource.java1 package com.bumptech.glide.load.resource.bitmap;
13 private final Bitmap bitmap; field in class:BitmapResource
20 * @param bitmap A Bitmap.
23 public static BitmapResource obtain(Bitmap bitmap, BitmapPool bitmapPool) { argument
24 if (bitmap == null) {
27 return new BitmapResource(bitmap, bitmapPool);
31 public BitmapResource(Bitmap bitmap, BitmapPool bitmapPool) { argument
32 if (bitmap == null) {
38 this.bitmap = bitmap;
[all...]
/external/skia/tests/
H A DBitmapHasherTest.cpp17 // 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/e2fsprogs/lib/ext2fs/
H A Dgen_bitmap.c2 * 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 Dbitops.h42 * 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 Dgen_bitmap64.c50 * 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...]
H A Dblkmap64_ba.c31 * Private data for bit array implementation of bitmap ops.
33 * exactly equivalent to the old-skool char * bitmap member.
42 static errcode_t ba_alloc_private_data (ext2fs_generic_bitmap bitmap) argument
58 size = (size_t) (((bitmap->real_end - bitmap->start) / 8) + 1);
66 bitmap->private = (void *) bp;
71 ext2fs_generic_bitmap bitmap)
77 retval = ba_alloc_private_data (bitmap);
81 bp = (ext2fs_ba_private) bitmap->private;
82 size = (size_t) (((bitmap
88 ba_free_bmap(ext2fs_generic_bitmap bitmap) argument
164 ba_mark_bmap(ext2fs_generic_bitmap bitmap, __u64 arg) argument
172 ba_unmark_bmap(ext2fs_generic_bitmap bitmap, __u64 arg) argument
180 ba_test_bmap(ext2fs_generic_bitmap bitmap, __u64 arg) argument
188 ba_mark_bmap_extent(ext2fs_generic_bitmap bitmap, __u64 arg, unsigned int num) argument
199 ba_unmark_bmap_extent(ext2fs_generic_bitmap bitmap, __u64 arg, unsigned int num) argument
210 ba_test_clear_bmap_extent(ext2fs_generic_bitmap bitmap, __u64 start, unsigned int len) argument
284 ba_set_bmap_range(ext2fs_generic_bitmap bitmap, __u64 start, size_t num, void *in) argument
294 ba_get_bmap_range(ext2fs_generic_bitmap bitmap, __u64 start, size_t num, void *out) argument
304 ba_clear_bmap(ext2fs_generic_bitmap bitmap) argument
312 ba_print_stats(ext2fs_generic_bitmap bitmap) argument
320 ba_find_first_zero(ext2fs_generic_bitmap bitmap, __u64 start, __u64 end, __u64 *out) argument
[all...]
H A Dbmap64.h2 * bmap64.h --- 64-bit bitmap structure
70 void (*free_bmap)(ext2fs_generic_bitmap bitmap);
73 errcode_t (*resize_bmap)(ext2fs_generic_bitmap bitmap,
77 int (*mark_bmap)(ext2fs_generic_bitmap bitmap, __u64 arg);
78 int (*unmark_bmap)(ext2fs_generic_bitmap bitmap, __u64 arg);
79 int (*test_bmap)(ext2fs_generic_bitmap bitmap, __u64 arg);
80 void (*mark_bmap_extent)(ext2fs_generic_bitmap bitmap, __u64 arg,
82 void (*unmark_bmap_extent)(ext2fs_generic_bitmap bitmap, __u64 arg,
84 int (*test_clear_bmap_extent)(ext2fs_generic_bitmap bitmap,
86 errcode_t (*set_bmap_range)(ext2fs_generic_bitmap bitmap,
[all...]
/external/valgrind/drd/
H A Dpub_drd_bitmap.h26 * 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/skia/src/utils/
H A DSkBitmapHasher.h20 * 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/jemalloc/test/unit/
H A Dbitmap.c26 bitmap_t *bitmap = malloc(sizeof(bitmap_t) * local
28 bitmap_init(bitmap, &binfo);
31 assert_false(bitmap_get(bitmap, &binfo, j),
34 free(bitmap);
49 bitmap_t *bitmap = malloc(sizeof(bitmap_t) * local
51 bitmap_init(bitmap, &binfo);
54 bitmap_set(bitmap, &binfo, j);
55 assert_true(bitmap_full(bitmap, &binfo),
57 free(bitmap);
72 bitmap_t *bitmap local
101 bitmap_t *bitmap = malloc(sizeof(bitmap_t) * local
[all...]
/external/skia/tools/
H A Dpicture_utils.cpp18 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 Dtest_image_decoder.cpp25 SkBitmap bitmap; local
26 if (!(SkImageDecoder::DecodeFile(argv[1], &bitmap))) {
29 if (bitmap.empty()) {
H A DLazyDecodeBitmap.h20 bool LazyDecodeBitmap(const void* buffer, size_t size, SkBitmap* bitmap);
/external/jmonkeyengine/engine/src/android/com/jme3/asset/
H A DAndroidImageInfo.java15 * {@link AndroidImageInfo#loadBitmap()} method to acquire a bitmap by their own means.
22 protected Bitmap bitmap; field in class:AndroidImageInfo
30 if (bitmap == null || bitmap.isRecycled()){
40 return bitmap;
50 * Loads the bitmap directly from the asset info, possibly updating
57 bitmap = BitmapFactory.decodeStream(in);
58 if (bitmap == null) {
67 switch (bitmap.getConfig()) {
83 // but just loads bitmap directl
[all...]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
H A DBitmapFactoryTest.java22 Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an_image);
23 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(bitmap).getDescription());
24 assertEquals(100, bitmap.getWidth());
25 assertEquals(100, bitmap.getHeight());
31 Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an_image, opts);
32 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(bitmap).getDescription());
33 assertEquals(100, bitmap.getWidth());
34 assertEquals(100, bitmap.getHeight());
41 Bitmap bitmap = BitmapFactory.decodeFile("/some/file.jpg");
42 assertEquals("Bitmap for file:/some/file.jpg", shadowOf(bitmap)
[all...]
/external/skia/include/effects/
H A DSkBitmapSource.h16 static SkBitmapSource* Create(const SkBitmap& bitmap) { argument
17 return SkNEW_ARGS(SkBitmapSource, (bitmap));
19 static SkBitmapSource* Create(const SkBitmap& bitmap, argument
22 return SkNEW_ARGS(SkBitmapSource, (bitmap, srcRect, dstRect, filterQuality));
30 explicit SkBitmapSource(const SkBitmap& bitmap);
31 SkBitmapSource(const SkBitmap& bitmap,
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/
H A DLruPoolStrategy.java6 void put(Bitmap bitmap); argument
9 String logBitmap(Bitmap bitmap); argument
11 int getSize(Bitmap bitmap); argument
/external/linux-tools-perf/src/tools/perf/util/
H A Dbitmap.c2 * From lib/bitmap.c
3 * Helper functions for bitmap.h.
8 #include <linux/bitmap.h>
10 int __bitmap_weight(const unsigned long *bitmap, int bits) argument
15 w += hweight_long(bitmap[k]);
18 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits));
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowBitmapDrawable.java20 private Bitmap bitmap; field in class:ShadowBitmapDrawable
29 public void __constructor__(Bitmap bitmap) { argument
30 this.bitmap = bitmap;
33 public void __constructor__(Resources resources, Bitmap bitmap) { argument
34 this.bitmap = bitmap;
38 * Draws the contained bitmap onto the canvas at 0,0 with a default {@code Paint}
56 return bitmap;
61 * your tests assert that the bitmap i
[all...]
/external/skia/samplecode/
H A DSampleWritePixels.cpp19 static void create_bitmap(SkBitmap* bitmap) { argument
22 bitmap->allocN32Pixels(W, H);
24 SkCanvas canvas(*bitmap);
47 SkBitmap bitmap; local
48 create_bitmap(&bitmap);
49 int x = bitmap.width() / 2;
50 int y = bitmap.height() / 2;
53 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y));
57 canvas->writePixels(bitmap, 0, 0);

Completed in 780 milliseconds

1234567891011>>