| /external/pdfium/core/src/fxge/ge/ |
| fx_ge_device.cpp | 236 CFX_DIBitmap bitmap, Backdrop;
local 237 if (!CreateCompatibleBitmap(&bitmap, FXSYS_round(rect.Width() * fScaleX), FXSYS_round(rect.Height() * fScaleY))) {
240 if (bitmap.HasAlpha()) {
241 bitmap.Clear(0);
242 Backdrop.Copy(&bitmap);
244 if (!m_pDeviceDriver->GetDIBits(&bitmap, rect.left, rect.top, NULL)) {
247 Backdrop.Copy(&bitmap);
250 bitmap_device.Attach(&bitmap, 0, FALSE, &Backdrop, TRUE);
261 return m_pDeviceDriver->SetDIBits(&bitmap, 0, &src_rect, rect.left, rect.top, FXDIB_BLEND_NORMAL);
281 CFX_DIBitmap bitmap;
local [all...] |
| /external/pdfium/core/src/fxge/win32/ |
| fx_win32_dwrite.cpp | 436 BITMAP bitmap;
local 437 GetObject(hBitmap, sizeof bitmap, &bitmap);
440 bitmap.bmWidth,
441 bitmap.bmHeight,
442 bitmap.bmBitsPixel == 24 ? FXDIB_Rgb : FXDIB_Rgb32,
443 (FX_LPBYTE)bitmap.bmBits
|
| /external/qemu/android/camera/ |
| camera-capture-windows.c | 60 /* DC for frame bitmap manipulation. Null indicates that frames are not 63 /* Bitmap info for the frames obtained from the video capture driver. */ 65 /* Bitmap info to use for GetDIBits calls. We can't really use bitmap info 69 * which causes GetDIBits to fail. Second, the bitmap that represents a frame 71 * bitmap info that capture driver has returned. Sometimes the captured bitmap 73 * address these issues we need to have another bitmap info, that can be used 82 /* If != 0, frame bitmap is "top-down". If 0, frame bitmap is "bottom-up". * 295 BITMAP bitmap; local [all...] |
| /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
| ShadowBitmap.java | 3 import android.graphics.Bitmap; 15 @Implements(Bitmap.class) 17 @RealObject private Bitmap realBitmap; 21 private Bitmap.Config config; 28 public boolean compress(Bitmap.CompressFormat format, int quality, OutputStream stream) { 39 public static Bitmap createBitmap(int width, int height, Bitmap.Config config) { 40 Bitmap scaledBitmap = Robolectric.newInstanceOf(Bitmap.class); 42 shadowBitmap.appendDescription("Bitmap (" + width + " x " + height + ")") 119 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local [all...] |
| ShadowDrawable.java | 4 import android.graphics.Bitmap; 44 BitmapDrawable drawable = new BitmapDrawable(Robolectric.newInstanceOf(Bitmap.class)); 62 BitmapDrawable drawable = new BitmapDrawable(Robolectric.newInstanceOf(Bitmap.class)); 68 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local 69 shadowOf(bitmap).setLoadedFromResourceId(resourceId); 70 BitmapDrawable drawable = new BitmapDrawable(bitmap);
|
| /external/skia/bench/ |
| BitmapBench.cpp | 76 const bool fForceUpdate; //bitmap marked as dirty before each draw. forces bitmap to be updated on device cache 95 fName.set("bitmap"); 136 const SkBitmap& bitmap = fBitmap; local 137 const SkScalar x0 = SkIntToScalar(-bitmap.width() / 2); 138 const SkScalar y0 = SkIntToScalar(-bitmap.height() / 2); 145 bitmap.notifyPixelsChanged(); 147 canvas->drawBitmap(bitmap, x, y, &paint);
|
| /external/skia/experimental/Intersection/ |
| EdgeWalkerPolygons_Test.cpp | 11 static SkBitmap bitmap; variable 24 testSimplify(path, true, out, bitmap); // expect |\/| 38 testSimplify(path, true, out, bitmap); 51 testSimplify(path, true, out, bitmap); 64 testSimplify(path, true, out, bitmap); 79 testSimplify(path, true, out, bitmap); 94 testSimplify(path, true, out, bitmap); 109 testSimplify(path, true, out, bitmap); 124 testSimplify(path, true, out, bitmap); 139 testSimplify(path, true, out, bitmap); [all...] |
| EdgeWalkerRectangles_Test.cpp | 11 static SkBitmap bitmap; variable 19 testSimplify(path, true, out, bitmap); 316 testSimplify(path, true, out, bitmap);
|
| /external/skia/samplecode/ |
| SampleColorFilter.cpp | 102 SkBitmap bitmap; local 103 bitmap.allocN32Pixels(n, n); 104 bitmap.eraseColor(SK_ColorTRANSPARENT); 106 SkCanvas canvas(bitmap); 122 return bitmap;
|
| SampleRegion.cpp | 22 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/ |
| SkBitmapDevice.cpp | 60 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap) : fBitmap(bitmap) { 61 SkASSERT(valid_for_bitmap_device(bitmap.info(), NULL)); 64 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap, const SkDeviceProperties& deviceProperties) 66 , fBitmap(bitmap) 68 SkASSERT(valid_for_bitmap_device(bitmap.info(), NULL)); 78 SkBitmap bitmap; local 81 if (!bitmap.setInfo(info)) { 85 if (!bitmap.allocPixels(info)) { 88 if (!bitmap.info().isOpaque()) [all...] |
| SkBitmapProcShader.cpp | 137 const SkBitmap& bitmap = *fState->fBitmap; local 138 bool bitmapIsOpaque = bitmap.isOpaque(); 146 switch (bitmap.colorType()) { 162 if (rec.fPaint->isDither() && bitmap.colorType() != kRGB_565_SkColorType) { 169 if (1 == bitmap.height() && 181 // The bitmap proc state has been created outside of the context on memory that will be freed 289 // returns true and set color if the bitmap can be drawn as a single color 318 // SkBitmapProcShader stores bitmap coordinates in a 16bit buffer, as it 453 "Couldn't convert bitmap to texture.");
|
| /external/skia/src/gpu/ |
| SkGr.cpp | 25 based bitmap. [palette (colortable) + indices]. 35 static void build_compressed_data(void* buffer, const SkBitmap& bitmap) { 36 SkASSERT(kIndex_8_SkColorType == bitmap.colorType()); 38 SkAutoLockPixels alp(bitmap); 39 if (!bitmap.readyToDraw()) { 40 SkDEBUGFAIL("bitmap not ready to draw!"); 44 SkColorTable* ctable = bitmap.getColorTable(); 68 if ((unsigned)bitmap.width() == bitmap.rowBytes()) { 69 memcpy(dst, bitmap.getPixels(), bitmap.getSize()) 202 const SkBitmap* bitmap = &origBitmap; local [all...] |
| /external/skia/src/utils/ |
| SkCanvasStateUtils.cpp | 221 // we currently only work for bitmap backed devices 222 const SkBitmap& bitmap = layer.device()->accessBitmap(true/*changePixels*/); local 223 if (bitmap.empty() || bitmap.isNull() || !bitmap.lockPixelsAreWritable()) { 232 layerState->width = bitmap.width(); 233 layerState->height = bitmap.height(); 235 switch (bitmap.colorType()) { 245 layerState->raster.rowBytes = bitmap.rowBytes(); 246 layerState->raster.pixels = bitmap.getPixels() 292 SkBitmap bitmap; local [all...] |
| /external/skia/src/utils/mac/ |
| SkCreateCGImageRef.cpp | 47 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info); local 48 delete bitmap; 122 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info); local 123 if (NULL == bitmap) { 127 const int w = bitmap->width(); 128 const int h = bitmap->height(); 129 const size_t s = bitmap->getSize(); 131 // our provider "owns" the bitmap*, and will take care of deleting it 132 // we initially lock it, so we can access the pixels. The bitmap will be deleted in the release 134 bitmap->lockPixels() 223 SkBitmap bitmap; local [all...] |
| /external/skia/src/views/ |
| SkWidgets.cpp | 508 bool SkBitmapView::getBitmap(SkBitmap* bitmap) const 510 if (bitmap) 511 *bitmap = fBitmap; 515 void SkBitmapView::setBitmap(const SkBitmap* bitmap, bool viewOwnsPixels) 517 if (bitmap) 519 fBitmap = *bitmap; 526 SkBitmap bitmap; local 528 if (SkImageDecoder::DecodeFile(path, &bitmap)) 530 this->setBitmap(&bitmap, true); 531 bitmap.setOwnsPixels(false) [all...] |
| /external/skia/src/views/unix/ |
| SkOSWindow_Unix.cpp | 375 static bool convertBitmapToXImage(XImage& image, const SkBitmap& bitmap) { 378 int bitsPerPixel = bitmap.bytesPerPixel() * 8; 379 image.width = bitmap.width(); 380 image.height = bitmap.height(); 382 image.data = (char*) bitmap.getPixels(); 388 image.bytes_per_line = bitmap.rowBytes() - bitmap.width() * 4; 401 // Draw the bitmap to the screen. 402 const SkBitmap& bitmap = getBitmap(); local 403 int width = bitmap.width() [all...] |
| /external/skia/tests/ |
| PDFPrimitivesTest.cpp | 43 static SkData* encode_to_dct_data(size_t* pixelRefOffset, const SkBitmap& bitmap) { 244 // Create a bitmap that would be very eficiently compressed in a ZIP. 245 static void setup_bitmap(SkBitmap* bitmap, int width, int height) { 246 bitmap->allocN32Pixels(width, height); 247 bitmap->eraseColor(SK_ColorWHITE); 250 static void TestImage(skiatest::Reporter* reporter, const SkBitmap& bitmap, 252 SkISize pageSize = SkISize::Make(bitmap.width(), bitmap.height()); 260 c.drawBitmap(bitmap, 0, 0, NULL); 272 SkBitmap bitmap; local 289 SkBitmap bitmap; local 304 SkBitmap bitmap; local [all...] |
| SerializationTest.cpp | 248 // Try to render a small bitmap using the invalid deserialized filter 251 SkBitmap bitmap; local 252 bitmap.allocN32Pixels(24, 24); 253 SkCanvas canvas(bitmap); 258 canvas.drawBitmap(bitmap, 0, 0, &paint); 262 static bool setup_bitmap_for_canvas(SkBitmap* bitmap) { 265 return bitmap->allocPixels(info); 268 static bool make_checkerboard_bitmap(SkBitmap& bitmap) { 269 bool success = setup_bitmap_for_canvas(&bitmap); 271 SkCanvas canvas(bitmap); 296 SkBitmap bitmap; local [all...] |
| SurfaceTest.cpp | 103 SkBitmap bitmap; local 104 bitmap.installPixels(info, addr, rowBytes); 106 SkImageEncoder::EncodeData(bitmap, SkImageEncoder::kPNG_Type,
|
| /external/skia/tools/ |
| render_pictures_main.cpp | 117 * Write the raw encoded bitmap data to a file. 119 static bool write_image_to_file(const void* buffer, size_t size, SkBitmap* bitmap) { 132 // Put in a dummy bitmap. 133 return SkImageDecoder::DecodeStream(&memStream, bitmap, kUnknown_SkColorType, 269 SkBitmap* bitmap = NULL; local 275 FLAGS_validate || FLAGS_writeWholeImage ? &bitmap : NULL); 277 if (!success || ((FLAGS_validate || FLAGS_writeWholeImage) && bitmap == NULL)) { 279 SkDELETE(bitmap); 304 SkDELETE(bitmap); 309 if (success && (bitmap->width() != referenceBitmap->width())) [all...] |
| /external/valgrind/main/include/vki/ |
| vki-xen.h | 76 VKI_XEN_GUEST_HANDLE_64(vki_uint8) bitmap; member in struct:vki_xenctl_bitmap
|
| /frameworks/base/core/java/android/gesture/ |
| Gesture.java | 19 import android.graphics.Bitmap; 176 * Creates a bitmap of the gesture with a transparent background. 178 * @param width width of the target bitmap 179 * @param height height of the target bitmap 183 * @return the bitmap 185 public Bitmap toBitmap(int width, int height, int edge, int numSample, int color) { 186 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) local 221 final Bitmap bitmap = Bitmap.createBitmap(width, height, local [all...] |
| /frameworks/base/core/java/android/transition/ |
| Crossfade.java | 25 import android.graphics.Bitmap; 39 * This transition captures bitmap representations of target views before and 49 // a given target view. This would save bitmap comparisons in this transition, for example. 53 private static final String PROPNAME_BITMAP = "android:crossfade:bitmap"; 178 Bitmap startBitmap = (Bitmap) startVals.get(PROPNAME_BITMAP); 179 Bitmap endBitmap = (Bitmap) endVals.get(PROPNAME_BITMAP); 271 Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight() local [all...] |
| TransitionUtils.java | 22 import android.graphics.Bitmap; 81 * Creates a View using the bitmap copy of <code>view</code>. If <code>view</code> is large, 82 * the copy will use a scaled bitmap of the given view. 102 Bitmap bitmap = createViewBitmap(view, matrix, bounds); local 103 if (bitmap != null) { 104 copy.setImageBitmap(bitmap); 114 * Get a copy of bitmap of given drawable, return null if intrinsic size is zero 116 public static Bitmap createDrawableBitmap(Drawable drawable) { 124 // return same bitmap if scale down not neede 129 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); local 156 Bitmap bitmap = null; local [all...] |