HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 726 - 750 of 1117) sorted by null

<<21222324252627282930>>

  /external/skia/src/images/
SkImageDecoder_libwebp.cpp 113 virtual bool onDecodeSubset(SkBitmap* bitmap, const SkIRect& rect) SK_OVERRIDE;
346 static bool is_config_compatible(const SkBitmap& bitmap) {
347 const SkColorType ct = bitmap.colorType();
367 // 2. bitmap's config is compatible
368 // 3. bitmap's size is same as the required region (after sampled)
376 SkBitmap *bitmap = decodedBitmap; local
379 bitmap = &tmpBitmap;
382 if (bitmap->isNull()) {
383 if (!setDecodeConfig(bitmap, width, height)) {
386 // alloc from native heap if it is a temp bitmap. (prevent GC
    [all...]
  /external/skia/src/utils/debugger/
SkDebugCanvas.cpp 74 SkBitmap bitmap; local
75 bitmap.allocPixels(SkImageInfo::MakeN32Premul(1, 1));
77 SkCanvas canvas(bitmap);
82 SkColor prev = bitmap.getColor(0,0);
87 if (prev != bitmap.getColor(0,0)) {
90 prev = bitmap.getColor(0,0);
472 void SkDebugCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar left,
474 this->addDrawCommand(new SkDrawBitmapCommand(bitmap, left, top, paint));
477 void SkDebugCanvas::drawBitmapRectToRect(const SkBitmap& bitmap,
481 this->addDrawCommand(new SkDrawBitmapRectCommand(bitmap, src, dst, paint, flags))
    [all...]
  /external/skia/src/views/win/
SkOSWindow_win.cpp 185 const SkBitmap& bitmap = this->getBitmap(); local
190 bmi.bmiHeader.biWidth = bitmap.width();
191 bmi.bmiHeader.biHeight = -bitmap.height(); // top-down image
204 // seems to be to copy the bitmap to a temporary (contiguous)
206 SkASSERT(bitmap.width() * bitmap.bytesPerPixel() == bitmap.rowBytes());
207 bitmap.lockPixels();
210 bitmap.width(), bitmap.height()
    [all...]
  /external/skia/tests/
BlurTest.cpp 267 SkBitmap bitmap; local
268 bitmap.allocN32Pixels(resultCount, 30);
269 SkCanvas canvas(bitmap);
  /external/skia/tools/
PictureRenderer.cpp 125 SkBitmap bitmap; local
126 sk_tools::setup_bitmap(&bitmap, width, height);
127 canvas = SkNEW_ARGS(SkCanvas, (bitmap));
281 SkBitmap bitmap; local
283 setup_bitmap(&bitmap, size.width(), size.height());
285 canvas->readPixels(&bitmap, 0, 0);
286 force_all_opaque(bitmap);
287 BitmapAndDigest bitmapAndDigest(bitmap);
327 if (!write_bitmap_to_disk(bitmap, mismatchPath, outputSubdirPtr, outputFilename)) {
336 return write_bitmap_to_disk(bitmap, writePath, outputSubdirPtr, outputFilename)
636 SkBitmap bitmap; local
724 SkBitmap bitmap; variable
    [all...]
skimage_main.cpp 127 * Encode the bitmap to a file, written one of two ways, depending on
168 // First attempt at encoding failed, and the bitmap was already 8888. Making
236 * If expectations are to be recorded, record the bitmap expectations into the global
254 * If --readExpectationsPath is set, compare this bitmap to the json expectations
257 * @param digest GmResultDigest, computed from the decoded bitmap, to compare to
269 * - the bitmap matches the expectation.
272 * - there is an expectations file, but no expectation for this bitmap.
273 * - there is an expectation for this bitmap, but it did not match.
274 * - expectation could not be computed from the bitmap.
323 * Helper function to write a bitmap subset to a file. Only called if subsets were create
485 SkBitmap bitmap; local
    [all...]
  /external/tcpdump/
appletalk.h 78 u_int8_t bitmap; member in struct:atATP
  /frameworks/base/cmds/bootanimation/
BootAnimation.cpp 113 SkBitmap bitmap;
115 &bitmap, kUnknown_SkColorType, SkImageDecoder::kDecodePixels_Mode);
120 // bitmap will go out of scope when we return from this method.
121 bitmap.lockPixels();
123 const int w = bitmap.width();
124 const int h = bitmap.height();
125 const void* p = bitmap.getPixels();
134 switch (bitmap.colorType()) {
167 SkBitmap bitmap; local
172 codec->decode(&stream, &bitmap,
    [all...]
  /frameworks/base/core/java/android/transition/
ChangeBounds.java 29 import android.graphics.Bitmap;
442 Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), local
443 Bitmap.Config.ARGB_8888);
444 Canvas canvas = new Canvas(bitmap);
446 final BitmapDrawable drawable = new BitmapDrawable(bitmap);
  /frameworks/base/core/jni/android/graphics/
Bitmap.cpp 102 static FromColorProc ChooseFromColorProc(const SkBitmap& bitmap) {
103 switch (bitmap.colorType()) {
105 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D32 : FromColor_D32_Raw;
107 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D4444 :
334 SkBitmap bitmap; local
335 bitmap.setInfo(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType));
337 jbyteArray buff = GraphicsJNI::allocateJavaPixelRef(env, &bitmap, NULL);
344 0, 0, width, height, bitmap);
347 return GraphicsJNI::createBitmap(env, new SkBitmap(bitmap), buff,
366 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle) local
377 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
392 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
445 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
486 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
491 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
496 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
501 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
506 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
514 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
520 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
530 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
541 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
547 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
578 SkBitmap* bitmap = new SkBitmap; local
625 const SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
708 const SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
728 const SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
755 const SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
774 const SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
781 const SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
795 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
869 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
    [all...]
BitmapFactory.cpp 102 // if the collision avoidance above put some divs outside the bounds of the bitmap,
145 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) {
148 colorTypeForScaledOutput(bitmap->colorType()));
150 int(bitmap->width() * mScale + 0.5f) *
151 int(bitmap->height() * mScale + 0.5f);
153 ALOGW("bitmap for alloc reuse (%d bytes) can't fit scaled bitmap (%d bytes)",
157 return SkBitmap::HeapAllocator::allocPixelRef(bitmap, ctable);
175 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) {
176 const SkImageInfo& info = bitmap->info()
470 jobject bitmap = NULL; local
    [all...]
  /frameworks/base/core/jni/
android_view_SurfaceControl.cpp 174 SkBitmap* bitmap = new SkBitmap(); local
175 bitmap->setInfo(screenshotInfo, (size_t)rowBytes);
183 bitmap->setPixelRef(pixels)->unref();
184 bitmap->lockPixels();
187 return GraphicsJNI::createBitmap(env, bitmap,
588 {"nativeScreenshot", "(Landroid/os/IBinder;Landroid/graphics/Rect;IIIIZZI)Landroid/graphics/Bitmap;",
  /frameworks/base/graphics/java/android/graphics/drawable/
NinePatchDrawable.java 25 import android.graphics.Bitmap;
55 * A resizeable bitmap, with stretchable areas that you define. This type of image
89 * @deprecated Use {@link #NinePatchDrawable(Resources, Bitmap, byte[], Rect, String)}
93 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) {
94 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null);
101 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk,
103 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res);
113 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk
429 Bitmap bitmap = null; local
653 final Bitmap bitmap = mNinePatch.getBitmap(); 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
97 bitmap = sizedThumbnailBitmap.mBitmap;
100 if (bitmap == null) {
118 options.inPreferredConfig = Bitmap.Config.ARGB_8888
153 Bitmap bitmap = null; local
    [all...]
  /frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
PdfManipulationService.java 22 import android.graphics.Bitmap;
79 private Bitmap mBitmap;
161 Bitmap bitmap = getBitmapForSize(bitmapWidth, bitmapHeight); local
162 page.render(bitmap, clip, matrix, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY);
166 BitmapSerializeUtils.writeBitmapPixels(bitmap, destination);
185 private Bitmap getBitmapForSize(int width, int height) {
193 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
  /frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
ActivityTestMain.java 40 import android.graphics.Bitmap;
101 private void addThumbnail(LinearLayout container, Bitmap bm,
471 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.icon); local
473 desc.setIcon(bitmap);
475 int taskId = am.addAppTask(this, intent, desc, bitmap);
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
ImageGoodnessFilter.java 20 import android.graphics.Bitmap;
171 Bitmap bitmap = inputImage.toBitmap(); local
173 new AsyncOperation().execute(bitmap);
196 private class AsyncOperation extends AsyncTask<Bitmap, Void, String> {
197 private Bitmap b;
204 protected String doInBackground(Bitmap... params) {
  /frameworks/opt/bitmap/src/com/android/bitmap/drawable/
BasicBitmapDrawable.java 16 package com.android.bitmap.drawable;
28 import com.android.bitmap.BitmapCache;
29 import com.android.bitmap.DecodeTask;
30 import com.android.bitmap.DecodeTask.DecodeCallback;
31 import com.android.bitmap.DecodeTask.DecodeOptions;
32 import com.android.bitmap.NamedThreadFactory;
33 import com.android.bitmap.RequestKey;
34 import com.android.bitmap.RequestKey.Cancelable;
35 import com.android.bitmap.RequestKey.FileDescriptorFactory;
36 import com.android.bitmap.ReusableBitmap
    [all...]
StyledCornersBitmapDrawable.java 17 package com.android.bitmap.drawable;
28 import com.android.bitmap.BitmapCache;
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
StreamingTextView.java 19 import android.graphics.Bitmap;
74 private Bitmap mOneDot;
75 private Bitmap mTwoDot;
98 private Bitmap getScaledBitmap(int resourceId, float scaled) {
99 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), resourceId); local
100 return Bitmap.createScaledBitmap(bitmap, (int) (bitmap.getWidth() * scaled),
101 (int) (bitmap.getHeight() * scaled), false)
    [all...]
  /frameworks/support/v7/palette/src/android/support/v7/graphics/
ColorCutQuantizer.java 19 import android.graphics.Bitmap;
63 * Factory-method to generate a {@link ColorCutQuantizer} from a {@link Bitmap} object.
65 * @param bitmap Bitmap to extract the pixel data from
68 static ColorCutQuantizer fromBitmap(Bitmap bitmap, int maxColors) {
69 final int width = bitmap.getWidth();
70 final int height = bitmap.getHeight();
73 bitmap.getPixels(pixels, 0, width, 0, 0, width, height);
  /packages/apps/Contacts/src/com/android/contacts/group/
SuggestedMemberListAdapter.java 21 import android.graphics.Bitmap;
150 Bitmap bitmap = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length); local
151 icon.setImageBitmap(bitmap);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
ShortcutIntentBuilder.java 24 import android.graphics.Bitmap;
256 Bitmap bitmap = BitmapFactory.decodeByteArray(bitmapData, 0, bitmapData.length, null); local
257 return new BitmapDrawable(mContext.getResources(), bitmap);
286 final Bitmap icon = generateQuickContactIcon(drawable);
306 Bitmap bitmap; local
311 bitmap = generatePhoneNumberIcon(drawable, phoneType, phoneLabel,
315 bitmap = generatePhoneNumberIcon(drawable, phoneType, phoneLabel,
323 intent.putExtra(Intent.EXTRA_SHORTCUT_ICON, bitmap);
333 Bitmap bitmap = Bitmap.createBitmap(mIconSize, mIconSize, Bitmap.Config.ARGB_8888); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
SlideshowPage.java 21 import android.graphics.Bitmap;
68 public Bitmap bitmap; field in class:SlideshowPage.Slide
72 public Slide(MediaItem item, int index, Bitmap bitmap) {
73 this.bitmap = bitmap;
164 mSlideshowView.next(slide.bitmap, slide.item.getRotation());
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
LocalImage.java 23 import android.graphics.Bitmap;
174 public Job<Bitmap> requestImage(int type) {
190 public Bitmap onDecodeOriginal(JobContext jc, final int type) {
192 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
208 Bitmap bitmap = DecodeUtils.decodeIfBigEnough( local
210 if (bitmap != null) return bitmap;

Completed in 1338 milliseconds

<<21222324252627282930>>