Searched refs:bitmap (Results 76 - 100 of 998) sorted by relevance

1234567891011>>

/external/skia/tools/
H A Dpicture_utils.h23 // This expects a bitmap with a config type of 8888 and for the pixels to
25 void force_all_opaque(const SkBitmap& bitmap);
40 // Prepares the bitmap so that it can be written.
42 // Specifically, it configures the bitmap, allocates pixels and then
44 void setup_bitmap(SkBitmap* bitmap, int width, int height);
/external/chromium_org/chrome/browser/
H A Dicon_loader_linux.cc55 SkBitmap bitmap; local
59 &bitmap);
60 if (success && !bitmap.empty()) {
61 DCHECK_EQ(size_pixels, bitmap.width());
62 DCHECK_EQ(size_pixels, bitmap.height());
63 gfx::ImageSkia image_skia = gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/
H A DGaneshUtils.cpp39 bool ensureTextureBackedSkBitmap(GrContext* gr, SkBitmap& bitmap, const IntSize& size, GrSurfaceOrigin origin, GrPixelConfig config) argument
41 if (!bitmap.getTexture() || bitmap.width() != size.width() || bitmap.height() != size.height()) {
64 bitmap.setConfig(SkBitmap::kARGB_8888_Config, size.width(), size.height());
65 bitmap.setPixelRef(pixelRef, 0)->unref();
/external/chromium_org/ui/gfx/ozone/impl/
H A Dfile_surface_factory.cc19 const SkBitmap& bitmap) {
21 gfx::PNGCodec::FastEncodeBGRASkBitmap(bitmap, true, &png_data);
75 SkBitmap bitmap; local
76 bitmap.setConfig(SkBitmap::kARGB_8888_Config,
80 if (canvas_->readPixels(&bitmap, 0, 0)) {
82 base::Bind(&WriteDataToFile, location_, bitmap),
18 WriteDataToFile(const base::FilePath& location, const SkBitmap& bitmap) argument
/external/chromium_org/webkit/common/cursors/
H A Dwebcursor_aurax11.cc24 SkBitmap bitmap;
25 bitmap.setConfig(SkBitmap::kARGB_8888_Config,
27 bitmap.allocPixels();
28 memcpy(bitmap.getAddr32(0, 0), custom_data_.data(), custom_data_.size());
31 device_scale_factor_, rotation_, &bitmap, &hotspot);
33 XcursorImage* image = ui::SkBitmapToXcursorImage(&bitmap, hotspot);
/external/chromium_org/webkit/renderer/compositor_bindings/
H A Dweb_nine_patch_layer_impl.cc24 void WebNinePatchLayerImpl::setBitmap(SkBitmap bitmap, argument
26 setBitmap(bitmap);
29 bitmap.width() - aperture.width,
30 bitmap.height() - aperture.height));
33 void WebNinePatchLayerImpl::setBitmap(SkBitmap bitmap) { argument
36 nine_patch->SetBitmap(bitmap);
/external/qemu/distrib/sdl-1.2.15/test/
H A Dtestbitmap.c2 /* Simple program: Test bitmap blits */
20 SDL_Surface *bitmap; local
23 /* Allocate the bitmap */
24 bitmap = SDL_CreateRGBSurface(SDL_SWSURFACE, w, h, 1, 0, 0, 0, 0);
25 if ( bitmap == NULL ) {
26 fprintf(stderr, "Couldn't allocate bitmap: %s\n",
32 line = (Uint8 *)bitmap->pixels;
47 line += bitmap->pitch;
50 return(bitmap);
56 SDL_Surface *bitmap; local
[all...]
/external/chromium_org/cc/layers/
H A Dui_resource_layer_unittest.cc70 SkBitmap bitmap; local
71 bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10);
72 bitmap.allocPixels();
73 bitmap.setImmutable();
75 test_layer->SetBitmap(bitmap);
100 SkBitmap bitmap; local
101 bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10);
102 bitmap.allocPixels();
103 bitmap.setImmutable();
106 layer_tree_host_.get(), UIResourceBitmap(bitmap));
[all...]
H A Dnine_patch_layer_unittest.cc67 SkBitmap bitmap; local
68 bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10);
69 bitmap.allocPixels();
70 bitmap.setImmutable();
73 layer_tree_host_.get(), UIResourceBitmap(bitmap));
/external/chromium_org/ui/android/java/src/org/chromium/ui/base/
H A DActivityWindowAndroid.java96 Bitmap bitmap = UiUtils.generateScaledScreenshot(rootView, 0, Bitmap.Config.ARGB_8888);
97 if (bitmap == null) return null;
100 if (windowX > 0 || windowY > 0 || width != bitmap.getWidth() ||
101 height != bitmap.getHeight()) {
102 Rect clip = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());
104 bitmap = Bitmap.createBitmap(
105 bitmap, clip.left, clip.top, clip.width(), clip.height());
110 if (!bitmap.compress(Bitmap.CompressFormat.PNG, 100, result)) return null;
111 bitmap
[all...]
/external/chromium_org/ui/gfx/
H A Dicon_util.cc117 SkBitmap bitmap = image.AsBitmap(); local
119 // Only 32 bit ARGB bitmaps are supported. We also make sure the bitmap has
121 SkAutoLockPixels bitmap_lock(bitmap);
122 if ((bitmap.config() != SkBitmap::kARGB_8888_Config) ||
123 (bitmap.getPixels() == NULL)) {
132 bitmaps->push_back(bitmap);
165 HICON IconUtil::CreateHICONFromSkBitmap(const SkBitmap& bitmap) { argument
167 // validations as we can on the bitmap.
168 SkAutoLockPixels bitmap_lock(bitmap);
169 if ((bitmap
374 SkBitmap bitmap; local
560 SetSingleIconImageInformation(const SkBitmap& bitmap, size_t index, ICONDIR* icon_dir, ICONIMAGE* icon_image, size_t image_offset, size_t* image_byte_count) argument
616 CopySkBitmapBitsIntoIconBuffer(const SkBitmap& bitmap, unsigned char* buffer, size_t buffer_size) argument
654 ComputeBitmapSizeComponents(const SkBitmap& bitmap, size_t* xor_mask_size, size_t* bytes_in_resource) argument
[all...]
/external/chromium_org/third_party/skia/src/pdf/
H A DSkPDFImage.cpp28 static size_t get_uncompressed_size(const SkBitmap& bitmap, argument
30 switch (bitmap.config()) {
47 static SkStream* extract_index8_image(const SkBitmap& bitmap, argument
51 (get_uncompressed_size(bitmap, srcRect)));
55 memcpy(dst, bitmap.getAddr8(srcRect.fLeft, y), rowBytes);
61 static SkStream* extract_argb4444_data(const SkBitmap& bitmap, argument
74 (get_uncompressed_size(bitmap, srcRect)));
79 uint16_t* src = bitmap.getAddr16(0, y);
116 static SkStream* extract_rgb565_image(const SkBitmap& bitmap, argument
119 (get_uncompressed_size(bitmap,
134 extract_argb8888_data(const SkBitmap& bitmap, const SkIRect& srcRect, bool extractAlpha, bool* isOpaque, bool* isTransparent) argument
168 extract_a8_alpha(const SkBitmap& bitmap, const SkIRect& srcRect, bool* isOpaque, bool* isTransparent) argument
208 extract_image_data(const SkBitmap& bitmap, const SkIRect& srcRect, bool extractAlpha, bool* isTransparent) argument
305 get_argb8888_neighbor_avg_color(const SkBitmap& bitmap, int xOrig, int yOrig) argument
339 get_argb4444_neighbor_avg_color(const SkBitmap& bitmap, int xOrig, int yOrig) argument
373 unpremultiply_bitmap(const SkBitmap& bitmap, const SkIRect& srcRect) argument
440 CreateImage(const SkBitmap& bitmap, const SkIRect& srcRect, SkPicture::EncodeBitmap encoder) argument
498 SkPDFImage(SkStream* stream, const SkBitmap& bitmap, bool isAlpha, const SkIRect& srcRect, SkPicture::EncodeBitmap encoder) argument
[all...]
/external/skia/src/pdf/
H A DSkPDFImage.cpp28 static size_t get_uncompressed_size(const SkBitmap& bitmap, argument
30 switch (bitmap.config()) {
47 static SkStream* extract_index8_image(const SkBitmap& bitmap, argument
51 (get_uncompressed_size(bitmap, srcRect)));
55 memcpy(dst, bitmap.getAddr8(srcRect.fLeft, y), rowBytes);
61 static SkStream* extract_argb4444_data(const SkBitmap& bitmap, argument
74 (get_uncompressed_size(bitmap, srcRect)));
79 uint16_t* src = bitmap.getAddr16(0, y);
116 static SkStream* extract_rgb565_image(const SkBitmap& bitmap, argument
119 (get_uncompressed_size(bitmap,
134 extract_argb8888_data(const SkBitmap& bitmap, const SkIRect& srcRect, bool extractAlpha, bool* isOpaque, bool* isTransparent) argument
168 extract_a8_alpha(const SkBitmap& bitmap, const SkIRect& srcRect, bool* isOpaque, bool* isTransparent) argument
208 extract_image_data(const SkBitmap& bitmap, const SkIRect& srcRect, bool extractAlpha, bool* isTransparent) argument
305 get_argb8888_neighbor_avg_color(const SkBitmap& bitmap, int xOrig, int yOrig) argument
339 get_argb4444_neighbor_avg_color(const SkBitmap& bitmap, int xOrig, int yOrig) argument
373 unpremultiply_bitmap(const SkBitmap& bitmap, const SkIRect& srcRect) argument
440 CreateImage(const SkBitmap& bitmap, const SkIRect& srcRect, SkPicture::EncodeBitmap encoder) argument
498 SkPDFImage(SkStream* stream, const SkBitmap& bitmap, bool isAlpha, const SkIRect& srcRect, SkPicture::EncodeBitmap encoder) argument
[all...]
/external/chromium_org/cc/test/
H A Dskia_common.cc64 SkBitmap bitmap; local
65 bitmap.setConfig(SkBitmap::kARGB_8888_Config,
68 bitmap.setPixels(buffer);
69 SkBitmapDevice device(bitmap);
75 void CreateBitmap(gfx::Size size, const char* uri, SkBitmap* bitmap) { argument
87 bitmap->setConfig(info);
88 bitmap->setPixelRef(lazy_pixel_ref.get());
H A Dpixel_test_utils.cc17 bool WritePNGFile(const SkBitmap& bitmap, const base::FilePath& file_path, argument
20 if (gfx::PNGCodec::EncodeBGRASkBitmap(bitmap,
31 bool ReadPNGFile(const base::FilePath& file_path, SkBitmap* bitmap) { argument
32 DCHECK(bitmap);
37 bitmap);
/external/chromium_org/chrome/browser/extensions/
H A Dimage_loader.cc56 SkBitmap ResizeIfNeeded(const SkBitmap& bitmap, argument
58 gfx::Size original_size(bitmap.width(), bitmap.height());
63 bitmap, skia::ImageOperations::RESIZE_LANCZOS3,
67 return bitmap;
70 void LoadResourceOnUIThread(int resource_id, SkBitmap* bitmap) { argument
76 *bitmap = *image.bitmap();
80 SkBitmap* bitmap) {
98 gfx::PNGCodec::Decode(data, file_contents.length(), bitmap);
79 LoadImageOnBlockingPool(const ImageLoader::ImageRepresentation& image_info, SkBitmap* bitmap) argument
148 SkBitmap bitmap; member in struct:extensions::ImageLoader::LoadResult
153 LoadResult( const SkBitmap& bitmap, const gfx::Size& original_size, const ImageLoader::ImageRepresentation& image_representation) argument
181 SkBitmap bitmap; local
345 const SkBitmap& bitmap = it->bitmap; local
[all...]
/external/chromium_org/ui/base/dragdrop/
H A Ddrag_utils_win.cc47 HBITMAP bitmap = local
50 if (!bitmap || !bits)
56 return bitmap;
65 // by premultiplied colors, so unpremultiply the bitmap.
66 // SetDragImageOnDataObject(HBITMAP) takes ownership of the bitmap.
67 HBITMAP bitmap = CreateHBITMAPFromSkBitmap( local
68 SkBitmapOperations::UnPreMultiply(*image_skia.bitmap()));
69 if (bitmap) {
70 // Attach 'bitmap' to the data_object.
71 SetDragImageOnDataObject(bitmap, siz
[all...]
/external/skia/tests/
H A DARGBImageEncoderTest.cpp46 // A bitmap that should generate the above bytes:
47 SkBitmap bitmap; local
49 bitmap.setConfig(configs[configIndex], kWidth, kHeight);
50 REPORTER_ASSERT(reporter, bitmap.allocPixels());
51 bitmap.setAlphaType(kOpaque_SkAlphaType);
52 bitmap.eraseColor(SK_ColorBLUE);
54 SkCanvas canvas(bitmap);
62 // Transform the bitmap.
63 int bufferSize = bitmap.width() * bitmap
[all...]
/external/chromium_org/cc/resources/
H A Dresource_update.cc14 const SkBitmap* bitmap,
21 update.bitmap = bitmap;
38 update.bitmap = &canvas->getDevice()->accessBitmap(false);
47 bitmap(NULL) {}
13 Create(PrioritizedResource* texture, const SkBitmap* bitmap, gfx::Rect content_rect, gfx::Rect source_rect, gfx::Vector2d dest_offset) argument
/external/chromium_org/chrome/browser/media/
H A Dfake_desktop_media_list.cc47 SkBitmap bitmap; local
48 bitmap.setConfig(SkBitmap::kARGB_8888_Config, 150, 150);
49 bitmap.allocPixels();
50 bitmap.eraseRGB(0, 255, 0);
51 thumbnail_ = gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
/external/chromium_org/content/browser/renderer_host/
H A Drender_widget_host_browsertest.cc29 const SkBitmap& bitmap) {
33 const int row_bytes = bitmap.rowBytesAsPixels();
34 SkColor* pixels = reinterpret_cast<SkColor*>(bitmap.getPixels());
35 for (int i = 0; i < bitmap.width(); ++i) {
36 for (int j = 0; j < bitmap.height(); ++j) {
26 GetSnapshotFromRendererCallback(const base::Closure& quit_closure, bool* snapshot_valid, bool success, const SkBitmap& bitmap) argument
/external/chromium_org/third_party/skia/src/utils/mac/
H A DSkCreateCGImageRef.cpp13 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info); local
14 delete bitmap;
110 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info); local
111 if (NULL == bitmap) {
115 const int w = bitmap->width();
116 const int h = bitmap->height();
117 const size_t s = bitmap->getSize();
119 // our provider "owns" the bitmap*, and will take care of deleting it
120 // we initially lock it, so we can access the pixels. The bitmap will be deleted in the release
122 bitmap
211 SkBitmap bitmap; local
[all...]
/external/skia/dm/
H A DDMGpuTask.cpp55 SkBitmap bitmap; local
56 bitmap.setConfig(fConfig, SkScalarCeilToInt(fGM->width()), SkScalarCeilToInt(fGM->height()));
57 canvas.readPixels(&bitmap, 0, 0);
63 this->spawnChild(SkNEW_ARGS(ExpectationsTask, (*this, fExpectations, bitmap)));
64 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap)));
/external/skia/src/utils/mac/
H A DSkCreateCGImageRef.cpp13 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info); local
14 delete bitmap;
110 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info); local
111 if (NULL == bitmap) {
115 const int w = bitmap->width();
116 const int h = bitmap->height();
117 const size_t s = bitmap->getSize();
119 // our provider "owns" the bitmap*, and will take care of deleting it
120 // we initially lock it, so we can access the pixels. The bitmap will be deleted in the release
122 bitmap
211 SkBitmap bitmap; local
[all...]
/external/wpa_supplicant_8/hostapd/src/ap/
H A Dp2p_hostapd.c96 u8 bitmap; local
106 bitmap = P2P_MAN_DEVICE_MANAGEMENT;
108 bitmap |= P2P_MAN_CROSS_CONNECTION_PERMITTED;
109 bitmap |= P2P_MAN_COEXISTENCE_OPTIONAL;
110 *eid++ = bitmap;

Completed in 739 milliseconds

1234567891011>>