Searched defs:bitmap (Results 176 - 200 of 292) sorted by relevance

1234567891011>>

/external/skia/samplecode/
H A DSampleRegion.cpp22 SkBitmap bitmap; local
23 bitmap.allocPixels(SkImageInfo::MakeA8(width*2, height*2));
24 bitmap.eraseColor(SK_ColorTRANSPARENT);
35 SkCanvas c(bitmap);
45 canvas->drawBitmap(bitmap, 0, 0, NULL);
50 canvas->drawBitmap(bitmap, SkIntToScalar(2*width), 0, NULL);
/external/skia/src/core/
H A DSkBitmapProcShader.cpp120 const SkBitmap& bitmap = *fState->fBitmap; local
121 bool bitmapIsOpaque = bitmap.isOpaque();
129 switch (bitmap.colorType()) {
145 if (rec.fPaint->isDither() && bitmap.colorType() != kRGB_565_SkColorType) {
152 if (1 == bitmap.height() &&
164 // The bitmap proc state has been created outside of the context on memory that will be freed
272 // returns true and set color if the bitmap can be drawn as a single color
307 // SkBitmapProcShader stores bitmap coordinates in a 16bit buffer, as it
444 "Couldn't convert bitmap to texture.");
H A DSkPicturePlayback.cpp64 static SkBitmap shallow_copy(const SkBitmap& bitmap) { argument
65 return bitmap;
161 const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader)); local
163 canvas->drawBitmap(bitmap, loc.fX, loc.fY, paint);
167 const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader)); local
172 canvas->drawBitmapRectToRect(bitmap, src, dst, paint, flags);
176 const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader)); local
182 canvas->drawBitmap(bitmap, 0, 0, paint);
186 const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader)); local
189 canvas->drawBitmapNine(bitmap, sr
326 const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader)); local
[all...]
H A DSkPictureShader.cpp94 static bool cache_try_alloc_pixels(SkBitmap* bitmap) { argument
98 ? allocator->allocPixelRef(bitmap, NULL)
99 : bitmap->tryAllocPixels();
H A DSkShader.cpp328 SkShader::BitmapType SkColorShader::asABitmap(SkBitmap* bitmap, SkMatrix* matrix, argument
H A DSkWriteBuffer.cpp153 void SkWriteBuffer::writeBitmap(const SkBitmap& bitmap) { argument
154 // Record the width and height. This way if readBitmap fails a dummy bitmap can be drawn at the
156 this->writeInt(bitmap.width());
157 this->writeInt(bitmap.height());
159 // Record information about the bitmap in one of three ways, in order of priority:
161 // bitmap entirely or serialize it later as desired. A boolean value of true will be written
164 // bitmap. After writing a boolean value of false, signifying that a heap was not used, write
170 // SkBitmapHeapReader to read the SkBitmap. False if the bitmap was serialized another way.
174 int32_t slot = fBitmapHeap->insert(bitmap);
181 // bitmap hea
[all...]
/external/skia/src/pdf/
H A DSkPDFBitmap.cpp66 // Clamp the range to the edge of the bitmap.
121 static void bitmap_to_pdf_pixels(const SkBitmap& bitmap, SkWStream* out) { argument
122 if (!bitmap.getPixels()) {
123 size_t size = pixel_count(bitmap) *
124 pdf_color_component_count(bitmap.colorType());
129 const SkBitmap& bm = not4444(bitmap, &copy);
133 SkASSERT(3 == pdf_color_component_count(bitmap.colorType()));
153 SkASSERT(3 == pdf_color_component_count(bitmap.colorType()));
169 SkASSERT(1 == pdf_color_component_count(bitmap.colorType()));
174 SkASSERT(1 == pdf_color_component_count(bitmap
189 bitmap_alpha_to_a8(const SkBitmap& bitmap, SkWStream* out) argument
438 Create(SkPDFCanon* canon, const SkBitmap& bitmap) argument
[all...]
/external/skia/src/ports/
H A DSkImageDecoder_WIC.cpp180 //Get the size of the bitmap.
187 //Exit early if we're only looking for the bitmap bounds.
213 piBitmapSourceOriginal.get() //Input bitmap to convert
230 //Copy the pixels into the bitmap.
307 const SkBitmap* bitmap; local
310 bitmap = &bitmapOrig;
315 bitmap = &bitmapCopy;
319 if (!bitmap->isOpaque()) {
320 SkAutoLockPixels alp(*bitmap);
322 uint8_t* pixels = reinterpret_cast<uint8_t*>(bitmap
[all...]
/external/skia/src/views/
H A DSkWidgets.cpp508 bool SkBitmapView::getBitmap(SkBitmap* bitmap) const
510 if (bitmap)
511 *bitmap = fBitmap;
515 void SkBitmapView::setBitmap(const SkBitmap* bitmap, bool viewOwnsPixels) argument
517 if (bitmap)
519 fBitmap = *bitmap;
526 SkBitmap bitmap; local
528 if (SkImageDecoder::DecodeFile(path, &bitmap))
530 this->setBitmap(&bitmap, true);
531 bitmap
[all...]
/external/skia/tests/
H A DAAClipTest.cpp77 SkBitmap bitmap; local
78 bitmap.installPixels(info, mask->fImage, mask->fRowBytes);
86 SkCanvas canvas(bitmap);
H A DBitmapCopyTest.cpp53 static void init_src(const SkBitmap& bitmap) { argument
54 SkAutoLockPixels lock(bitmap);
55 if (bitmap.getPixels()) {
56 if (bitmap.getColorTable()) {
57 sk_bzero(bitmap.getPixels(), bitmap.getSize());
59 bitmap.eraseColor(SK_ColorWHITE);
218 SkBitmap bitmap(srcOpaque);
224 bitmap.setIsVolatile(true);
226 if (kUnknown_SkColorType != bitmap
[all...]
H A DImageDecodingTest.cpp129 // "c0" is the color of the premultiplied bitmap at (i, j).
132 // bitmap at (i, j).
340 // expected output for 8x8 bitmap
424 static SkPixelRef* install_pixel_ref(SkBitmap* bitmap, argument
427 SkASSERT(bitmap != NULL);
430 SkColorType colorType = bitmap->colorType();
433 SkDecodingImageGenerator::Create(stream, opts), bitmap)) {
434 return bitmap->pixelRef();
597 * client of the generator set sample size, dithering, and bitmap
671 SkBitmap bitmap; local
749 SkBitmap bitmap; local
[all...]
H A DSerializationTest.cpp251 // 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;
356 static void setup_bitmap_for_canvas(SkBitmap* bitmap) { argument
360 make_checkerboard_bitmap(SkBitmap& bitmap) argument
386 SkBitmap bitmap; local
[all...]
/external/skia/third_party/ktx/
H A Dktx.cpp398 // pipe through the bitmap's orientation to properly do that.
420 bool SkKTXFile::WriteBitmapToKTX(SkWStream* stream, const SkBitmap& bitmap) { argument
421 const SkColorType ct = bitmap.colorType();
422 SkAutoLockPixels alp(bitmap);
424 const int width = bitmap.width();
425 const int height = bitmap.width();
426 const uint8_t* src = reinterpret_cast<uint8_t*>(bitmap.getPixels());
427 if (NULL == bitmap.getPixels()) {
440 // Next, write the header based on the bitmap's config.
445 SkDebugf("Writing indexed bitmap t
[all...]
/external/skia/tools/
H A Dimage_expectations.cpp47 const static char kJsonValue_Image_ChecksumAlgorithm_Bitmap64bitMD5[] = "bitmap-64bitMD5";
57 ImageDigest::ImageDigest(const SkBitmap &bitmap) : argument
58 fBitmap(bitmap), fHashValue(0), fComputedHashValue(false) {}
92 BitmapAndDigest::BitmapAndDigest(const SkBitmap &bitmap) : argument
93 fBitmap(bitmap), fImageDigest(bitmap) {}
111 Expectation::Expectation(const SkBitmap& bitmap, bool ignoreFailure) : argument
112 fIsEmpty(false), fIgnoreFailure(ignoreFailure), fImageDigest(bitmap) {}
H A Drender_pictures_main.cpp121 * Write the raw encoded bitmap data to a file.
123 static bool write_image_to_file(const void* buffer, size_t size, SkBitmap* bitmap) { argument
136 // Put in a dummy bitmap.
137 return SkImageDecoder::DecodeStream(&memStream, bitmap, kUnknown_SkColorType,
264 SkBitmap* bitmap = NULL; local
270 FLAGS_validate || FLAGS_writeWholeImage ? &bitmap : NULL);
272 if (!success || ((FLAGS_validate || FLAGS_writeWholeImage) && bitmap == NULL)) {
274 SkDELETE(bitmap);
304 SkDELETE(bitmap);
309 if (success && (bitmap
[all...]
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
H A DMockContext.java219 public void setWallpaper(Bitmap bitmap) throws IOException { argument
/external/e2fsprogs/lib/ext2fs/
H A Dblkmap64_rb.c172 static errcode_t rb_alloc_private_data (ext2fs_generic_bitmap bitmap) argument
191 bitmap->private = (void *) bp;
196 ext2fs_generic_bitmap bitmap)
200 retval = rb_alloc_private_data (bitmap);
220 static void rb_free_bmap(ext2fs_generic_bitmap bitmap) argument
224 bp = (struct ext2fs_rb_private *) bitmap->private;
569 static int rb_mark_bmap(ext2fs_generic_bitmap bitmap, __u64 arg) argument
573 bp = (struct ext2fs_rb_private *) bitmap->private;
574 arg -= bitmap->start;
579 static int rb_unmark_bmap(ext2fs_generic_bitmap bitmap, __u6 argument
594 rb_test_bmap(ext2fs_generic_bitmap bitmap, __u64 arg) argument
604 rb_mark_bmap_extent(ext2fs_generic_bitmap bitmap, __u64 arg, unsigned int num) argument
615 rb_unmark_bmap_extent(ext2fs_generic_bitmap bitmap, __u64 arg, unsigned int num) argument
627 rb_test_clear_bmap_extent(ext2fs_generic_bitmap bitmap, __u64 start, unsigned int len) argument
683 rb_set_bmap_range(ext2fs_generic_bitmap bitmap, __u64 start, size_t num, void *in) argument
726 rb_get_bmap_range(ext2fs_generic_bitmap bitmap, __u64 start, size_t num, void *out) argument
792 rb_clear_bmap(ext2fs_generic_bitmap bitmap) argument
805 rb_print_stats(ext2fs_generic_bitmap bitmap) argument
867 rb_print_stats(ext2fs_generic_bitmap bitmap) argument
[all...]
/external/e2fsprogs/misc/
H A Ddumpe2fs.c81 static void print_free(unsigned long group, char * bitmap, argument
91 if (!in_use (bitmap, i))
96 for (j = i; j < num && !in_use (bitmap, j); j++)
234 fputs(_(" Block bitmap at "), stdout);
238 fputs(_(", Inode bitmap at "), stdout);
263 "while reading block bitmap");
278 "while reading inode bitmap");
/external/f2fs-tools/fsck/
H A Dfsck.c275 ASSERT_MSG("SIT bitmap is 0x0. blk_addr[0x%x]",
625 unsigned long *bitmap,
641 bit_offset = find_next_bit(bitmap, max, next_idx);
667 unsigned long *bitmap,
685 if (test_bit(i, bitmap) == 0) {
703 if (test_bit(i, bitmap) == 0) {
713 clear_bit(i, bitmap);
726 clear_bit(i, bitmap);
762 print_dentry(fsck->dentry_depth, name, bitmap,
775 clear_bit(i + j, bitmap);
624 print_dentry(__u32 depth, __u8 *name, unsigned long *bitmap, struct f2fs_dir_entry *dentry, int max, int idx, int last_blk) argument
665 __chk_dentries(struct f2fs_sb_info *sbi, u32 *child_cnt, u32* child_files, unsigned long *bitmap, struct f2fs_dir_entry *dentry, __u8 (*filenames)[F2FS_SLOT_LEN], int max, int last_blk) argument
[all...]
/external/freetype/src/sfnt/
H A Dttsbit.c5 /* TrueType and OpenType embedded bitmap support (body). */
332 FT_Bitmap* bitmap; member in struct:TT_SBitDecoderRec_
370 decoder->bitmap = &face->root.glyph->bitmap;
426 FT_Bitmap* map = decoder->bitmap;
570 FT_Bitmap* bitmap; local
573 /* check that we can write the glyph into the bitmap */
574 bitmap = decoder->bitmap;
575 bit_width = bitmap
709 FT_Bitmap* bitmap; local
[all...]
/external/jemalloc/include/jemalloc/internal/
H A Darena.h47 /* Per region allocated/deallocated bitmap. */
48 bitmap_t bitmap[BITMAP_GROUPS_MAX]; member in struct:arena_run_s
/external/libvncserver/libvncserver/
H A Dcursor.c245 void rfbConvertLSBCursorBitmapOrMask(int width,int height,unsigned char* bitmap) argument
249 bitmap[i]=rfbReverseByte[(int)bitmap[i]];
/external/mesa3d/src/mesa/main/
H A Dimage.c369 * "Expand" a bitmap from 1-bit per pixel to 8-bits per pixel.
370 * This is typically used to convert a bitmap into a GLubyte/pixel texture.
373 * \param width src bitmap width in pixels
374 * \param height src bitmap height in pixels
375 * \param unpack bitmap unpacking state
376 * \param bitmap the src bitmap data
384 const GLubyte *bitmap,
389 _mesa_image_address2d(unpack, bitmap, width, height,
382 _mesa_expand_bitmap(GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte *bitmap, GLubyte *destBuffer, GLint destStride, GLubyte onValue) argument
/external/mesa3d/src/mesa/state_tracker/
H A Dst_cb_bitmap.c63 * glBitmaps are drawn as textured quads. The user's bitmap pattern
68 * Note that we actually store the inverse image of the bitmap to
76 * The bitmap cache attempts to accumulate multiple glBitmap calls in a
153 if (st->bitmap.tex_format == PIPE_FORMAT_L8_UNORM)
207 * Combine basic bitmap fragment program with the user-defined program.
211 * \param bitmap_sampler sampler number for the bitmap texture
226 * with the bitmap sampler/kill instructions.
244 printf("Combined bitmap program:\n");
259 * Copy user-provide bitmap bits into texture buffer, expanding
270 const GLubyte *bitmap,
267 unpack_bitmap(struct st_context *st, GLint px, GLint py, GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte *bitmap, ubyte *destBuffer, uint destStride) argument
284 make_bitmap_texture(struct gl_context *ctx, GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte *bitmap) argument
[all...]

Completed in 861 milliseconds

1234567891011>>