| /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
| TransformationUtils.java | 1 package com.bumptech.glide.load.resource.bitmap; 4 import android.graphics.Bitmap; 27 * A potentially expensive operation to crop the given Bitmap so that it fills the given dimensions. This operation 28 * is significantly less expensive in terms of memory if a mutable Bitmap with the given dimensions is passed in 31 * @param recycled A mutable Bitmap with dimensions width and height that we can load the cropped portion of toCrop 33 * @param toCrop The Bitmap to resize. 34 * @param width The width in pixels of the final Bitmap. 35 * @param height The height in pixels of the final Bitmap. 36 * @return The resized Bitmap (will be recycled if recycled is not null). 38 public static Bitmap centerCrop(Bitmap recycled, Bitmap toCrop, int width, int height) [all...] |
| /external/iputils/ |
| ping_common.h | 100 bitmap_t bitmap[MAX_DUP_CHK / (sizeof(bitmap_t) * 8)]; member in struct:rcvd_table 106 #define A(bit) (rcvd_tbl.bitmap[(bit) >> BITMAP_SHIFT]) /* identify word in array */
|
| /external/mesa3d/src/mesa/state_tracker/ |
| st_program.h | 92 GLuint bitmap:1; /**< glBitmap variant? */ member in struct:st_fp_variant_key
|
| /external/pdfium/fpdfsdk/ |
| fpdfannot_embeddertest.cpp | 40 FPDF_BITMAP bitmap = RenderPageWithFlags(page, form_handle(), FPDF_ANNOT); local 41 CompareBitmap(bitmap, 612, 792, "dc98f06da047bd8aabfa99562d2cbd1e"); 42 FPDFBitmap_Destroy(bitmap); 339 FPDF_BITMAP bitmap = RenderPageWithFlags(page, form_handle_, FPDF_ANNOT); local 340 CompareBitmap(bitmap, 612, 792, md5_original); 341 FPDFBitmap_Destroy(bitmap); 374 bitmap = RenderPageWithFlags(page, form_handle_, FPDF_ANNOT); 375 CompareBitmap(bitmap, 612, 792, md5_original); 376 FPDFBitmap_Destroy(bitmap); 396 bitmap = RenderPageWithFlags(page, form_handle_, FPDF_ANNOT) 512 FPDF_BITMAP bitmap = RenderPageWithFlags(page, form_handle_, FPDF_ANNOT); local 626 FPDF_BITMAP bitmap = RenderPageWithFlags(page, form_handle_, FPDF_ANNOT); local 687 FPDF_BITMAP bitmap = RenderPageWithFlags(page, form_handle_, FPDF_ANNOT); local 760 FPDF_BITMAP bitmap = RenderPageWithFlags(page, form_handle_, FPDF_ANNOT); local [all...] |
| fpdfview_embeddertest.cpp | 395 FPDF_BITMAP bitmap = FPDFBitmap_Create(bitmap_width, bitmap_height, 0); local 396 FPDFBitmap_FillRect(bitmap, 0, 0, bitmap_width, bitmap_height, 0xFFFFFFFF); 397 FPDF_RenderPageBitmapWithMatrix(bitmap, page, &matrix, &rect, 0); 398 CompareBitmap(bitmap, bitmap_width, bitmap_height, expected_md5); 399 FPDFBitmap_Destroy(bitmap); 428 FPDF_BITMAP bitmap = RenderPage(page); local 429 CompareBitmap(bitmap, page_width, page_height, kOriginalMD5); 430 FPDFBitmap_Destroy(bitmap); 459 // Try a 90 degree rotation clockwise but with the same bitmap size, so part 488 // Tests rendering to a larger bitmap [all...] |
| /external/python/cpython2/Lib/msilib/ |
| __init__.py | 463 def bitmap(self, name, x, y, w, h, text): member in class:Dialog 464 return self.control(name, "Bitmap", x, y, w, h, 1, None, text, None, None)
|
| /external/python/cpython3/Lib/msilib/ |
| __init__.py | 467 def bitmap(self, name, x, y, w, h, text): member in class:Dialog 468 return self.control(name, "Bitmap", x, y, w, h, 1, None, text, None, None)
|
| /external/robolectric/v1/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/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
| ShadowMediaMetadataRetrieverTest.java | 13 import android.graphics.Bitmap; 31 private final Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888); field in class:ShadowMediaMetadataRetrieverTest 32 private final Bitmap bitmap2 = Bitmap.createBitmap(11, 11, Bitmap.Config.ARGB_8888); 49 addFrame(path, 1, bitmap); 53 assertThat(retriever.getFrameAtTime(1)).isEqualTo(bitmap); [all...] |
| /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
| ShadowDrawable.java | 6 import android.graphics.Bitmap; 48 BitmapDrawable drawable = new BitmapDrawable(ReflectionHelpers.callConstructor(Bitmap.class)); 65 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts); 89 BitmapDrawable drawable = new BitmapDrawable(ReflectionHelpers.callConstructor(Bitmap.class)); 96 Bitmap bitmap = ReflectionHelpers.callConstructor(Bitmap.class); local 97 shadowOf(bitmap).createdFromResId = resourceId; 98 BitmapDrawable drawable = new BitmapDrawable(bitmap);
|
| ShadowResources.java | 15 import android.graphics.Bitmap; 279 Bitmap bitmap = ((BitmapDrawable) drawable).getBitmap(); local 280 if (bitmap != null && Shadow.extract(bitmap) instanceof ShadowBitmap) { 281 ShadowBitmap shadowBitmap = shadowOf(bitmap);
|
| /external/selinux/libsepol/src/ |
| mls.c | 559 ebitmap_t bitmap; local 581 ebitmap_init(&bitmap); 594 rc = ebitmap_set_bit(&bitmap, 601 c->range.level[l].cat = bitmap;
|
| /external/skia/bench/ |
| BitmapBench.cpp | 29 const bool fForceUpdate; //bitmap marked as dirty before each draw. forces bitmap to be updated on device cache 50 fName.set("bitmap"); 88 const SkBitmap& bitmap = fBitmap; variable 89 const SkScalar x0 = SkIntToScalar(-bitmap.width() / 2); 90 const SkScalar y0 = SkIntToScalar(-bitmap.height() / 2); 97 bitmap.notifyPixelsChanged(); 99 canvas->drawBitmap(bitmap, x, y, &paint);
|
| /external/skia/fuzz/ |
| fuzz.cpp | 217 static void dump_png(SkBitmap bitmap) { 219 sk_tool_utils::EncodeImageToFile(FLAGS_dump[0], bitmap, SkEncodedImageFormat::kPNG, 100); 260 SkBitmap bitmap; local 264 if (!bitmap.tryAllocPixelsFlags(decodeInfo, SkBitmap::kZeroPixels_AllocFlag)) { 272 switch (codec->getPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), &options)) { 298 void* dst = bitmap.getAddr(0, 0); 299 size_t rowBytes = bitmap.rowBytes(); 338 codec->getScanlines(bitmap.getAddr(0, startY), linesToRead, bitmap.rowBytes()) 496 SkBitmap bitmap; local 516 SkBitmap bitmap; local [all...] |
| /external/skia/samplecode/ |
| SampleColorFilter.cpp | 87 SkBitmap bitmap; local 88 bitmap.allocN32Pixels(n, n); 89 bitmap.eraseColor(SK_ColorTRANSPARENT); 91 SkCanvas canvas(bitmap); 107 return bitmap;
|
| SamplePath.cpp | 65 SkBitmap bitmap; local 66 bitmap.allocN32Pixels(300, 200); 68 SkCanvas canvas(bitmap);
|
| SampleRegion.cpp | 24 SkBitmap bitmap; local 25 bitmap.allocPixels(SkImageInfo::MakeA8(width*2, height*2)); 26 bitmap.eraseColor(SK_ColorTRANSPARENT); 37 SkCanvas c(bitmap); 47 canvas->drawBitmap(bitmap, 0, 0, nullptr); 52 canvas->drawBitmap(bitmap, SkIntToScalar(2*width), 0, nullptr);
|
| /external/skia/src/core/ |
| SkPixmap.cpp | 262 SkBitmap bitmap; local 263 if (!bitmap.installPixels(src)) { 266 bitmap.setImmutable(); // Don't copy when we create an image. 267 bitmap.setIsVolatile(true); // Disable any caching. 274 sk_sp<SkShader> shader = SkImageShader::Make(SkImage::MakeFromBitmap(bitmap),
|
| /external/skia/src/image/ |
| SkImage_Raster.cpp | 238 SkBitmap bitmap; local 239 if (!bitmap.tryAllocPixels(info)) { 243 void* dst = bitmap.getPixels(); 250 SkRectMemcpy(dst, bitmap.rowBytes(), src, fBitmap.rowBytes(), bitmap.rowBytes(), 253 bitmap.setImmutable(); 254 return MakeFromBitmap(bitmap); 326 bool SkImage_Raster::onAsLegacyBitmap(SkBitmap* bitmap) const { 327 // When we're a snapshot from a surface, our bitmap may not be marked immutable 333 bitmap->setInfo(fBitmap.info(), fBitmap.rowBytes()) [all...] |
| /external/skia/src/pdf/ |
| SkPDFBitmap.cpp | 96 // Clamp the range to the edge of the bitmap. 162 static void bitmap_to_pdf_pixels(const SkBitmap& bitmap, SkWStream* out) { 163 if (!bitmap.getPixels()) { 164 size_t size = pixel_count(bitmap) * 165 pdf_color_component_count(bitmap.colorType()); 170 const SkBitmap& bm = supported_colortype(bitmap, ©); 238 static void bitmap_alpha_to_a8(const SkBitmap& bitmap, SkWStream* out) { 239 if (!bitmap.getPixels()) { 240 fill_stream(out, '\xFF', pixel_count(bitmap)); 244 const SkBitmap& bm = supported_colortype(bitmap, ©) 283 SkBitmap bitmap; local [all...] |
| SkPDFShader.cpp | 46 // in pattern cell space (no scaling on the bitmap, though there may be 60 // For tiling modes, the bounds should be extended to include the bitmap, 61 // otherwise the bitmap gets clipped out and the shader is empty and awful. 63 // or not the main bitmap is in it. 79 // Translate the canvas so that the bitmap origin is at (0, 0). 85 // If the bitmap is out of bounds (i.e. clamp mode where we only see the 121 SkBitmap bitmap; local 125 // to just make a bitmap from the image. 126 if (!SkPDFUtils::ToBitmap(image, &bitmap)) { 127 bitmap.allocN32Pixels(image->width(), image->height()) [all...] |
| SkPDFUtils.cpp | 367 SkBitmap bitmap; local 368 if(as_IB(img)->getROPixels(&bitmap, nullptr)) { 369 SkASSERT(bitmap.dimensions() == img->dimensions()); 370 SkASSERT(!bitmap.drawsNothing()); 371 *dst = std::move(bitmap);
|
| /external/skia/src/utils/ |
| SkCanvasStateUtils.cpp | 198 // we currently only work for bitmap backed devices 267 SkBitmap bitmap; local 277 bitmap.installPixels(SkImageInfo::Make(layerState.width, layerState.height, 281 SkASSERT(!bitmap.empty()); 282 SkASSERT(!bitmap.isNull()); 284 std::unique_ptr<SkCanvas> canvas(new SkCanvas(bitmap));
|
| /external/skia/tests/ |
| BlendTest.cpp | 185 // Read the result into a bitmap. 186 SkBitmap bitmap; local 187 REPORTER_ASSERT(reporter, bitmap.tryAllocPixels(SkImageInfo::Make( 191 surface->readPixels(bitmap.info(), bitmap.getPixels(), bitmap.rowBytes(), 0, 0)); 194 REPORTER_ASSERT(reporter, bitmap.getColor(outPoint.x(), outPoint.y()) == 196 REPORTER_ASSERT(reporter, bitmap.getColor(inPoint.x(), inPoint.y()) ==
|