HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 701 - 725 of 1029) sorted by null

<<21222324252627282930>>

  /external/skqp/src/image/
SkImage_Lazy.cpp 132 * On success (true), bitmap will point to the pixels for this generator. If this returns
133 * false, the bitmap will be reset to empty.
422 static bool check_output_bitmap(const SkBitmap& bitmap, uint32_t expectedID) {
423 SkASSERT(bitmap.getGenerationID() == expectedID);
424 SkASSERT(bitmap.isImmutable());
425 SkASSERT(bitmap.getPixels());
447 bool SkImage_Lazy::lockAsBitmapOnlyIfAlreadyCached(SkBitmap* bitmap, CachedFormat format) const {
450 fInfo.width(), fInfo.height()), bitmap) &&
451 check_output_bitmap(*bitmap, uniqueID);
493 bool SkImage_Lazy::lockAsBitmap(SkBitmap* bitmap, SkImage::CachingHint chint, CachedFormat format
526 SkBitmapCache::Add(std::move(cacheRec), bitmap); local
831 SkBitmap bitmap; local
    [all...]
  /external/skqp/tests/
BlurTest.cpp 261 SkBitmap bitmap; local
262 bitmap.allocN32Pixels(resultCount, 30);
263 SkCanvas canvas(bitmap);
266 readback(bitmap, result, resultCount);
SerializationTest.cpp 275 // Try to render a small bitmap using the invalid deserialized filter
278 SkBitmap bitmap; local
279 bitmap.allocN32Pixels(24, 24);
280 SkCanvas canvas(bitmap);
285 canvas.drawBitmap(bitmap, 0, 0, &paint);
300 SkBitmap bitmap; local
301 bitmap.allocN32Pixels(SkScalarCeilToInt(picture.cullRect().width()),
303 SkCanvas canvas(bitmap);
305 return bitmap;
388 static void setup_bitmap_for_canvas(SkBitmap* bitmap) {
418 SkBitmap bitmap; local
    [all...]
SurfaceTest.cpp 929 SkBitmap bitmap; local
    [all...]
  /external/skqp/tools/
colorspaceinfo.cpp 420 SkBitmap bitmap; local
421 bitmap.allocN32Pixels(width, height);
422 bitmap.eraseColor(SkColorSetARGB(0, 0, 0, 0));
423 return bitmap;
428 OutputCanvas(SkBitmap&& bitmap)
429 :fBitmap(bitmap)
658 SkBitmap bitmap; local
661 bitmap.allocN32Pixels(width, height, kOpaque_SkAlphaType == codec->getInfo().alphaType());
663 if (SkCodec::kSuccess != codec->getPixels(decodeInfo, bitmap.getPixels(),
664 bitmap.rowBytes()))
    [all...]
sk_tool_utils.cpp 125 void write_pixels(SkCanvas* canvas, const SkBitmap& bitmap, int x, int y,
127 SkBitmap tmp(bitmap);
144 SkBitmap bitmap; local
145 bitmap.allocPixels(SkImageInfo::MakeS32(w, h, kPremul_SkAlphaType));
146 SkCanvas canvas(bitmap);
149 return bitmap;
161 SkBitmap bitmap; local
162 bitmap.allocN32Pixels(w, h);
163 SkCanvas canvas(bitmap);
178 result.setPixelRef(sk_ref_sp(bitmap.pixelRef()), 0, 0)
    [all...]
  /external/skqp/tools/debugger/
SkDebugCanvas.cpp 120 SkBitmap bitmap; local
121 bitmap.allocPixels(SkImageInfo::MakeN32Premul(1, 1));
123 SkCanvas canvas(bitmap);
128 SkColor prev = bitmap.getColor(0,0);
134 if (prev != bitmap.getColor(0,0)) {
137 prev = bitmap.getColor(0,0);
481 void SkDebugCanvas::onDrawBitmap(const SkBitmap& bitmap, SkScalar left,
483 this->addDrawCommand(new SkDrawBitmapCommand(bitmap, left, top, paint));
486 void SkDebugCanvas::onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst,
488 this->addDrawCommand(new SkDrawBitmapRectCommand(bitmap, src, dst, paint
    [all...]
  /external/skqp/tools/skqp/
gm_knowledge.cpp 146 SkBitmap bitmap; local
151 bitmap.allocPixels(info);
152 SkASSERT(bitmap.rowBytes() == (unsigned)bitmap.width() * sizeof(uint32_t));
153 if (SkCodec::kSuccess != codec->getPixels(bitmap.pixmap())) {
154 bitmap.reset();
157 return bitmap;
  /external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/
SkiaPooledImageRegionDecoder.java 10 import android.graphics.Bitmap;
69 private final Bitmap.Config bitmapConfig;
85 public SkiaPooledImageRegionDecoder(Bitmap.Config bitmapConfig) {
86 Bitmap.Config globalBitmapConfig = SubsamplingScaleImageView.getPreferredBitmapConfig();
92 this.bitmapConfig = Bitmap.Config.RGB_565;
248 public Bitmap decodeRegion(Rect sRect, int sampleSize) {
263 Bitmap bitmap = decoder.decodeRegion(sRect, options); local
264 if (bitmap == null) {
265 throw new RuntimeException("Skia image decoder returned null bitmap - image format may not be supported")
    [all...]
  /external/syslinux/gpxe/src/net/udp/
tftp.c 36 #include <gpxe/bitmap.h>
108 /** Block bitmap */
109 struct bitmap bitmap; member in struct:tftp_request
153 bitmap_free ( &tftp->bitmap );
242 * Presize TFTP receive buffers and block bitmap
268 if ( ( rc = bitmap_resize ( &tftp->bitmap, num_blocks ) ) != 0 ) {
269 DBGC ( tftp, "TFTP %p could not resize bitmap to %d blocks: "
398 block = bitmap_first_gap ( &tftp->bitmap );
520 * the block bitmap
    [all...]
  /external/tcpdump/
appletalk.h 76 uint8_t bitmap; member in struct:atATP
  /frameworks/base/core/java/android/transition/
ChangeBounds.java 27 import android.graphics.Bitmap;
445 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local
446 Canvas canvas = new Canvas(bitmap);
448 final BitmapDrawable drawable = new BitmapDrawable(bitmap);
  /frameworks/base/core/java/android/view/
PointerIcon.java 25 import android.graphics.Bitmap;
50 /** {@hide} Type constant: Custom icon with a user-supplied bitmap. */
53 /** Type constant: Null icon. It has no bitmap. */
150 private Bitmap mBitmap;
155 private Bitmap mBitmapFrames[];
163 * Gets a special pointer icon that has no bitmap.
249 * Creates a custom pointer icon from the given bitmap and hotspot information.
251 * @param bitmap The bitmap for the icon.
252 * @param hotSpotX The X offset of the pointer icon hotspot in the bitmap
412 Bitmap bitmap = bitmapDrawable.getBitmap(); local
497 final Bitmap bitmap = getBitmapFromDrawable(bitmapDrawable); local
    [all...]
RecordingCanvas.java 24 import android.graphics.Bitmap;
77 public final void drawBitmap(@NonNull Bitmap bitmap, float left, float top,
79 throwIfCannotDraw(bitmap);
80 nDrawBitmap(mNativeCanvasWrapper, bitmap, left, top,
82 bitmap.mDensity);
86 public final void drawBitmap(@NonNull Bitmap bitmap, @NonNull Matrix matrix,
88 nDrawBitmapMatrix(mNativeCanvasWrapper, bitmap, matrix.ni(),
93 public final void drawBitmap(@NonNull Bitmap bitmap, @Nullable Rect src, @NonNull Rect dst
260 Bitmap bitmap = patch.getBitmap(); local
271 Bitmap bitmap = patch.getBitmap(); local
    [all...]
  /frameworks/base/core/jni/android/graphics/
BitmapFactory.cpp 105 virtual bool allocPixelRef(SkBitmap* bitmap) {
107 const int bytesPerPixel = SkColorTypeBytesPerPixel(bitmap->colorType());
109 int(bitmap->width() * mScale + 0.5f) *
110 int(bitmap->height() * mScale + 0.5f);
112 ALOGW("bitmap for alloc reuse (%d bytes) can't fit scaled bitmap (%d bytes)",
116 return SkBitmap::HeapAllocator::allocPixelRef(bitmap);
125 RecyclingPixelAllocator(android::Bitmap* bitmap, unsigned int size)
126 : mBitmap(bitmap), mSize(size)
520 jobject bitmap = NULL; local
    [all...]
  /frameworks/base/core/jni/
android_graphics_Canvas.cpp 28 #include "Bitmap.h"
54 // Native wrapper constructor used by Canvas(Bitmap)
56 SkBitmap bitmap; local
58 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap);
60 return reinterpret_cast<jlong>(Canvas::create_canvas(bitmap));
63 // Set the given bitmap as the new draw target (wrapped in a new SkCanvas),
66 SkBitmap bitmap; local
68 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap);
70 get_canvas(canvasHandle)->setBitmap(bitmap);
354 Bitmap& bitmap = android::bitmap::toBitmap(env, bitmapHandle) local
384 Bitmap& bitmap = android::bitmap::toBitmap(env, jbitmap); local
419 Bitmap& bitmap = android::bitmap::toBitmap(env, jbitmap); local
430 Bitmap& bitmap = android::bitmap::toBitmap(env, jbitmap); local
454 SkBitmap bitmap; local
484 Bitmap& bitmap = android::bitmap::toBitmap(env, jbitmap); local
    [all...]
  /frameworks/base/core/tests/coretests/src/android/widget/
RemoteViewsTest.java 26 import android.graphics.Bitmap;
77 Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888); local
79 original.setImageViewBitmap(R.id.image, bitmap);
84 assertSame(bitmap, ((BitmapDrawable)drawable).getBitmap());
  /frameworks/base/graphics/java/android/graphics/
BaseCanvas.java 52 protected int mScreenDensity = Bitmap.DENSITY_NONE;
57 protected int mDensity = Bitmap.DENSITY_NONE;
60 protected void throwIfCannotDraw(Bitmap bitmap) {
61 if (bitmap.isRecycled()) {
62 throw new RuntimeException("Canvas: trying to use a recycled bitmap " + bitmap);
64 if (!bitmap.isPremultiplied() && bitmap.getConfig() == Bitmap.Config.ARGB_8888 &
281 Bitmap bitmap = patch.getBitmap(); local
291 Bitmap bitmap = patch.getBitmap(); local
    [all...]
  /frameworks/base/graphics/java/android/graphics/drawable/
Icon.java 30 import android.graphics.Bitmap;
55 * compressed bitmap images (e.g. JPG or PNG), and drawable resources (including vectors).
67 * An icon that was created using {@link Icon#createWithBitmap(Bitmap)}.
111 // TYPE_BITMAP: Bitmap
139 * @return The {@link android.graphics.Bitmap} held by this {@link #TYPE_BITMAP} Icon.
142 public Bitmap getBitmap() {
146 return (Bitmap) mObj1;
149 private void setBitmap(Bitmap b) {
154 * @return The length of the compressed bitmap byte array held by this {@link #TYPE_DATA} Icon.
168 * valid compressed bitmap data is found
878 Bitmap bitmap = getBitmap(); local
    [all...]
  /frameworks/base/libs/hwui/
RecordedOp.h 214 BitmapOp(BASE_PARAMS, Bitmap* bitmap) : SUPER(BitmapOp), bitmap(bitmap) {}
215 Bitmap* bitmap; member in struct:android::uirenderer::BitmapOp
219 BitmapMeshOp(BASE_PARAMS, Bitmap* bitmap, int meshWidth, int meshHeight, const float* vertices,
222 , bitmap(bitmap)
227 Bitmap* bitmap; member in struct:android::uirenderer::BitmapMeshOp
237 Bitmap* bitmap; member in struct:android::uirenderer::BitmapRectOp
286 Bitmap* bitmap; member in struct:android::uirenderer::PatchOp
    [all...]
VectorDrawable.cpp 408 // avoid blurry scaling, we have to draw into a bitmap with exact pixel
409 // size first. This bitmap size is determined by the bounds and the
455 // draw bitmap cache
457 updateBitmapCache(*mStagingCache.bitmap, true);
463 outCanvas->drawBitmap(*mStagingCache.bitmap, 0, 0, mStagingCache.bitmap->width(),
464 mStagingCache.bitmap->height(), mStagingProperties.getBounds().left(),
487 Bitmap& Tree::getBitmapUpdateIfDirty() {
491 updateBitmapCache(*mCache.bitmap, false);
494 return *mCache.bitmap;
518 Bitmap& bitmap = getBitmapUpdateIfDirty(); local
567 Bitmap& bitmap = getBitmapUpdateIfDirty(); local
    [all...]
  /frameworks/base/media/java/android/media/
ThumbnailUtils.java 20 import android.graphics.Bitmap;
43 /* Maximum pixels size for created bitmap. */
54 * {@link #extractThumbnail(Bitmap, int, int, int)} unless the output is the input.
80 * @return Bitmap, or null on failures
84 public static Bitmap createImageThumbnail(String filePath, int kind) {
93 Bitmap bitmap = null; local
99 bitmap = sizedThumbnailBitmap.mBitmap;
101 bitmap = createThumbnailFromMetadataRetriever(filePath, targetSize, maxPixels);
105 if (bitmap == null)
158 Bitmap bitmap = null; local
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
ExifInterfaceTest.java 22 import android.graphics.Bitmap;
202 Bitmap bitmap = exifInterface.getThumbnailBitmap(); local
203 if (bitmap == null) {
206 Log.v(TAG, fileName + " Thumbnail size: " + bitmap.getWidth() + ", "
207 + bitmap.getHeight());
270 Bitmap thumbnailBitmap = exifInterface.getThumbnailBitmap();
  /frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
PdfManipulationService.java 22 import android.graphics.Bitmap;
79 private Bitmap mBitmap;
160 Bitmap bitmap = getBitmapForSize(bitmapWidth, bitmapHeight); local
161 page.render(bitmap, clip, matrix, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY);
163 BitmapSerializeUtils.writeBitmapPixels(bitmap, destination);
168 // The error is propagated to the caller when it tries to read the bitmap and
188 private Bitmap getBitmapForSize(int width, int height) {
196 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888)
    [all...]
  /frameworks/base/services/core/java/com/android/server/wm/
TaskSnapshotPersister.java 19 import static android.graphics.Bitmap.CompressFormat.*;
26 import android.graphics.Bitmap;
27 import android.graphics.Bitmap.Config;
339 final Bitmap bitmap = Bitmap.createHardwareBitmap(mSnapshot.getSnapshot()); local
340 if (bitmap == null) {
341 Slog.e(TAG, "Invalid task snapshot hw bitmap");
345 final Bitmap swBitmap = bitmap.copy(Config.ARGB_8888, false /* isMutable */)
    [all...]

Completed in 1141 milliseconds

<<21222324252627282930>>