Searched refs:bmp (Results 1 - 25 of 100) sorted by relevance

1234

/external/skia/bench/
H A DWritePixelsBench.cpp53 SkBitmap bmp; variable
54 bmp.allocN32Pixels(size.width(), size.height());
55 canvas->readPixels(&bmp, 0, 0);
57 SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), fColorType, fAlphaType);
60 canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0);
H A DnanobenchAndroid.cpp49 bool HWUITarget::capturePixels(SkBitmap* bmp) { argument
50 return this->renderer.capturePixels(bmp);
H A DnanobenchAndroid.h29 bool capturePixels(SkBitmap* bmp) override;
H A Dnanobench.h76 virtual bool capturePixels(SkBitmap* bmp);
/external/libjpeg-turbo/
H A Dtjexampletest.in22 IMAGES="vgl_5674_0098.bmp vgl_6434_0018a.bmp vgl_6548_0026a.bmp nightshot_iso_100.bmp"
38 basename=`basename $image .bmp`
39 $EXEDIR/cjpeg -quality 95 -dct fast -grayscale $IMGDIR/${basename}.bmp >$OUTDIR/${basename}_GRAY_fast_cjpeg.jpg
40 $EXEDIR/cjpeg -quality 95 -dct fast -sample 2x2 $IMGDIR/${basename}.bmp >$OUTDIR/${basename}_420_fast_cjpeg.jpg
41 $EXEDIR/cjpeg -quality 95 -dct fast -sample 2x1 $IMGDIR/${basename}.bmp >$OUTDIR/${basename}_422_fast_cjpeg.jpg
42 $EXEDIR/cjpeg -quality 95 -dct fast -sample 1x1 $IMGDIR/${basename}.bmp >$OUTDIR/${basename}_444_fast_cjpeg.jpg
43 $EXEDIR/cjpeg -quality 95 -dct int -grayscale $IMGDIR/${basename}.bmp >
[all...]
H A Dtjbenchtest.java.in22 IMAGES="vgl_5674_0098.bmp vgl_6434_0018a.bmp vgl_6548_0026a.bmp nightshot_iso_100.bmp"
59 IMAGES="vgl_6548_0026a.bmp"
67 basename=`basename $image .bmp`
68 runme $EXEDIR/cjpeg -quality 95 -dct fast -grayscale -outfile $OUTDIR/${basename}_GRAY_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
69 runme $EXEDIR/cjpeg -quality 95 -dct fast -sample 2x2 -outfile $OUTDIR/${basename}_420_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
70 runme $EXEDIR/cjpeg -quality 95 -dct fast -sample 2x1 -outfile $OUTDIR/${basename}_422_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
71 runme $EXEDIR/cjpeg -quality 95 -dct fast -sample 1x1 -outfile $OUTDIR/${basename}_444_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
[all...]
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/
H A Dbitmaptools.cc169 bool Histogram(const Bitmap& bmp) { argument
180 for (const unsigned char* row = bmp.data; row < bmp.data + bmp.total_size;
181 row += bmp.row_stride) {
182 for (const unsigned char* pixel = row; pixel < row + bmp.row_size;
183 pixel += bmp.pixel_stride) {
198 bool BoundingBox(const Bitmap& bmp) { argument
207 box.left = bmp.total_size;
208 box.top = bmp
233 Bitmap bmp; local
[all...]
H A Dvideo.py53 for _, bmp in frame_generator:
55 bmp, HIGHLIGHT_ORANGE_FRAME)
65 for timestamp, bmp in frame_generator:
66 if not self._FindHighlightBoundingBox(bmp, HIGHLIGHT_ORANGE_FRAME):
67 yield 0, image_util.Crop(bmp, *content_box)
71 for timestamp, bmp in frame_generator:
72 yield timestamp - start_time, image_util.Crop(bmp, *content_box)
74 def _FindHighlightBoundingBox(self, bmp, color, bounds_tolerance=8,
81 content_box, pixel_count = image_util.GetBoundingBox(bmp, color,
H A Dvideo_unittest.py46 timestamp, bmp = timestamp_bitmap
50 self.assertTrue(image_util.AreEqual(expected_bitmap, bmp))
/external/chromium-trace/catapult/telemetry/telemetry/util/
H A Dcolor_histogram_unittest.py56 bmp = image_util.FromRGBPixels(4, 3, pixels)
57 bmp = image_util.Crop(bmp, 1, 1, 2, 2)
59 hist = image_util.GetColorHistogram(bmp)
62 image_util.Width(bmp) * image_util.Height(bmp))
76 bmp = image_util.FromRGBPixels(4, 3, pixels)
79 bmp, ignore_color=rgba_color.RgbaColor(1, 2, 3))
92 bmp = image_util.FromRGBPixels(2, 2, pixels)
95 bmp, ignore_colo
[all...]
H A Dimage_util_unittest.py25 bmp = image_util.FromBase64Png(test_png)
27 self.assertEquals(2, image_util.Width(bmp))
28 self.assertEquals(2, image_util.Height(bmp))
30 image_util.GetPixelColor(bmp, 0, 0).AssertIsRGB(255, 0, 0)
31 image_util.GetPixelColor(bmp, 1, 1).AssertIsRGB(0, 255, 0)
32 image_util.GetPixelColor(bmp, 0, 1).AssertIsRGB(0, 0, 255)
33 image_util.GetPixelColor(bmp, 1, 0).AssertIsRGB(255, 255, 0)
70 bmp = image_util.FromBase64Png(test_png)
72 self.assertTrue(image_util.AreEqual(bmp, file_bmp, likely_equal=True))
108 bmp
[all...]
/external/skia/gm/
H A Dtallstretchedbitmaps.cpp82 SkBitmap bmp = fTallBmps[i].fBmp; variable
85 int itemHeight = bmp.height() / fTallBmps[i].fItemCnt;
87 bmp.width(), bmp.height());
88 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(bmp.width()), 10.f * itemHeight);
91 canvas->drawBitmapRect(bmp, subRect, dstRect, &paint);
92 canvas->translate(SkIntToScalar(bmp.width() + 10), 0);
H A Dclippedbitmapshaders.cpp29 SkBitmap bmp; local
30 bmp.allocN32Pixels(2, 2);
31 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels());
37 return bmp;
80 SkBitmap bmp = create_bitmap(); local
86 bmp, fMode, fMode, &s);
H A Dbigmatrix.cpp46 SkBitmap bmp; local
47 bmp.allocN32Pixels(2, 2);
48 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels());
59 bmp,
H A Dgm.cpp74 SkBitmap bmp; local
75 bmp.allocN32Pixels(128, 64);
76 SkCanvas bmpCanvas(bmp);
88 SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(bmp, SkShader::kMirror_TileMode,
H A Dmodecolorfilters.cpp40 SkBitmap bmp; local
41 bmp.allocN32Pixels(2 * checkSize, 2 * checkSize);
42 SkCanvas canvas(bmp);
52 return new SkBitmapProcShader(bmp, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);
/external/opencv3/modules/java/generator/src/java/
H A Dandroid+Utils.java84 * @param bmp is a valid input Bitmap object of the type 'ARGB_8888' or 'RGB_565'.
88 public static void bitmapToMat(Bitmap bmp, Mat mat, boolean unPremultiplyAlpha) { argument
89 if (bmp == null)
90 throw new java.lang.IllegalArgumentException("bmp == null");
93 nBitmapToMat2(bmp, mat.nativeObj, unPremultiplyAlpha);
97 * Short form of the bitmapToMat(bmp, mat, unPremultiplyAlpha=false).
98 * @param bmp is a valid input Bitmap object of the type 'ARGB_8888' or 'RGB_565'.
101 public static void bitmapToMat(Bitmap bmp, Mat mat) { argument
102 bitmapToMat(bmp, mat, false);
115 * @param bmp i
118 matToBitmap(Mat mat, Bitmap bmp, boolean premultiplyAlpha) argument
131 matToBitmap(Mat mat, Bitmap bmp) argument
[all...]
/external/skia/tests/
H A DShaderOpacityTest.cpp16 SkBitmap bmp; local
17 bmp.setInfo(info);
20 SkShader* shader = SkShader::CreateBitmapShader(bmp,
27 bmp.allocPixels(info);
30 shader = SkShader::CreateBitmapShader(bmp,
37 bmp.setAlphaType(kOpaque_SkAlphaType);
38 shader = SkShader::CreateBitmapShader(bmp,
45 bmp.setAlphaType(kPremul_SkAlphaType);
46 shader = SkShader::CreateBitmapShader(bmp,
H A DPremulAlphaRoundTripTest.cpp51 SkBitmap bmp; local
52 bmp.allocN32Pixels(256, 256);
55 uint32_t* pixels = bmp.getAddr32(0, a);
61 const SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(),
63 canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0);
H A DReadPixelsTest.cpp98 static SkBitmap bmp; local
99 if (bmp.isNull()) {
100 bmp.allocN32Pixels(DEV_W, DEV_H);
101 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels());
104 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel());
109 return bmp;
124 SkBitmap bmp = make_src_bitmap(); local
125 bmp.lockPixels();
126 texture->writePixels(0, 0, DEV_W, DEV_H, kSkia8888_GrPixelConfig, bmp
335 SkBitmap bmp; local
414 SkBitmap bmp; local
[all...]
H A DWritePixelsTest.cpp113 SkBitmap bmp; local
114 if (bmp.isNull()) {
115 bmp.allocN32Pixels(DEV_W, DEV_H);
118 *bmp.getAddr32(x, y) = get_canvas_color(x, y);
127 canvas->drawBitmap(bmp, 0, 0, &paint);
371 SkBitmap bmp; local
372 REPORTER_ASSERT(reporter, setup_bitmap(&bmp, ct, at, rect.width(),
376 // sk_tool_utils::write_pixels(&canvas, bmp, rect.fLeft, rect.fTop, ct, at);
377 canvas.writePixels(bmp, rect.fLeft, rect.fTop);
380 REPORTER_ASSERT(reporter, check_write(reporter, &canvas, bmp,
[all...]
/external/skia/tools/skiaserve/
H A DRequest.cpp52 SkBitmap* bmp = new SkBitmap(); local
55 bmp->setInfo(info);
56 if (!canvas->readPixels(bmp, 0, 0)) {
60 return bmp;
65 SkAutoTDelete<SkBitmap> bmp(getBitmapFromCanvas(canvas));
66 SkASSERT(bmp);
70 write_png((const png_bytep) bmp->getPixels(), bmp->width(), bmp->height(), buffer);
/external/skia/src/gpu/
H A DGrImageIDTextureAdjuster.cpp20 GrBitmapTextureAdjuster::GrBitmapTextureAdjuster(const SkBitmap* bmp) argument
21 : INHERITED(bmp->getTexture(),
22 SkIRect::MakeWH(bmp->width(), bmp->height()),
23 bmp_is_alpha_only(*bmp))
24 , fBmp(bmp) {}
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/widget/
H A DDemoAppWidgetProvider.java80 Bitmap bmp = plot.getDrawingCache();
83 rv.setBitmap(R.id.imgView, "setImageBitmap", bmp);
/external/vboot_reference/firmware/lib/
H A Dregion-kernel.c33 if (!cparams->bmp) {
58 cparams->bmp = hdr;
61 *hdr_ret = *cparams->bmp;

Completed in 5338 milliseconds

1234