/external/chromium_org/third_party/skia/tests/ |
H A D | CachedDecodingPixelRefTest.cpp | 23 * Fill this bitmap with some color. 40 * encode this bitmap into some data via SkImageEncoder 94 original bitmap */ 348 SkBitmap bitmap; local 349 bitmap.allocN32Pixels(TestImageGenerator::Width(), TestImageGenerator::Height()); 350 SkCanvas canvas(bitmap); 356 r, TestImageGenerator::Color() == *bitmap.getAddr32(0, 0)); 358 REPORTER_ASSERT(r, kDefaultColor == bitmap.getColor(0,0));
|
/external/chromium_org/third_party/skia/tools/ |
H A D | render_pdfs_main.cpp | 87 static SkData* encode_to_dct_data(size_t*, const SkBitmap& bitmap) { argument 92 SkBitmap bm = bitmap; 97 bitmap.deepCopyTo(©);
|
/external/chromium_org/tools/perf/metrics/ |
H A D | speedindex_unittest.py | 12 from telemetry.core import bitmap namespace 52 self._histogram = bitmap.ColorHistogram(r, g, b, bitmap.WHITE)
|
/external/chromium_org/tools/telemetry/telemetry/core/backends/chrome/ |
H A D | inspector_backend.py | 10 from telemetry.core import bitmap namespace 136 return bitmap.Bitmap.FromBase64Png(snap['data'])
|
/external/chromium_org/ui/app_list/test/ |
H A D | app_list_test_model.cc | 17 SkBitmap bitmap; local 18 bitmap.allocN32Pixels(width, height); 19 bitmap.eraseARGB(255, 0, 255, 0); 20 return gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
|
/external/chromium_org/ui/base/resource/ |
H A D | resource_bundle_unittest.cc | 51 // bitmap at the requested scale factor and fell back to 1x. 123 // Creates datapack at |path| with a single bitmap at resource ID 3 126 // in the encoded bitmap data. 130 SkBitmap bitmap; local 131 bitmap.allocN32Pixels(edge_size, edge_size); 132 bitmap.eraseColor(SK_ColorWHITE); 134 EXPECT_TRUE(gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, false, &bitmap_data)); 543 // 2x data pack bitmap has custom chunk to indicate that the 2x bitmap is not
|
/external/chromium_org/ui/gfx/ |
H A D | canvas_skia.cc | 58 // Checks each pixel immediately adjacent to the given pixel in the bitmap. If 62 // |DrawStringRectWithHalo| will modify the bitmap as it goes, and cleared 64 bool PixelShouldGetHalo(const SkBitmap& bitmap, argument 68 *bitmap.getAddr32(x - 1, y) != halo_color && 69 *bitmap.getAddr32(x - 1, y) != 0) 71 if (x < bitmap.width() - 1 && 72 *bitmap.getAddr32(x + 1, y) != halo_color && 73 *bitmap.getAddr32(x + 1, y) != 0) 76 *bitmap.getAddr32(x, y - 1) != halo_color && 77 *bitmap [all...] |
H A D | color_utils.cc | 226 void BuildLumaHistogram(const SkBitmap& bitmap, int histogram[256]) { argument 227 DCHECK_EQ(kN32_SkColorType, bitmap.colorType()); 229 SkAutoLockPixels bitmap_lock(bitmap); 231 int pixel_width = bitmap.width(); 232 int pixel_height = bitmap.height(); 235 ++histogram[GetLuminanceForColor(bitmap.getColor(x, y))];
|
H A D | icon_util_unittest.cc | 54 SkBitmap bitmap; local 55 bitmap.allocN32Pixels(width, height); 57 memset(bitmap.getPixels(), 0, width * height * 4); 58 return bitmap; 134 SkBitmap bitmap = image.AsBitmap(); local 135 EXPECT_EQ(256, bitmap.width()); 136 EXPECT_EQ(256, bitmap.height()); 161 scoped_ptr<SkBitmap> bitmap; local 162 bitmap.reset(IconUtil::CreateSkBitmapFromHICON(icon, icon_size)); 163 EXPECT_NE(bitmap 171 scoped_ptr<SkBitmap> bitmap; local 199 scoped_ptr<SkBitmap> bitmap; local 272 scoped_ptr<SkBitmap> bitmap; local 306 SkBitmap bitmap = CreateBlackSkBitmap(kSmallIconWidth, kSmallIconHeight); local [all...] |
H A D | skbitmap_operations_unittest.cc | 61 const SkBitmap& bitmap, 64 shifted.allocN32Pixels(bitmap.width(), bitmap.height()); 67 SkAutoLockPixels lock_bitmap(bitmap); 70 // Loop through the pixels of the original bitmap. 71 for (int y = 0; y < bitmap.height(); ++y) { 72 SkPMColor* pixels = bitmap.getAddr32(0, y); 75 for (int x = 0; x < bitmap.width(); ++x) { 86 // Invert bitmap and verify the each pixel is inverted and the alpha value is 208 // Make sure that when shifting a bitmap withou 60 ReferenceCreateHSLShiftedBitmap( const SkBitmap& bitmap, color_utils::HSL hsl_shift) argument [all...] |
/external/chromium_org/ui/gfx/image/ |
H A D | image_skia_unittest.cc | 242 const SkBitmap* bitmap = image_skia.bitmap(); local 243 EXPECT_NE(static_cast<SkBitmap*>(NULL), bitmap); local 244 EXPECT_FALSE(bitmap->isNull()); 254 // Check that ImageSkia::bitmap() still returns a valid SkBitmap pointer for 256 const SkBitmap* bitmap = empty_image_copy.bitmap(); local 257 ASSERT_NE(static_cast<SkBitmap*>(NULL), bitmap); local 258 EXPECT_TRUE(bitmap->isNull()); 259 EXPECT_TRUE(bitmap 412 SkBitmap bitmap; local [all...] |
H A D | image_unittest_util.cc | 56 SkBitmap bitmap; local 57 bitmap.allocN32Pixels(width, height); 58 bitmap.eraseARGB(255, 0, 255, 0); 59 return bitmap; 67 SkBitmap bitmap = CreateBitmap(edge_size, edge_size); local 69 PNGCodec::EncodeBGRASkBitmap(bitmap, false, &bytes->data()); 127 const SkBitmap& bitmap) { 131 return bitmap.isNull(); 134 return IsEqual(bitmap, decoded); 138 SkBitmap bitmap local 126 IsEqual(const scoped_refptr<base::RefCountedMemory>& bytes, const SkBitmap& bitmap) argument 232 SkBitmap bitmap = *image.bitmap(); local [all...] |
/external/chromium_org/ui/message_center/views/ |
H A D | message_view.cc | 35 SkBitmap bitmap; local 36 bitmap.allocN32Pixels(width, height); 37 bitmap.eraseColor(color); 38 return gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
|
/external/chromium_org/ui/snapshot/ |
H A D | snapshot_aura_unittest.cc | 61 const SkBitmap* bitmap = image.ToSkBitmap(); local 63 bitmap->pixelRef()->pixels()); 65 for (int y = 0; y < bitmap->height(); y += scale_factor) { 66 for (int x = 0; x < bitmap->width(); x += scale_factor) { 67 if (static_cast<SkColor>(bitmap_data[x + y * bitmap->width()]) !=
|
/external/chromium_org/ui/views/controls/ |
H A D | image_view.cc | 19 // Returns the pixels for the bitmap in |image| at scale |image_scale|. 22 const SkBitmap& bitmap = img.GetRepresentation(image_scale).sk_bitmap(); local 23 SkAutoLockPixels pixel_lock(bitmap); 24 return bitmap.getPixels();
|
/external/chromium_org/v8/src/heap/ |
H A D | spaces-inl.h | 22 Bitmap* bitmap = chunk->markbits(); local 23 for (int i = 0; i < bitmap->CellsCount(); i++) bitmap->cells()[i] = 0;
|
/external/e2fsprogs/e2fsck/ |
H A D | pass5.c | 203 int actual, bitmap; local 218 "actual bitmap buffer"); 220 "bitmap block buffer"); 276 * Try to optimize pass5 by extracting a bitmap block 336 bitmap = 0; 347 bitmap = 1; 355 * When the compare data blocks in block bitmap 375 bitmap = 1; 380 bitmap = actual; 382 bitmap 542 int actual, bitmap; local [all...] |
/external/e2fsprogs/lib/ext2fs/ |
H A D | bitmaps.c | 32 void ext2fs_free_inode_bitmap(ext2fs_inode_bitmap bitmap) argument 34 ext2fs_free_generic_bmap(bitmap); 37 void ext2fs_free_block_bitmap(ext2fs_block_bitmap bitmap) argument 39 ext2fs_free_generic_bmap(bitmap); 116 * bitmap for backwards compatibility. This function allocates a 117 * block bitmap which is truly per-block, even if clusters/bigalloc 154 int ext2fs_get_bitmap_granularity(ext2fs_block_bitmap bitmap) argument 156 ext2fs_generic_bitmap bmap = bitmap; 164 errcode_t ext2fs_fudge_inode_bitmap_end(ext2fs_inode_bitmap bitmap, argument 170 retval = ext2fs_fudge_generic_bmap_end((ext2fs_generic_bitmap) bitmap, 178 ext2fs_fudge_block_bitmap_end(ext2fs_block_bitmap bitmap, blk_t end, blk_t *oend) argument 187 ext2fs_fudge_block_bitmap_end2(ext2fs_block_bitmap bitmap, blk64_t end, blk64_t *oend) argument 195 ext2fs_clear_inode_bitmap(ext2fs_inode_bitmap bitmap) argument 200 ext2fs_clear_block_bitmap(ext2fs_block_bitmap bitmap) argument [all...] |
H A D | blkmap64_ba.c | 31 * 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 D | csum.c | 107 static __u32 find_last_inode_ingrp(ext2fs_inode_bitmap bitmap, argument 116 if (ext2fs_fast_test_inode_bitmap2(bitmap, i)) 122 /* update the bitmap flags, set the itable high watermark, and calculate
|
/external/e2fsprogs/lib/quota/ |
H A D | quotaio_tree.c | 542 static int report_block(struct dquot *dquot, uint blk, char *bitmap, argument 556 set_bit(bitmap, blk); 587 static int report_tree(struct dquot *dquot, uint blk, int depth, char *bitmap, argument 603 if (blk && !get_bit(bitmap, blk)) 604 entries += report_block(dquot, blk, bitmap, 613 bitmap, process_dquot, 636 char *bitmap; local 645 if (ext2fs_get_memzero((info->dqi_blocks + 7) >> 3, &bitmap)) { 649 v2info->dqi_used_entries = report_tree(dquot, QT_TREEOFF, 0, bitmap, 651 v2info->dqi_data_blocks = find_set_bits(bitmap, inf [all...] |
/external/freetype/src/base/ |
H A D | ftbitmap.c | 101 FT_Bitmap* bitmap, 113 width = bitmap->width; 114 height = bitmap->rows; 115 pitch = bitmap->pitch; 119 switch ( bitmap->pixel_mode ) 153 FT_Byte* line = bitmap->buffer + ( bit_last >> 3 ); 154 FT_Byte* end = bitmap->buffer + pitch; 178 if ( FT_QALLOC_MULT( buffer, new_pitch, bitmap->rows + ypixels ) ) 181 if ( bitmap->pitch > 0 ) 186 for ( i = 0; i < bitmap 100 ft_bitmap_assure_buffer( FT_Memory memory, FT_Bitmap* bitmap, FT_UInt xpixels, FT_UInt ypixels ) argument 710 FT_Bitmap bitmap; local [all...] |
/external/freetype/src/smooth/ |
H A D | ftsmooth.c | 97 /* convert a slot's glyph image into a bitmap */ 112 FT_Bitmap* bitmap = &slot->bitmap; local 185 /* release old bitmap buffer */ 188 FT_FREE( bitmap->buffer ); 247 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; 248 bitmap->num_grays = 256; 249 bitmap->width = width; 250 bitmap->rows = height; 251 bitmap [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
H A D | ImageHeaderParser.java | 1 package com.bumptech.glide.load.resource.bitmap; 10 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.GIF; 11 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.JPEG; 12 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.PNG; 13 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.PNG_A; 14 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.UNKNOWN;
|
/external/mesa3d/src/gallium/state_trackers/glx/xlib/ |
H A D | glx_usefont.c | 76 dump_bitmap(unsigned int width, unsigned int height, GLubyte * bitmap) argument 87 putchar((bitmap[width * (height - y - 1) + x / 8] & (1 << (7 - (x % 92 printf("0x%02x, ", bitmap[width * (height - y - 1) + x]); 123 * Generate OpenGL-compatible bitmap. 128 int x0, int y0, unsigned int c, GLubyte * bitmap) 147 /* Fill the bitmap (X11 and OpenGL are upside down wrt each other). */ 151 bitmap[width * (height - y - 1) + x / 8] |= 238 /* Allocate a bitmap that can fit all characters. */ 248 "Couldn't allocate bitmap in glXUseXFont()"); 126 fill_bitmap(Display * dpy, Window win, GC gc, unsigned int width, unsigned int height, int x0, int y0, unsigned int c, GLubyte * bitmap) argument
|