Searched refs:bitmap (Results 101 - 125 of 1242) sorted by relevance

1234567891011>>

/external/skia/include/utils/
H A DSkNinePatch.h23 const SkBitmap& bitmap, const SkIRect& margins,
27 const SkBitmap& bitmap,
/external/chromium_org/third_party/skia/include/effects/
H A DSkBitmapSource.h16 static SkBitmapSource* Create(const SkBitmap& bitmap) { argument
17 return SkNEW_ARGS(SkBitmapSource, (bitmap));
19 static SkBitmapSource* Create(const SkBitmap& bitmap, const SkRect& srcRect, argument
21 return SkNEW_ARGS(SkBitmapSource, (bitmap, srcRect, dstRect));
28 explicit SkBitmapSource(const SkBitmap& bitmap);
29 SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect);
/external/skia/include/effects/
H A DSkBitmapSource.h16 static SkBitmapSource* Create(const SkBitmap& bitmap) { argument
17 return SkNEW_ARGS(SkBitmapSource, (bitmap));
19 static SkBitmapSource* Create(const SkBitmap& bitmap, const SkRect& srcRect, argument
21 return SkNEW_ARGS(SkBitmapSource, (bitmap, srcRect, dstRect));
28 explicit SkBitmapSource(const SkBitmap& bitmap);
29 SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect);
/external/chromium_org/extensions/browser/
H A Dimage_loader.cc52 SkBitmap ResizeIfNeeded(const SkBitmap& bitmap, argument
54 gfx::Size original_size(bitmap.width(), bitmap.height());
59 bitmap, skia::ImageOperations::RESIZE_LANCZOS3,
63 return bitmap;
66 void LoadResourceOnUIThread(int resource_id, SkBitmap* bitmap) { argument
72 *bitmap = *image.bitmap();
76 SkBitmap* bitmap) {
94 gfx::PNGCodec::Decode(data, file_contents.length(), bitmap);
75 LoadImageOnBlockingPool(const ImageLoader::ImageRepresentation& image_info, SkBitmap* bitmap) argument
157 SkBitmap bitmap; member in struct:extensions::ImageLoader::LoadResult
162 LoadResult( const SkBitmap& bitmap, const gfx::Size& original_size, const ImageLoader::ImageRepresentation& image_representation) argument
190 SkBitmap bitmap; local
281 const SkBitmap& bitmap = it->bitmap; local
309 const SkBitmap& bitmap = it->bitmap; local
[all...]
/external/chromium_org/third_party/skia/src/pdf/
H A DSkPDFImage.cpp29 static size_t get_uncompressed_size(const SkBitmap& bitmap, argument
31 switch (bitmap.colorType()) {
49 static SkStream* extract_index8_image(const SkBitmap& bitmap, argument
53 (get_uncompressed_size(bitmap, srcRect)));
57 memcpy(dst, bitmap.getAddr8(srcRect.fLeft, y), rowBytes);
63 static SkStream* extract_argb4444_data(const SkBitmap& bitmap, argument
76 (get_uncompressed_size(bitmap, srcRect)));
81 uint16_t* src = bitmap.getAddr16(0, y);
118 static SkStream* extract_rgb565_image(const SkBitmap& bitmap, argument
121 (get_uncompressed_size(bitmap,
136 extract_argb8888_data(const SkBitmap& bitmap, const SkIRect& srcRect, bool extractAlpha, bool* isOpaque, bool* isTransparent) argument
170 extract_a8_alpha(const SkBitmap& bitmap, const SkIRect& srcRect, bool* isOpaque, bool* isTransparent) argument
210 extract_image_data(const SkBitmap& bitmap, const SkIRect& srcRect, bool extractAlpha, bool* isTransparent) argument
307 get_argb8888_neighbor_avg_color(const SkBitmap& bitmap, int xOrig, int yOrig) argument
341 get_argb4444_neighbor_avg_color(const SkBitmap& bitmap, int xOrig, int yOrig) argument
375 unpremultiply_bitmap(const SkBitmap& bitmap, const SkIRect& srcRect) argument
439 CreateImage(const SkBitmap& bitmap, const SkIRect& srcRect, SkPicture::EncodeBitmap encoder) argument
497 SkPDFImage(SkStream* stream, const SkBitmap& bitmap, bool isAlpha, const SkIRect& srcRect, SkPicture::EncodeBitmap encoder) argument
706 SkPDFCreateImageObject( const SkBitmap& bitmap, const SkIRect& subset, SkPicture::EncodeBitmap encoder) argument
[all...]
/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/content/common/
H A Dhost_shared_bitmap_manager_unittest.cc21 scoped_ptr<base::SharedMemory> bitmap(new base::SharedMemory());
22 bitmap->CreateAndMapAnonymous(size_in_bytes);
23 memset(bitmap->memory(), 0xff, size_in_bytes);
27 bitmap->ShareToProcess(base::GetCurrentProcessHandle(), &handle);
53 EXPECT_EQ(memcmp(shared_bitmap->pixels(), bitmap->memory(), 4), 0);
63 EXPECT_EQ(memcmp(shared_bitmap->pixels(), bitmap->memory(), size_in_bytes),
68 memset(bitmap->memory(), 0, size_in_bytes);
70 EXPECT_EQ(memcmp(shared_bitmap->pixels(), bitmap->memory(), size_in_bytes),
72 bitmap.reset();
86 scoped_ptr<base::SharedMemory> bitmap(ne
[all...]
/external/chromium_org/ui/gfx/image/
H A Dimage_unittest_util.cc56 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/third_party/skia/src/images/
H A DSkImageEncoder_argb.cpp89 bool SkARGBImageEncoder::onEncode(SkWStream* stream, const SkBitmap& bitmap, int) { argument
90 const ScanlineImporter scanline_import = ChooseImporter(bitmap.colorType());
95 SkAutoLockPixels alp(bitmap);
96 const uint8_t* src = (uint8_t*)bitmap.getPixels();
97 if (NULL == bitmap.getPixels()) {
102 const SkPMColor* colors = ctLocker.lockColors(bitmap);
104 const int argbStride = bitmap.width() * 4;
107 for (int y = 0; y < bitmap.height(); ++y) {
108 scanline_import(src + y * bitmap.rowBytes(), argb, bitmap
[all...]
/external/skia/src/images/
H A DSkImageEncoder_argb.cpp89 bool SkARGBImageEncoder::onEncode(SkWStream* stream, const SkBitmap& bitmap, int) { argument
90 const ScanlineImporter scanline_import = ChooseImporter(bitmap.colorType());
95 SkAutoLockPixels alp(bitmap);
96 const uint8_t* src = (uint8_t*)bitmap.getPixels();
97 if (NULL == bitmap.getPixels()) {
102 const SkPMColor* colors = ctLocker.lockColors(bitmap);
104 const int argbStride = bitmap.width() * 4;
107 for (int y = 0; y < bitmap.height(); ++y) {
108 scanline_import(src + y * bitmap.rowBytes(), argb, bitmap
[all...]
/external/skia/include/core/
H A DSkImageDecoder.h103 /** Set to true to require the decoder to return a bitmap with unpremultiplied
104 colors. The default is false, meaning the resulting bitmap will have its
106 NOTE: Passing true to this function may result in a bitmap which cannot
178 * If a bitmap is decoded into SkBitmap::A8_Config, the resulting bitmap
212 // original bitmap, sampling 1 pixel for every size pixels. e.g. if sample
213 // size is set to 3, then the returned bitmap will be 1/3 as wide and high,
242 only the bitmap's info need be set. If kDecodePixels_Mode
243 is passed, then the bitmap must have pixels or a pixelRef.
246 kDecodeBounds_Mode, //!< only return info in bitmap
283 decode(SkStream* stream, SkBitmap* bitmap, Mode mode) argument
321 DecodeFile(const char file[], SkBitmap* bitmap) argument
336 DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap) argument
366 DecodeStream(SkStreamRewindable* stream, SkBitmap* bitmap) argument
371 decode(SkStream* stream, SkBitmap* bitmap, SkBitmap::Config pref, Mode mode) argument
377 DecodeFile(const char file[], SkBitmap* bitmap, SkBitmap::Config pref, Mode mode, Format* format = NULL) argument
381 DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap, SkBitmap::Config pref, Mode mode, Format* format = NULL) argument
385 DecodeStream(SkStreamRewindable* stream, SkBitmap* bitmap, SkBitmap::Config pref, Mode mode, Format* format = NULL) argument
403 onDecodeSubset(SkBitmap* bitmap, const SkIRect& rect) argument
[all...]
/external/chromium_org/content/browser/android/
H A Dsystem_ui_resource_manager_impl.cc57 SkBitmap bitmap; local
60 bitmap = gfx::CreateSkBitmapFromAndroidResource(
64 bitmap = gfx::CreateSkBitmapFromAndroidResource(
68 bitmap = CreateOverscrollGlowLBitmap(screen_size);
71 bitmap.setImmutable();
72 *bitmap_holder = bitmap;
90 void SetBitmap(const SkBitmap& bitmap) { argument
91 DCHECK(!bitmap.empty());
94 bitmap_ = bitmap;
115 const SkBitmap& bitmap() cons function in class:content::SystemUIResourceManagerImpl::Entry
158 SkBitmap* bitmap = new SkBitmap(); local
[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.colorType() != kN32_SkColorType) ||
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
378 SkBitmap bitmap; local
563 SetSingleIconImageInformation(const SkBitmap& bitmap, size_t index, ICONDIR* icon_dir, ICONIMAGE* icon_image, size_t image_offset, size_t* image_byte_count) argument
619 CopySkBitmapBitsIntoIconBuffer(const SkBitmap& bitmap, unsigned char* buffer, size_t buffer_size) argument
657 ComputeBitmapSizeComponents(const SkBitmap& bitmap, size_t* xor_mask_size, size_t* bytes_in_resource) argument
[all...]
/external/chromium_org/cc/test/
H A Dpixel_test_utils.cc18 bool WritePNGFile(const SkBitmap& bitmap, const base::FilePath& file_path, argument
21 if (gfx::PNGCodec::EncodeBGRASkBitmap(bitmap,
32 std::string GetPNGDataUrl(const SkBitmap& bitmap) { argument
34 gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, false, &png_data);
43 bool ReadPNGFile(const base::FilePath& file_path, SkBitmap* bitmap) { argument
44 DCHECK(bitmap);
49 bitmap);
/external/chromium_org/third_party/skia/src/image/
H A DSkImage_Gpu.cpp44 SkImage_Gpu::SkImage_Gpu(const SkBitmap& bitmap) argument
45 : INHERITED(bitmap.width(), bitmap.height())
46 , fBitmap(bitmap) {
83 SkImage* SkImage::NewTexture(const SkBitmap& bitmap) { argument
84 if (NULL == bitmap.getTexture()) {
88 return SkNEW_ARGS(SkImage_Gpu, (bitmap));
/external/chromium_org/third_party/skia/tests/
H A DARGBImageEncoderTest.cpp35 // A bitmap that should generate the above bytes:
36 SkBitmap bitmap; local
38 bitmap.allocPixels(SkImageInfo::Make(kWidth, kHeight, gColorTypes[ctIndex],
40 bitmap.eraseColor(SK_ColorBLUE);
42 SkCanvas canvas(bitmap);
50 // Transform the bitmap.
51 int bufferSize = bitmap.width() * bitmap.height() * 4;
55 REPORTER_ASSERT(reporter, enc->encodeStream(&out, bitmap, SkImageEncoder::kDefaultQuality));
/external/skia/tests/
H A DARGBImageEncoderTest.cpp35 // A bitmap that should generate the above bytes:
36 SkBitmap bitmap; local
38 bool success = bitmap.allocPixels(SkImageInfo::Make(kWidth, kHeight,
41 bitmap.eraseColor(SK_ColorBLUE);
43 SkCanvas canvas(bitmap);
51 // Transform the bitmap.
52 int bufferSize = bitmap.width() * bitmap.height() * 4;
56 REPORTER_ASSERT(reporter, enc->encodeStream(&out, bitmap, SkImageEncoder::kDefaultQuality));
/external/skia/src/pdf/
H A DSkPDFImage.cpp28 static size_t get_uncompressed_size(const SkBitmap& bitmap, argument
30 switch (bitmap.colorType()) {
48 static SkStream* extract_index8_image(const SkBitmap& bitmap, argument
52 (get_uncompressed_size(bitmap, srcRect)));
56 memcpy(dst, bitmap.getAddr8(srcRect.fLeft, y), rowBytes);
62 static SkStream* extract_argb4444_data(const SkBitmap& bitmap, argument
75 (get_uncompressed_size(bitmap, srcRect)));
80 uint16_t* src = bitmap.getAddr16(0, y);
117 static SkStream* extract_rgb565_image(const SkBitmap& bitmap, argument
120 (get_uncompressed_size(bitmap,
135 extract_argb8888_data(const SkBitmap& bitmap, const SkIRect& srcRect, bool extractAlpha, bool* isOpaque, bool* isTransparent) argument
169 extract_a8_alpha(const SkBitmap& bitmap, const SkIRect& srcRect, bool* isOpaque, bool* isTransparent) argument
209 extract_image_data(const SkBitmap& bitmap, const SkIRect& srcRect, bool extractAlpha, bool* isTransparent) argument
306 get_argb8888_neighbor_avg_color(const SkBitmap& bitmap, int xOrig, int yOrig) argument
340 get_argb4444_neighbor_avg_color(const SkBitmap& bitmap, int xOrig, int yOrig) argument
374 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/extensions/browser/api/
H A Dcapture_web_contents_function.cc79 const SkBitmap& bitmap) {
81 OnCaptureSuccess(bitmap);
87 void CaptureWebContentsFunction::OnCaptureSuccess(const SkBitmap& bitmap) { argument
89 SkAutoLockPixels screen_capture_lock(bitmap);
95 reinterpret_cast<unsigned char*>(bitmap.getAddr32(0, 0)),
97 bitmap.width(),
98 bitmap.height(),
99 static_cast<int>(bitmap.rowBytes()),
106 gfx::PNGCodec::EncodeBGRASkBitmap(bitmap,
77 CopyFromBackingStoreComplete( bool succeeded, const SkBitmap& bitmap) argument
/external/chromium_org/third_party/skia/experimental/PdfViewer/
H A DSkTracker.h140 void before(const SkBitmap& bitmap) { argument
146 fBeforeTouched[i] = pickColor(bitmap, fExpectedTouched[i].x(), fExpectedTouched[i].y());
149 fBeforeUntouched[i] = pickColor(bitmap, fExpectedUntouched[i].x(),
156 void after(const SkBitmap& bitmap) { argument
165 doBreak = doBreak || fBeforeTouched[i] != pickColor(bitmap, fExpectedTouched[i].x(),
171 doBreak = doBreak && fBeforeTouched[i] != pickColor(bitmap, fExpectedTouched[i].x(),
177 doBreak = doBreak && fBeforeUntouched[i] == pickColor(bitmap, fExpectedUntouched[i].x(),
190 inline SkColor pickColor(const SkBitmap& bitmap, int x, int y) { argument
191 return bitmap.getColor(x, y);
/external/chromium_org/third_party/skia/src/effects/
H A DSkBitmapSource.cpp15 SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap) argument
17 , fBitmap(bitmap)
18 , fSrcRect(SkRect::MakeWH(SkIntToScalar(bitmap.width()),
19 SkIntToScalar(bitmap.height())))
23 SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect) argument
25 , fBitmap(bitmap)
46 SkBitmap bitmap; local
47 if (!buffer.readBitmap(&bitmap)) {
50 return SkBitmapSource::Create(bitmap, src, dst);
65 // No regions cropped out or resized; return entire bitmap
[all...]
/external/skia/experimental/PdfViewer/
H A DSkTracker.h140 void before(const SkBitmap& bitmap) { argument
146 fBeforeTouched[i] = pickColor(bitmap, fExpectedTouched[i].x(), fExpectedTouched[i].y());
149 fBeforeUntouched[i] = pickColor(bitmap, fExpectedUntouched[i].x(),
156 void after(const SkBitmap& bitmap) { argument
165 doBreak = doBreak || fBeforeTouched[i] != pickColor(bitmap, fExpectedTouched[i].x(),
171 doBreak = doBreak && fBeforeTouched[i] != pickColor(bitmap, fExpectedTouched[i].x(),
177 doBreak = doBreak && fBeforeUntouched[i] == pickColor(bitmap, fExpectedUntouched[i].x(),
190 inline SkColor pickColor(const SkBitmap& bitmap, int x, int y) { argument
191 return bitmap.getColor(x, y);
/external/chromium_org/content/common/cursors/
H A Dwebcursor_aurax11.cc27 SkBitmap bitmap;
28 bitmap.allocN32Pixels(custom_size_.width(), custom_size_.height());
29 memcpy(bitmap.getAddr32(0, 0), custom_data_.data(), custom_data_.size());
32 device_scale_factor_, gfx::Display::ROTATE_0, &bitmap, &hotspot);
34 XcursorImage* image = ui::SkBitmapToXcursorImage(&bitmap, hotspot);
/external/chromium_org/third_party/skia/dm/
H A DDMSerializeTask.cpp37 SkBitmap bitmap; local
38 AllocatePixels(fReference, &bitmap);
39 DrawPicture(*reconstructed, &bitmap);
40 if (!BitmapsEqual(bitmap, fReference)) {
42 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, "GM", bitmap)));
/external/chromium_org/third_party/skia/gm/
H A Dpeekpixels.cpp42 SkBitmap bitmap; variable
49 if (addr && bitmap.installPixels(info, const_cast<void*>(addr), rowBytes)) {
50 canvas->drawBitmap(bitmap, 0, 0, NULL);
57 if (ropixels.asROBitmap(&bitmap)) {
58 canvas->drawBitmap(bitmap, 0, 0, NULL);

Completed in 707 milliseconds

1234567891011>>