| /external/chromium_org/third_party/skia/src/utils/mac/ |
| SkCreateCGImageRef.cpp | 47 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info); local 48 delete bitmap; 122 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info); local 123 if (NULL == bitmap) { 127 const int w = bitmap->width(); 128 const int h = bitmap->height(); 129 const size_t s = bitmap->getSize(); 131 // our provider "owns" the bitmap*, and will take care of deleting it 132 // we initially lock it, so we can access the pixels. The bitmap will be deleted in the release 134 bitmap->lockPixels() 223 SkBitmap bitmap; local [all...] |
| /external/chromium_org/third_party/skia/src/views/ |
| SkWidgets.cpp | 508 bool SkBitmapView::getBitmap(SkBitmap* bitmap) const 510 if (bitmap) 511 *bitmap = fBitmap; 515 void SkBitmapView::setBitmap(const SkBitmap* bitmap, bool viewOwnsPixels) 517 if (bitmap) 519 fBitmap = *bitmap; 526 SkBitmap bitmap; local 528 if (SkImageDecoder::DecodeFile(path, &bitmap)) 530 this->setBitmap(&bitmap, true); 531 bitmap.setOwnsPixels(false) [all...] |
| /external/chromium_org/third_party/skia/src/views/unix/ |
| SkOSWindow_Unix.cpp | 385 static bool convertBitmapToXImage(XImage& image, const SkBitmap& bitmap) { 388 int bitsPerPixel = bitmap.bytesPerPixel() * 8; 389 image.width = bitmap.width(); 390 image.height = bitmap.height(); 392 image.data = (char*) bitmap.getPixels(); 398 image.bytes_per_line = bitmap.rowBytes() - bitmap.width() * 4; 411 // Draw the bitmap to the screen. 412 const SkBitmap& bitmap = getBitmap(); local 413 int width = bitmap.width() [all...] |
| /external/chromium_org/third_party/skia/tests/ |
| 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));
|
| PDFPrimitivesTest.cpp | 44 static SkData* encode_to_dct_data(size_t* pixelRefOffset, const SkBitmap& bitmap) { 245 // Create a bitmap that would be very eficiently compressed in a ZIP. 246 static void setup_bitmap(SkBitmap* bitmap, int width, int height) { 247 bitmap->allocN32Pixels(width, height); 248 bitmap->eraseColor(SK_ColorWHITE); 251 static void TestImage(skiatest::Reporter* reporter, const SkBitmap& bitmap, 253 SkISize pageSize = SkISize::Make(bitmap.width(), bitmap.height()); 261 c.drawBitmap(bitmap, 0, 0, NULL); 273 SkBitmap bitmap; local 290 SkBitmap bitmap; local 305 SkBitmap bitmap; local [all...] |
| SerializationTest.cpp | 251 // Try to render a small bitmap using the invalid deserialized filter 254 SkBitmap bitmap; local 255 bitmap.allocN32Pixels(24, 24); 256 SkCanvas canvas(bitmap); 261 canvas.drawBitmap(bitmap, 0, 0, &paint); 289 SkBitmap bitmap; local 290 bitmap.allocN32Pixels(SkScalarCeilToInt(picture.cullRect().width()), 292 SkCanvas canvas(bitmap); 294 return bitmap; 362 static void setup_bitmap_for_canvas(SkBitmap* bitmap) { 392 SkBitmap bitmap; local [all...] |
| /external/chromium_org/third_party/skia/tools/ |
| render_pictures_main.cpp | 121 * Write the raw encoded bitmap data to a file. 123 static bool write_image_to_file(const void* buffer, size_t size, SkBitmap* bitmap) { 136 // Put in a dummy bitmap. 137 return SkImageDecoder::DecodeStream(&memStream, bitmap, kUnknown_SkColorType, 280 SkBitmap* bitmap = NULL; local 286 FLAGS_validate || FLAGS_writeWholeImage ? &bitmap : NULL); 288 if (!success || ((FLAGS_validate || FLAGS_writeWholeImage) && bitmap == NULL)) { 290 SkDELETE(bitmap); 320 SkDELETE(bitmap); 325 if (success && (bitmap->width() != referenceBitmap->width())) [all...] |
| /external/chromium_org/tools/perf/metrics/ |
| 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/ |
| inspector_backend.py | 10 from telemetry.core import bitmap namespace 136 return bitmap.Bitmap.FromBase64Png(snap['data'])
|
| /external/chromium_org/ui/android/java/src/org/chromium/ui/ |
| UiUtils.java | 8 import android.graphics.Bitmap; 148 * @param maximumDimension The maximum width or height of the generated screenshot. The bitmap 151 * @param bitmapConfig Bitmap config for the generated screenshot (ARGB_8888 or RGB_565). 152 * @return The screen bitmap of the view or null if a problem was encountered. 154 public static Bitmap generateScaledScreenshot( 155 View currentView, int maximumDimension, Bitmap.Config bitmapConfig) { 156 Bitmap screenshot = null; 163 Bitmap originalBitmap = currentView.getDrawingCache(); 174 Bitmap scaledScreenshot = 175 Bitmap.createScaledBitmap(originalBitmap, newWidth, newHeight, true) 193 Bitmap bitmap = Bitmap.createBitmap(newWidth, newHeight, bitmapConfig); local [all...] |
| /external/chromium_org/ui/base/resource/ |
| 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/codec/ |
| jpeg_codec.cc | 615 SkBitmap* bitmap = new SkBitmap(); local 616 bitmap->allocN32Pixels(w, h); 617 memcpy(bitmap->getAddr32(0, 0), &data_vector[0], data_length); 619 return bitmap;
|
| /external/chromium_org/ui/gfx/image/ |
| 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->empty()) 412 SkBitmap bitmap; local [all...] |
| /external/chromium_org/v8/src/heap/ |
| spaces-inl.h | 19 // Bitmap 21 void Bitmap::Clear(MemoryChunk* chunk) { 22 Bitmap* bitmap = chunk->markbits(); local 23 for (int i = 0; i < bitmap->CellsCount(); i++) bitmap->cells()[i] = 0;
|
| /external/e2fsprogs/e2fsck/ |
| 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 = ext2fs_fast_test_block_bitmap2(fs->block_map, i) 542 int actual, bitmap; local [all...] |
| /external/e2fsprogs/lib/ext2fs/ |
| 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, 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) 69 if (!bitmap || !((bitmap->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) | 81 ext2fs_generic_bitmap bitmap; local [all...] |
| 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, 74 if (bitmap->description) 75 com_err(0, bitmap->base_error_code+code, 76 "#%llu for %s", arg, bitmap->description) 95 ext2fs_generic_bitmap bitmap; local [all...] |
| /external/e2fsprogs/lib/quota/ |
| quotaio_tree.c | 542 static int report_block(struct dquot *dquot, uint blk, char *bitmap, 556 set_bit(bitmap, blk); 587 static int report_tree(struct dquot *dquot, uint blk, int depth, char *bitmap, 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, info->dqi_blocks) [all...] |
| /external/freetype/src/base/ |
| 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->rows; i++ 710 FT_Bitmap bitmap; local [all...] |
| /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
| Downsampler.java | 1 package com.bumptech.glide.load.resource.bitmap; 4 import android.graphics.Bitmap; 75 return "AT_LEAST.com.bumptech.glide.load.data.bitmap"; 92 return "AT_MOST.com.bumptech.glide.load.data.bitmap"; 108 return "NONE.com.bumptech.glide.load.data.bitmap"; 118 * Load the image for the given InputStream. If a recycled Bitmap whose dimensions exactly match those of the image 121 * Note - this method will throw an exception of a Bitmap with dimensions not matching those of the image for the 128 * @return A new bitmap containing the image from the given InputStream, or recycle if recycle is not null 131 public Bitmap decode(InputStream is, BitmapPool pool, int outWidth, int outHeight, DecodeFormat decodeFormat) { 166 final Bitmap downsampled = downsampleWithSize(bis, options, pool, inWidth, inHeight, sampleSize, decodeFormat) [all...] |
| TransformationUtils.java | 4 package com.bumptech.glide.load.resource.bitmap; 6 import android.graphics.Bitmap; 23 * A potentially expensive operation to crop the given Bitmap so that it fills the given dimensions. This operation 24 * is significantly less expensive in terms of memory if a mutable Bitmap with the given dimensions is passed in 27 * @param recycled A mutable Bitmap with dimensions width and height that we can load the cropped portion of toCrop 29 * @param toCrop The Bitmap to resize 30 * @param width The width of the final Bitmap 31 * @param height The height of the final Bitmap 32 * @return The resized Bitmap (will be recycled if recycled is not null) 34 public static Bitmap centerCrop(Bitmap recycled, Bitmap toCrop, int width, int height) [all...] |
| /external/iputils/ |
| ping_common.h | 100 bitmap_t bitmap[MAX_DUP_CHK / (sizeof(bitmap_t) * 8)]; member in struct:rcvd_table 106 #define A(bit) (rcvd_tbl.bitmap[(bit) >> BITMAP_SHIFT]) /* identify word in array */
|
| /external/libsepol/src/ |
| mls.c | 557 ebitmap_t bitmap; local 579 ebitmap_init(&bitmap); 592 rc = ebitmap_set_bit(&bitmap, 599 c->range.level[l].cat = bitmap;
|
| /external/mesa3d/src/mesa/state_tracker/ |
| st_program.h | 50 GLuint bitmap:1; /**< glBitmap variant? */ member in struct:st_fp_variant_key
|
| /external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/base/ |
| fxft_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->rows; i++ 717 FT_Bitmap bitmap; local [all...] |