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

1234567891011>>

/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/chromium_org/third_party/WebKit/Source/core/page/
H A DImageBitmapTest.cpp51 SkBitmap bitmap; local
52 bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10);
53 bitmap.allocPixels();
54 bitmap.eraseColor(0xFFFFFFFF);
57 imageElement->setImageResource(new ImageResource(BitmapImage::create(NativeImageSkia::create(bitmap)).get()));
59 RefPtr<ImageBitmap> imageBitmapNoCrop = ImageBitmap::create(imageElement.get(), IntRect(0, 0, bitmap.width(), bitmap.height()));
60 RefPtr<ImageBitmap> imageBitmapInteriorCrop = ImageBitmap::create(imageElement.get(), IntRect(bitmap.width() / 2, bitmap.height() / 2, 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.cpp11 based bitmap. [palette (colortable) + indices].
21 static void build_compressed_data(void* buffer, const SkBitmap& bitmap) { argument
22 SkASSERT(SkBitmap::kIndex8_Config == bitmap.config());
24 SkAutoLockPixels alp(bitmap);
25 if (!bitmap.readyToDraw()) {
26 SkDEBUGFAIL("bitmap not ready to draw!");
30 SkColorTable* ctable = bitmap.getColorTable();
39 if ((unsigned)bitmap.width() == bitmap.rowBytes()) {
40 memcpy(dst, bitmap
56 generate_bitmap_cache_id(const SkBitmap& bitmap, GrCacheID* id) argument
76 generate_bitmap_texture_desc(const SkBitmap& bitmap, GrTextureDesc* desc) argument
90 const SkBitmap* bitmap = &origBitmap; local
152 GrIsBitmapInCache(const GrContext* ctx, const SkBitmap& bitmap, const GrTextureParams* params) argument
163 GrLockAndRefCachedBitmapTexture(GrContext* ctx, const SkBitmap& bitmap, const GrTextureParams* params) argument
[all...]
/external/skia/src/gpu/
H A DSkGr.cpp11 based bitmap. [palette (colortable) + indices].
21 static void build_compressed_data(void* buffer, const SkBitmap& bitmap) { argument
22 SkASSERT(SkBitmap::kIndex8_Config == bitmap.config());
24 SkAutoLockPixels alp(bitmap);
25 if (!bitmap.readyToDraw()) {
26 SkDEBUGFAIL("bitmap not ready to draw!");
30 SkColorTable* ctable = bitmap.getColorTable();
39 if ((unsigned)bitmap.width() == bitmap.rowBytes()) {
40 memcpy(dst, bitmap
56 generate_bitmap_cache_id(const SkBitmap& bitmap, GrCacheID* id) argument
76 generate_bitmap_texture_desc(const SkBitmap& bitmap, GrTextureDesc* desc) argument
90 const SkBitmap* bitmap = &origBitmap; local
152 GrIsBitmapInCache(const GrContext* ctx, const SkBitmap& bitmap, const GrTextureParams* params) argument
163 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/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.setIsOpaque(true);
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/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 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/android_webview/java/src/org/chromium/android_webview/
H A DJavaBrowserViewRendererHelper.java42 Bitmap bitmap = sBitmapCache.get(ownerKey);
43 if (bitmap == null || bitmap.getWidth() != width || bitmap.getHeight() != height) {
45 bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
47 android.util.Log.w(LOGTAG, "Error allocating bitmap");
54 sBitmapCache.put(ownerKey, bitmap);
57 return bitmap;
61 * Draws a provided bitmap into a canvas.
65 private static void drawBitmapIntoCanvas(Bitmap bitmap, Canva argument
74 recordBitmapIntoPicture(Bitmap bitmap) argument
[all...]
/external/chromium_org/skia/ext/
H A Dbitmap_platform_device_android.cc12 SkBitmap bitmap; local
13 bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height);
14 if (bitmap.allocPixels()) {
15 bitmap.setIsOpaque(is_opaque);
16 // Follow the logic in SkCanvas::createDevice(), initialize the bitmap if it
19 bitmap.eraseARGB(0, 0, 0, 0);
20 return new BitmapPlatformDevice(bitmap);
37 SkBitmap bitmap; local
38 bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height);
40 bitmap
48 BitmapPlatformDevice(const SkBitmap& 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/skia/tools/
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/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...]
/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/chromium_org/third_party/WebKit/Source/core/platform/graphics/chromium/
H A DScaledImageFragment.h45 static PassOwnPtr<ScaledImageFragment> createComplete(const SkISize& scaledSize, size_t index, const SkBitmap& bitmap) argument
47 return adoptPtr(new ScaledImageFragment(scaledSize, index, CompleteImage, bitmap));
50 static PassOwnPtr<ScaledImageFragment> createPartial(const SkISize& scaledSize, size_t index, size_t generation, const SkBitmap& bitmap) argument
52 return adoptPtr(new ScaledImageFragment(scaledSize, index, generation, bitmap));
62 const SkBitmap& bitmap() const { return m_bitmap; } function in class:WebCore::ScaledImageFragment
63 SkBitmap& bitmap() { return m_bitmap; } function in class:WebCore::ScaledImageFragment
/external/chromium_org/third_party/WebKit/Source/core/platform/image-decoders/
H A DImageFrame.cpp57 // bitmap throughout this object's lifetime.
58 m_bitmap->bitmap().lockPixels();
78 m_bitmap->bitmap().reset();
81 // calls this to free the bitmap data, but other functions like
88 m_bitmap->bitmap().eraseARGB(0, 0, 0, 0);
98 m_bitmap->bitmap().reset();
100 return otherBitmap->bitmap().copyTo(&m_bitmap->bitmap(), otherBitmap->bitmap().config());
108 m_bitmap->bitmap()
[all...]

Completed in 869 milliseconds

1234567891011>>