/external/skia/src/core/ |
H A D | SkRecords.h | 184 explicit ImmutableBitmap(const SkBitmap& bitmap) { argument 185 if (bitmap.isImmutable()) { 186 fBitmap = bitmap; 188 bitmap.copyTo(&fBitmap); 247 ImmutableBitmap, bitmap, 251 ImmutableBitmap, bitmap, 255 ImmutableBitmap, bitmap, 259 ImmutableBitmap, bitmap, 290 RECORD4(DrawSprite, Optional<SkPaint>, paint, ImmutableBitmap, bitmap, int, left, int, top);
|
/external/skia/src/image/ |
H A D | SkImage_Raster.cpp | 174 SkBitmap bitmap; local 175 if (!SkInstallDiscardablePixelRef(generator, &bitmap)) { 178 if (0 == bitmap.width() || 0 == bitmap.height()) { 182 return SkNEW_ARGS(SkImage_Raster, (bitmap, NULL));
|
/external/skia/src/images/ |
H A D | SkDecodingImageGenerator.cpp | 86 // a bitmap described by fInfo and fRowBytes 87 const size_t fRowBytes; // rowbytes for the destination bitmap 169 SkBitmap bitmap; local 172 const SkImageDecoder::Result decodeResult = decoder->decode(fStream, &bitmap, info.colorType(), 180 SkASSERT(bitmap.canCopyTo(info.colorType())); 181 bool copySuccess = bitmap.copyTo(&bm, info.colorType(), &allocator); 183 SkDEBUGFAIL("bitmap.copyTo(requestedConfig) failed."); 189 SkASSERT(check_alpha(info.alphaType(), bitmap.alphaType())); 193 if (kIndex_8_SkColorType != bitmap.colorType()) { 197 SkColorTable* ctable = bitmap 239 SkBitmap bitmap; local [all...] |
H A D | SkImageDecoder.cpp | 103 bool SkImageDecoder::allocPixelRef(SkBitmap* bitmap, argument 105 return bitmap->tryAllocPixels(fAllocator, ctable); 135 // pass a temporary bitmap, so that if we return false, we are assured of 136 // leaving the caller's bitmap untouched. 192 SkDEBUGF(("failed to allocate pixels needed to crop the bitmap")); 200 SkDEBUGF(("SkImageDecoder::cropBitmap does not have a large enough bitmap.\n"));
|
/external/skia/src/utils/ |
H A D | SkCanvasStateUtils.cpp | 226 // we currently only work for bitmap backed devices 227 const SkBitmap& bitmap = layer.device()->accessBitmap(true/*changePixels*/); local 228 if (bitmap.empty() || bitmap.isNull() || !bitmap.lockPixelsAreWritable()) { 237 layerState->width = bitmap.width(); 238 layerState->height = bitmap.height(); 240 switch (bitmap.colorType()) { 250 layerState->raster.rowBytes = bitmap.rowBytes(); 251 layerState->raster.pixels = bitmap 297 SkBitmap bitmap; local [all...] |
H A D | SkNinePatch.cpp | 104 const SkBitmap& bitmap, 108 if (bounds.isEmpty() || bitmap.width() == 0 || bitmap.height() == 0) { 113 SkAutoLockPixels alp(bitmap); 115 if (!bitmap.readyToDraw()) { 128 for (i = numYDivs - 1; i >= 0 && yDivs[i] == bitmap.height(); --i) { 139 canvas->drawBitmapRect(bitmap, NULL, bounds, paint); 160 const SkScalar fixed = SkIntToScalar(bitmap.width() - stretchSize); 172 const SkScalar fixed = SkIntToScalar(bitmap.height() - stretchSize); 181 bitmap 103 DrawMesh(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const int32_t xDivs[], int numXDivs, const int32_t yDivs[], int numYDivs, const SkPaint* paint) argument 254 drawNineViaRects(SkCanvas* canvas, const SkRect& dst, const SkBitmap& bitmap, const SkIRect& margins, const SkPaint* paint) argument 301 DrawNine(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const SkIRect& margins, const SkPaint* paint) argument [all...] |
/external/skia/src/utils/debugger/ |
H A D | SkObjectParser.cpp | 21 SkString* SkObjectParser::BitmapToString(const SkBitmap& bitmap) { argument 24 mBitmap->appendS32(bitmap.width()); 26 mBitmap->appendS32(bitmap.height()); 34 mBitmap->append(gColorTypeStrings[bitmap.colorType()]); 36 if (bitmap.isOpaque()) { 42 if (bitmap.isImmutable()) { 48 if (bitmap.isVolatile()) { 55 mBitmap->appendS32(bitmap.getGenerationID());
|
/external/skia/src/utils/mac/ |
H A D | SkCreateCGImageRef.cpp | 49 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info); local 50 delete bitmap; 124 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info); local 125 if (NULL == bitmap) { 129 const int w = bitmap->width(); 130 const int h = bitmap->height(); 131 const size_t s = bitmap->getSize(); 133 // our provider "owns" the bitmap*, and will take care of deleting it 134 // we initially lock it, so we can access the pixels. The bitmap will be deleted in the release 136 bitmap 216 SkBitmap bitmap; local [all...] |
/external/skia/src/views/unix/ |
H A D | SkOSWindow_Unix.cpp | 385 static bool convertBitmapToXImage(XImage& image, const SkBitmap& bitmap) { argument 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 [all...] |
/external/skia/tests/ |
H A D | CachedDecodingPixelRefTest.cpp | 22 * Fill this bitmap with some color. 39 * encode this bitmap into some data via SkImageEncoder 93 original bitmap */ 329 SkBitmap bitmap; local 330 bitmap.allocN32Pixels(TestImageGenerator::Width(), TestImageGenerator::Height()); 331 SkCanvas canvas(bitmap); 337 r, TestImageGenerator::Color() == *bitmap.getAddr32(0, 0)); 339 REPORTER_ASSERT(r, kDefaultColor == bitmap.getColor(0,0));
|
H A D | SkResourceCacheTest.cpp | 29 // Draw a scaled bitmap, then return true if it has been cached. 33 SkBitmap bitmap; local 34 bitmap.allocN32Pixels(kBitmapSize, kBitmapSize); 35 bitmap.eraseColor(0xFFFFFFFF); 44 canvas->drawBitmapRect(bitmap, 48 return is_in_scaled_image_cache(bitmap, xScale, yScale); 84 static void make_bitmap(SkBitmap* bitmap, const SkImageInfo& info, SkBitmap::Allocator* allocator) { argument 86 bitmap->setInfo(info); 87 allocator->allocPixelRef(bitmap, 0); 89 bitmap [all...] |
/external/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/valgrind/include/vki/ |
H A D | vki-xen.h | 76 VKI_XEN_GUEST_HANDLE_64(vki_uint8) bitmap; member in struct:vki_xenctl_bitmap
|
/external/e2fsprogs/lib/ext2fs/ |
H A D | bitops.h | 42 * 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 D | 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, 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 D | 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, 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...] |
/external/fio/ |
H A D | smalloc.c | 24 #define SMALLOC_BPB 32 /* block size, bytes-per-bit in bitmap */ 40 unsigned int *bitmap; /* blocks free/busy map */ member in struct:pool 113 map = &pool->bitmap[pool_idx]; 216 pool->bitmap = (void *) ptr + (pool->nr_blocks * SMALLOC_BPL); 390 if (pool->bitmap[i] == -1U) { 397 idx = find_next_zero(pool->bitmap[i], last_idx);
|
/external/glide/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/ |
H A D | GifDecoder.java | 151 public void release(Bitmap bitmap); argument 697 private static void setAlpha(Bitmap bitmap) { argument 699 bitmap.setHasAlpha(true);
|
/external/iputils/ |
H A D | 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/neven/ |
H A D | FaceDetector_jni.cpp | 27 #include <android/bitmap.h> 194 jobject bitmap) 215 AndroidBitmap_getInfo(_env, bitmap, &bitmapInfo); 216 AndroidBitmap_lockPixels(_env, bitmap, (void**) &src); 243 AndroidBitmap_unlockPixels(_env, bitmap); 193 detect(JNIEnv *_env, jobject _this, jobject bitmap) argument
|
/external/pdfium/testing/ |
H A D | embedder_test.cpp | 265 FPDF_BITMAP bitmap = FPDFBitmap_Create(width, height, 0); local 266 FPDFBitmap_FillRect(bitmap, 0, 0, width, height, 0xFFFFFFFF); 267 FPDF_RenderPageBitmap(bitmap, page, 0, 0, width, height, 0, 0); 268 FPDF_FFLDraw(form_handle_, bitmap, page, 0, 0, width, height, 0, 0); 269 return bitmap;
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/ |
H A D | Robolectric.java | 1282 public static String visualize(Bitmap bitmap) { argument 1283 return shadowOf(bitmap).getDescription();
|
/external/selinux/libsepol/src/ |
H A D | 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/skia/bench/ |
H A D | BitmapBench.cpp | 76 const bool fForceUpdate; //bitmap marked as dirty before each draw. forces bitmap to be updated on device cache 97 fName.set("bitmap"); 144 const SkBitmap& bitmap = fBitmap; local 145 const SkScalar x0 = SkIntToScalar(-bitmap.width() / 2); 146 const SkScalar y0 = SkIntToScalar(-bitmap.height() / 2); 153 bitmap.notifyPixelsChanged(); 155 canvas->drawBitmap(bitmap, x, y, &paint);
|
/external/skia/dm/ |
H A D | DMSrcSink.cpp | 123 SkBitmap bitmap; local 124 if (!bitmap.tryAllocPixels(decodeInfo, NULL, colorTable.get())) { 131 switch (codec->getPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), NULL, 153 bitmap.getAddr(0, y), 1, 0); 166 canvas->drawBitmap(bitmap, 0, 0); 202 SkBitmap bitmap; local 203 if (!SkImageDecoder::DecodeMemory(encoded->data(), encoded->size(), &bitmap, 207 if (kRGB_565_SkColorType == dstColorType && !bitmap.isOpaque()) { 208 // Do not draw a bitmap wit 259 SkBitmap bitmap; local 500 draw_to_canvas(Sink* sink, SkBitmap* bitmap, SkWStream* stream, SkString* log, SkISize size, SkFunction<Error(SkCanvas*)> draw) argument 526 draw(const Src& src, SkBitmap* bitmap, SkWStream* stream, SkString* log) const argument 539 draw(const Src& src, SkBitmap* bitmap, SkWStream* stream, SkString* log) const argument 572 draw(const Src& src, SkBitmap* bitmap, SkWStream* stream, SkString* log) const argument [all...] |