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

1234567891011>>

/external/chromium_org/third_party/WebKit/Source/platform/graphics/
H A DUnacceleratedImageBufferSurface.cpp42 SkBitmap bitmap; local
43 bitmap.setConfig(SkBitmap::kARGB_8888_Config, size.width(), size.height());
44 bitmap.allocPixels();
45 if (bitmap.isNull())
47 m_canvas = adoptPtr(new SkCanvas(bitmap));
/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
45 void ext2fs_warn_bitmap2(ext2fs_generic_bitmap bitmap, argument
49 if (bitmap->description)
50 com_err(0, bitmap->base_error_code+code,
51 "#%lu for %s", arg, bitmap->description);
53 com_err(0, bitmap->base_error_code + code, "#%lu", arg);
57 static errcode_t check_magic(ext2fs_generic_bitmap bitmap) argument
59 if (!bitmap || !((bitmap
71 ext2fs_generic_bitmap bitmap; local
143 ext2fs_free_generic_bitmap(ext2fs_inode_bitmap bitmap) argument
160 ext2fs_test_generic_bitmap(ext2fs_generic_bitmap bitmap, blk_t bitno) argument
170 ext2fs_mark_generic_bitmap(ext2fs_generic_bitmap bitmap, __u32 bitno) argument
180 ext2fs_unmark_generic_bitmap(ext2fs_generic_bitmap bitmap, blk_t bitno) argument
190 ext2fs_get_generic_bitmap_start(ext2fs_generic_bitmap bitmap) argument
195 ext2fs_get_generic_bitmap_end(ext2fs_generic_bitmap bitmap) argument
200 ext2fs_clear_generic_bitmap(ext2fs_generic_bitmap bitmap) argument
209 ext2fs_fudge_generic_bitmap_end(ext2fs_inode_bitmap bitmap, errcode_t magic, errcode_t neq, ext2_ino_t end, ext2_ino_t *oend) argument
355 ext2fs_test_clear_generic_bitmap_range(ext2fs_generic_bitmap bitmap, unsigned int start, unsigned int len) argument
427 ext2fs_test_block_bitmap_range(ext2fs_block_bitmap bitmap, blk_t block, int num) argument
440 ext2fs_test_inode_bitmap_range(ext2fs_inode_bitmap bitmap, ino_t inode, int num) argument
453 ext2fs_mark_block_bitmap_range(ext2fs_block_bitmap bitmap, blk_t block, int num) argument
467 ext2fs_unmark_block_bitmap_range(ext2fs_block_bitmap bitmap, blk_t block, int num) argument
[all...]
H A Dbitops.h47 * 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,
73 extern void ext2fs_fast_unmark_block_bitmap(ext2fs_block_bitmap bitmap,
305 ext2fs_mark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block) argument
312 ext2fs_unmark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block) argument
319 ext2fs_test_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block) argument
326 ext2fs_mark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument
333 ext2fs_unmark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument
340 ext2fs_test_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument
347 ext2fs_fast_mark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block) argument
353 ext2fs_fast_unmark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block) argument
359 ext2fs_fast_test_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block) argument
366 ext2fs_fast_mark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument
372 ext2fs_fast_unmark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument
378 ext2fs_fast_test_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode) argument
385 ext2fs_get_block_bitmap_start(ext2fs_block_bitmap bitmap) argument
390 ext2fs_get_inode_bitmap_start(ext2fs_inode_bitmap bitmap) argument
395 ext2fs_get_block_bitmap_end(ext2fs_block_bitmap bitmap) argument
400 ext2fs_get_inode_bitmap_end(ext2fs_inode_bitmap bitmap) argument
405 ext2fs_fast_test_block_bitmap_range(ext2fs_block_bitmap bitmap, blk_t block, int num) argument
411 ext2fs_fast_mark_block_bitmap_range(ext2fs_block_bitmap bitmap, blk_t block, int num) argument
417 ext2fs_fast_unmark_block_bitmap_range(ext2fs_block_bitmap bitmap, blk_t block, int num) argument
[all...]
/external/linux-tools-perf/util/
H A Dbitmap.c2 * From lib/bitmap.c
3 * Helper functions for bitmap.h.
10 #include <linux/bitmap.h>
12 #include "include/linux/bitmap.h"
16 int __bitmap_weight(const unsigned long *bitmap, int bits) argument
21 w += hweight_long(bitmap[k]);
24 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits));
/external/chromium_org/ui/gfx/image/
H A Dimage_util.cc19 scoped_ptr<SkBitmap> bitmap(gfx::JPEGCodec::Decode(input, input_size));
20 if (bitmap.get())
21 return Image::CreateFrom1xBitmap(*bitmap);
33 const SkBitmap& bitmap = image_skia_rep.sk_bitmap(); local
34 SkAutoLockPixels bitmap_lock(bitmap);
36 if (!bitmap.readyToDraw())
40 reinterpret_cast<unsigned char*>(bitmap.getAddr32(0, 0)),
41 gfx::JPEGCodec::FORMAT_SkBitmap, bitmap.width(),
42 bitmap.height(),
43 static_cast<int>(bitmap
[all...]
/external/chromium_org/ui/base/cursor/
H A Dcursor_loader_x11_unittest.cc17 SkBitmap bitmap; local
18 bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 5);
19 bitmap.allocPixels();
25 &bitmap,
27 EXPECT_EQ(10, bitmap.width());
28 EXPECT_EQ(5, bitmap.height());
33 &bitmap,
36 EXPECT_EQ(5, bitmap.width());
37 EXPECT_EQ(10, bitmap.height());
42 &bitmap,
[all...]
/external/valgrind/main/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/chromium_org/third_party/skia/src/gpu/
H A DSkGr.cpp15 based bitmap. [palette (colortable) + indices].
25 static void build_compressed_data(void* buffer, const SkBitmap& bitmap) { argument
26 SkASSERT(SkBitmap::kIndex8_Config == bitmap.config());
28 SkAutoLockPixels alp(bitmap);
29 if (!bitmap.readyToDraw()) {
30 SkDEBUGFAIL("bitmap not ready to draw!");
34 SkColorTable* ctable = bitmap.getColorTable();
47 if ((unsigned)bitmap.width() == bitmap.rowBytes()) {
48 memcpy(dst, bitmap
64 generate_bitmap_cache_id(const SkBitmap& bitmap, GrCacheID* id) argument
84 generate_bitmap_texture_desc(const SkBitmap& bitmap, GrTextureDesc* desc) argument
120 const SkBitmap* bitmap = &origBitmap; local
196 GrIsBitmapInCache(const GrContext* ctx, const SkBitmap& bitmap, const GrTextureParams* params) argument
207 GrLockAndRefCachedBitmapTexture(GrContext* ctx, const SkBitmap& bitmap, const GrTextureParams* params) argument
[all...]
/external/skia/src/gpu/
H A DSkGr.cpp15 based bitmap. [palette (colortable) + indices].
25 static void build_compressed_data(void* buffer, const SkBitmap& bitmap) { argument
26 SkASSERT(SkBitmap::kIndex8_Config == bitmap.config());
28 SkAutoLockPixels alp(bitmap);
29 if (!bitmap.readyToDraw()) {
30 SkDEBUGFAIL("bitmap not ready to draw!");
34 SkColorTable* ctable = bitmap.getColorTable();
47 if ((unsigned)bitmap.width() == bitmap.rowBytes()) {
48 memcpy(dst, bitmap
64 generate_bitmap_cache_id(const SkBitmap& bitmap, GrCacheID* id) argument
84 generate_bitmap_texture_desc(const SkBitmap& bitmap, GrTextureDesc* desc) argument
120 const SkBitmap* bitmap = &origBitmap; local
196 GrIsBitmapInCache(const GrContext* ctx, const SkBitmap& bitmap, const GrTextureParams* params) argument
207 GrLockAndRefCachedBitmapTexture(GrContext* ctx, const SkBitmap& bitmap, const GrTextureParams* params) argument
[all...]
/external/chromium_org/third_party/skia/include/utils/
H A DSkPathUtils.h15 * 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 DSkBitmapHasher.h20 * Fills in "result" with a hash of the pixels in this bitmap.
25 * Note: depending on the bitmap config, 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/skia/include/utils/
H A DSkPathUtils.h15 * 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 DSkBitmapHasher.h20 * Fills in "result" with a hash of the pixels in this bitmap.
25 * Note: depending on the bitmap config, 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/skia/dm/
H A DDMCpuTask.cpp27 SkBitmap bitmap; local
28 SetupBitmap(fConfig, fGM.get(), &bitmap);
30 SkCanvas canvas(bitmap);
36 SPAWN(ExpectationsTask, fExpectations, bitmap);
38 SPAWN(PipeTask, fGMFactory(NULL), bitmap, false, false);
39 SPAWN(PipeTask, fGMFactory(NULL), bitmap, true, false);
40 SPAWN(PipeTask, fGMFactory(NULL), bitmap, true, true);
41 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, false);
42 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, true);
43 SPAWN(SerializeTask, fGMFactory(NULL), bitmap);
[all...]
/external/skia/tests/
H A DBitmapHasherTest.cpp29 // Fill in bitmap with test data.
30 void CreateTestBitmap(SkBitmap &bitmap, SkBitmap::Config config, int width, int height, argument
32 bitmap.setConfig(config, width, height);
33 REPORTER_ASSERT(fReporter, bitmap.allocPixels());
34 bitmap.setAlphaType(kOpaque_SkAlphaType);
35 bitmap.eraseColor(color);
40 SkBitmap bitmap; local
43 CreateTestBitmap(bitmap, SkBitmap::kARGB_8888_Config, 333, 555, SK_ColorBLUE);
44 REPORTER_ASSERT(fReporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
47 CreateTestBitmap(bitmap, SkBitma
[all...]
/external/skia/tools/
H A Dtest_image_decoder.cpp25 SkBitmap bitmap; local
26 if (!(SkImageDecoder::DecodeFile(argv[1], &bitmap))) {
29 if (bitmap.empty()) {
H A Dpicture_utils.cpp16 void force_all_opaque(const SkBitmap& bitmap) { argument
17 SkASSERT(NULL == bitmap.getTexture());
18 SkASSERT(SkBitmap::kARGB_8888_Config == bitmap.config());
19 if (NULL != bitmap.getTexture() || SkBitmap::kARGB_8888_Config == bitmap.config()) {
23 SkAutoLockPixels lock(bitmap);
24 for (int y = 0; y < bitmap.height(); y++) {
25 for (int x = 0; x < bitmap.width(); x++) {
26 *bitmap.getAddr32(x, y) |= (SK_A32_MASK << SK_A32_SHIFT);
88 void setup_bitmap(SkBitmap* bitmap, in argument
[all...]
/external/chromium_org/webkit/renderer/compositor_bindings/
H A Dweb_image_layer_impl.cc31 void WebImageLayerImpl::setBitmap(SkBitmap bitmap) { argument
33 static_cast<cc::PictureImageLayer*>(layer_->layer())->SetBitmap(bitmap);
35 gfx::Size(bitmap.width(), bitmap.height()));
37 static_cast<cc::ImageLayer*>(layer_->layer())->SetBitmap(bitmap);
/external/skia/gm/
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(SkBitmap::Config config, SkBitmap* bitmap) { argument
26 bitmap->setConfig(config, SLIDE_SIZE, SLIDE_SIZE);
27 bitmap->allocPixels();
28 bitmap->eraseColor(SK_ColorWHITE);
32 SkBitmap bitmap; local
33 init_bitmap(SkBitmap::kARGB_8888_Config, &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...]
H A Dextractbitmap.cpp16 static void create_bitmap(SkBitmap* bitmap) { argument
19 bitmap->setConfig(SkBitmap::kARGB_8888_Config, W, H);
20 bitmap->allocPixels();
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 ove
[all...]
/external/chromium_org/chrome/browser/ui/ash/
H A Duser_wallpaper_delegate_win.cc38 SkBitmap bitmap; variable
39 bitmap.setConfig(SkBitmap::kARGB_8888_Config, 16, 16);
40 bitmap.allocPixels();
41 bitmap.eraseARGB(255, kBackgroundRed, kBackgroundGreen, kBackgroundBlue);
46 SkAutoLockPixels alp(bitmap);
47 *bitmap.getAddr32(0,0) = SkColorSetRGB(0, 0, 0);
50 gfx::ImageSkia wallpaper = gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/
H A DJavaBrowserViewRendererHelper.java39 Bitmap bitmap = sBitmapCache.get(ownerKey);
40 if (bitmap == null || bitmap.getWidth() != width || bitmap.getHeight() != height) {
42 bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
44 android.util.Log.w(LOGTAG, "Error allocating bitmap");
51 sBitmapCache.put(ownerKey, bitmap);
54 return bitmap;
58 * Draws a provided bitmap into a canvas.
62 private static void drawBitmapIntoCanvas(Bitmap bitmap, Canva argument
71 recordBitmapIntoPicture(Bitmap bitmap) argument
[all...]
/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/smack/src/org/xbill/DNS/
H A DNXTRecord.java22 private BitSet bitmap; field in class:NXTRecord
34 * @param bitmap The set of type for which records exist at this name
37 NXTRecord(Name name, int dclass, long ttl, Name next, BitSet bitmap) { argument
40 this.bitmap = bitmap;
46 bitmap = new BitSet();
52 bitmap.set(i * 8 + j);
59 bitmap = new BitSet();
67 bitmap.set(typecode);
77 int length = bitmap
[all...]
/external/chromium_org/ui/gfx/
H A Dicon_util_unittest.cc52 SkBitmap bitmap; local
53 bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height);
54 bitmap.allocPixels();
56 memset(bitmap.getPixels(), 0, width * height * 4);
57 return bitmap;
133 SkBitmap bitmap = image.AsBitmap(); local
134 EXPECT_EQ(256, bitmap.width());
135 EXPECT_EQ(256, bitmap.height());
160 scoped_ptr<SkBitmap> bitmap; local
161 bitmap
170 scoped_ptr<SkBitmap> bitmap; local
199 scoped_ptr<SkBitmap> bitmap; local
275 scoped_ptr<SkBitmap> bitmap; local
309 SkBitmap bitmap = CreateBlackSkBitmap(kSmallIconWidth, kSmallIconHeight); local
[all...]

Completed in 697 milliseconds

1234567891011>>