| /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
| BitmapEncoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 9 public class BitmapEncoder implements ResourceEncoder<Bitmap> { 10 private Bitmap.CompressFormat compressFormat; 17 public BitmapEncoder(Bitmap.CompressFormat compressFormat, int quality) { 23 public boolean encode(Resource<Bitmap> resource, OutputStream os) { 24 final Bitmap bitmap = resource.get(); local 25 bitmap.compress(getFormat(bitmap), quality, os) [all...] |
| FileDescriptorBitmapDecoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 13 public class FileDescriptorBitmapDecoder implements ResourceDecoder<ParcelFileDescriptor, Bitmap> { 30 public Resource<Bitmap> decode(ParcelFileDescriptor source, int width, int height) throws IOException { 31 Bitmap bitmap = bitmapDecoder.decode(source, bitmapPool, width, height, decodeFormat); local 32 if (bitmap == null) { 35 return new BitmapResource(bitmap, bitmapPool); 41 return "FileDescriptorBitmapDecoder.com.bumptech.glide.load.data.bitmap";
|
| StreamBitmapDecoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 4 import android.graphics.Bitmap; 14 public class StreamBitmapDecoder implements ResourceDecoder<InputStream, Bitmap> { 15 private static final String ID = "StreamBitmapDecoder.com.bumptech.glide.load.resource.bitmap"; 36 public Resource<Bitmap> decode(InputStream source, int width, int height) { 37 Bitmap bitmap = downsampler.decode(source, bitmapPool, width, height, decodeFormat); local 38 if (bitmap == null) { 41 return new BitmapResource(bitmap, bitmapPool);
|
| /frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
| ImageEncoder.java | 26 import android.graphics.Bitmap; 27 import android.graphics.Bitmap.CompressFormat; 55 Bitmap bitmap = input.getBitmap(); local 56 bitmap.compress(CompressFormat.JPEG, mQuality, mOutputStream);
|
| /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
| CanvasTexture.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 24 // The subclasses should override onDraw() to draw on the bitmap. 37 protected Bitmap onGetBitmap() { 38 Bitmap bitmap = Bitmap.createBitmap(mWidth, mHeight, mConfig); local 39 mCanvas = new Canvas(bitmap); 40 onDraw(mCanvas, bitmap); 41 return bitmap; [all...] |
| /external/chromium_org/cc/resources/ |
| resource_update.h | 20 const SkBitmap* bitmap, 29 const SkBitmap* bitmap; member in struct:cc::ResourceUpdate
|
| /external/chromium_org/chrome/browser/ |
| image_holder_unittest.cc | 49 // Put a real bitmap into "bitmap". 2x2 bitmap of green 32 bit pixels. 50 SkBitmap bitmap; local 51 bitmap.allocN32Pixels(2, 2); 52 bitmap.eraseColor(SK_ColorGREEN); 54 image_holder.OnFetchComplete(GURL(kIconUrl1), &bitmap); local 76 // Put a real bitmap into "bitmap". 2x2 bitmap of green 32 bit pixels 77 SkBitmap bitmap; local 82 image_holder1.OnFetchComplete(GURL(kIconUrl1), &bitmap); local 83 image_holder2.OnFetchComplete(GURL(kIconUrl1), &bitmap); local 84 image_holder3.OnFetchComplete(GURL(kIconUrl1), &bitmap); local 85 image_holder4.OnFetchComplete(GURL(kIconUrl1), &bitmap); local 92 image_holder1.OnFetchComplete(GURL(kIconUrl2), &bitmap); local 93 image_holder2.OnFetchComplete(GURL(kIconUrl2), &bitmap); local 94 image_holder3.OnFetchComplete(GURL(kIconUrl2), &bitmap); local 95 image_holder4.OnFetchComplete(GURL(kIconUrl2), &bitmap); local [all...] |
| /external/chromium_org/chrome/browser/notifications/ |
| notification_conversion_helper_unittest.cc | 54 SkBitmap bitmap; local 55 bitmap.allocN32Pixels(1, 1); 56 bitmap.eraseColor(SkColorSetRGB(1, 2, 3)); 57 gfx::Image icon = gfx::Image::CreateFrom1xBitmap(bitmap);
|
| /external/chromium_org/chrome/browser/ui/ash/ |
| solid_color_user_wallpaper_delegate.cc | 49 SkBitmap bitmap; variable 50 bitmap.allocN32Pixels(16, 16); 51 bitmap.eraseARGB(255, kBackgroundRed, kBackgroundGreen, kBackgroundBlue); 56 SkAutoLockPixels alp(bitmap); 57 *bitmap.getAddr32(0,0) = SkColorSetRGB(0, 0, 0); 60 gfx::ImageSkia wallpaper = gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
|
| /external/chromium_org/third_party/WebKit/Source/platform/ |
| DragImage.h | 46 const SkBitmap& bitmap() { return m_bitmap; } function in class:blink::DragImage
|
| /external/chromium_org/third_party/skia/bench/ |
| ReadPixBench.cpp | 44 SkBitmap bitmap; variable 46 bitmap.setInfo(SkImageInfo::MakeN32Premul(kWindowSize, kWindowSize)); 51 canvas->readPixels(&bitmap, x * offX, y * offY);
|
| /external/chromium_org/third_party/skia/dm/ |
| DMPipeTask.cpp | 9 DEFINE_bool(pipe, true, "If true, check several pipe variants against the reference bitmap."); 47 SkBitmap bitmap; local 48 AllocatePixels(fReference, &bitmap); 50 SkCanvas canvas(bitmap); 56 bitmap.width(), 57 bitmap.height()); 63 if (!BitmapsEqual(bitmap, fReference)) { 65 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, "GM", bitmap)));
|
| DMSerializeTask.cpp | 37 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/experimental/PdfViewer/ |
| pdf_viewer_main.cpp | 98 static void setup_bitmap(SkBitmap* bitmap, int width, int height, SkColor color) { 99 bitmap->allocN32Pixels(width, height); 100 bitmap->eraseColor(color); 123 SkBitmap bitmap; local 124 SkAutoTUnref<SkBaseDevice> device(SkNEW_ARGS(SkBitmapDevice, (bitmap))); 131 SkBitmap bitmap; 140 setup_bitmap(&bitmap, 3 * (int)SkScalarToDouble(width), 3 * (int)SkScalarToDouble(height), 143 setup_bitmap(&bitmap, (int)SkScalarToDouble(width), (int)SkScalarToDouble(height), 148 device.reset(SkNEW_ARGS(SkBitmapDevice, (bitmap))); 156 gDumpBitmap = &bitmap; [all...] |
| /external/chromium_org/third_party/skia/gm/ |
| peekpixels.cpp | 42 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);
|
| /external/chromium_org/third_party/skia/tests/ |
| ARGBImageEncoderTest.cpp | 35 // 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));
|
| PipeTest.cpp | 16 // Ensures that the pipe gracefully handles drawing an invalid bitmap. 45 SkBitmap bitmap; local 46 bitmap.setInfo(SkImageInfo::MakeN32Premul(64, 64)); 47 SkCanvas canvas(bitmap);
|
| /external/chromium_org/third_party/skia/tools/ |
| dump_record.cpp | 27 SkBitmap bitmap; local 28 bitmap.allocN32Pixels(w, h); 29 SkCanvas canvas(bitmap);
|
| /external/chromium_org/third_party/webrtc/modules/desktop_capture/ |
| desktop_frame_win.cc | 21 HBITMAP bitmap) 23 bitmap_(bitmap), 37 // Describe a device independent bitmap (DIB) that is the size of the desktop. 50 HBITMAP bitmap = CreateDIBSection(hdc, &bmi, DIB_RGB_COLORS, &data, local 52 if (!bitmap) { 60 shared_memory, bitmap);
|
| /external/chromium_org/tools/telemetry/telemetry/core/ |
| video_unittest.py | 10 from telemetry.core import bitmap namespace 48 expected_bitmap = bitmap.Bitmap.FromPngFile(os.path.join(
|
| /external/chromium_org/ui/base/dragdrop/ |
| drag_utils_win.cc | 48 HBITMAP bitmap = local 51 if (!bitmap || !bits) 57 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. 72 bitmap, [all...] |
| /external/chromium_org/ui/gfx/image/ |
| image_skia.h | 74 // Creates an image from the passed in bitmap. 76 // Adds ref to passed in bitmap. 79 static ImageSkia CreateFrom1xBitmap(const SkBitmap& bitmap); 136 // Returns pointer to 1x bitmap contained by this object. If there is no 1x 137 // bitmap, the bitmap whose scale factor is closest to 1x is returned. 140 // TODO(pkotwicz): Return null SkBitmap when the object has no 1x bitmap. 141 const SkBitmap* bitmap() const { return &GetBitmap(); } function in class:gfx::ImageSkia 160 // If the image rep's bitmap is empty, ImageStorage is set to NULL.
|
| image_util.cc | 21 scoped_ptr<SkBitmap> bitmap(gfx::JPEGCodec::Decode(input, input_size)); 22 if (bitmap.get()) 23 return Image::CreateFrom1xBitmap(*bitmap); 35 const SkBitmap& bitmap = image_skia_rep.sk_bitmap(); local 36 SkAutoLockPixels bitmap_lock(bitmap); 38 if (!bitmap.readyToDraw()) 42 reinterpret_cast<unsigned char*>(bitmap.getAddr32(0, 0)), 43 gfx::JPEGCodec::FORMAT_SkBitmap, bitmap.width(), 44 bitmap.height(), 45 static_cast<int>(bitmap.rowBytes()), quality 60 const SkBitmap& bitmap = rep.sk_bitmap(); local [all...] |
| /external/chromium_org/ui/views/controls/button/ |
| image_button_unittest.cc | 14 SkBitmap bitmap; local 15 bitmap.allocN32Pixels(width, height); 16 return gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
|
| /external/chromium_org/ui/views/controls/table/ |
| test_table_model.cc | 31 SkBitmap bitmap; local 32 bitmap.setInfo(SkImageInfo::MakeN32Premul(16, 16)); 33 return gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
|