/external/libjpeg-turbo/ |
D | tjexampletest.in | 38 basename=`basename $image .bmp` 39 …$EXEDIR/cjpeg -quality 95 -dct fast -grayscale $IMGDIR/${basename}.bmp >$OUTDIR/${basename}_GRAY_f… 40 …$EXEDIR/cjpeg -quality 95 -dct fast -sample 2x2 $IMGDIR/${basename}.bmp >$OUTDIR/${basename}_420_f… 41 …$EXEDIR/cjpeg -quality 95 -dct fast -sample 2x1 $IMGDIR/${basename}.bmp >$OUTDIR/${basename}_422_f… 42 …$EXEDIR/cjpeg -quality 95 -dct fast -sample 1x1 $IMGDIR/${basename}.bmp >$OUTDIR/${basename}_444_f… 43 …$EXEDIR/cjpeg -quality 95 -dct int -grayscale $IMGDIR/${basename}.bmp >$OUTDIR/${basename}_GRAY_ac… 44 …$EXEDIR/cjpeg -quality 95 -dct int -sample 2x2 $IMGDIR/${basename}.bmp >$OUTDIR/${basename}_420_ac… 45 …$EXEDIR/cjpeg -quality 95 -dct int -sample 2x1 $IMGDIR/${basename}.bmp >$OUTDIR/${basename}_422_ac… 46 …$EXEDIR/cjpeg -quality 95 -dct int -sample 1x1 $IMGDIR/${basename}.bmp >$OUTDIR/${basename}_444_ac… 48 …$EXEDIR/djpeg -rgb -bmp $OUTDIR/${basename}_${samp}_fast_cjpeg.jpg >$OUTDIR/${basename}_${samp}_de… [all …]
|
D | tjbenchtest.java.in | 67 basename=`basename $image .bmp` 68 …ty 95 -dct fast -grayscale -outfile $OUTDIR/${basename}_GRAY_fast_cjpeg.jpg $IMGDIR/${basename}.bmp 69 …ty 95 -dct fast -sample 2x2 -outfile $OUTDIR/${basename}_420_fast_cjpeg.jpg $IMGDIR/${basename}.bmp 70 …ty 95 -dct fast -sample 2x1 -outfile $OUTDIR/${basename}_422_fast_cjpeg.jpg $IMGDIR/${basename}.bmp 71 …ty 95 -dct fast -sample 1x1 -outfile $OUTDIR/${basename}_444_fast_cjpeg.jpg $IMGDIR/${basename}.bmp 72 …95 -dct int -grayscale -outfile $OUTDIR/${basename}_GRAY_accurate_cjpeg.jpg $IMGDIR/${basename}.bmp 73 …95 -dct int -sample 2x2 -outfile $OUTDIR/${basename}_420_accurate_cjpeg.jpg $IMGDIR/${basename}.bmp 74 …95 -dct int -sample 2x1 -outfile $OUTDIR/${basename}_422_accurate_cjpeg.jpg $IMGDIR/${basename}.bmp 75 …95 -dct int -sample 1x1 -outfile $OUTDIR/${basename}_444_accurate_cjpeg.jpg $IMGDIR/${basename}.bmp 77 …runme $EXEDIR/djpeg -rgb -bmp -outfile $OUTDIR/${basename}_${samp}_default_djpeg.bmp $OUTDIR/${bas… [all …]
|
D | Makefile.am | 97 tjbench_SOURCES = tjbench.c bmp.h bmp.c tjutil.h tjutil.c rdbmp.c rdppm.c \ 377 ./djpeg -dct int -rgb565 -dither none -bmp -outfile testout_rgb_islow_565.bmp testout_rgb_islow.jpg 378 md5/md5cmp $(MD5_BMP_RGB_ISLOW_565) testout_rgb_islow_565.bmp 379 rm testout_rgb_islow_565.bmp 381 ./djpeg -dct int -rgb565 -bmp -outfile testout_rgb_islow_565D.bmp testout_rgb_islow.jpg 382 md5/md5cmp $(MD5_BMP_RGB_ISLOW_565D) testout_rgb_islow_565D.bmp 383 rm testout_rgb_islow_565D.bmp testout_rgb_islow.jpg 401 …./djpeg -dct int -nosmooth -rgb565 -dither none -bmp -outfile testout_422m_ifast_565.bmp testout_4… 402 md5/md5cmp $(MD5_BMP_422M_IFAST_565) testout_422m_ifast_565.bmp 403 rm testout_422m_ifast_565.bmp [all …]
|
D | CMakeLists.txt | 262 add_executable(tjbench tjbench.c bmp.c tjutil.c rdbmp.c rdppm.c wrbmp.c 282 add_executable(tjbench-static tjbench.c bmp.c tjutil.c rdbmp.c rdppm.c 493 ${dir}djpeg${suffix} -dct int -rgb565 -dither none -bmp 494 -outfile testout_rgb_islow_565.bmp testout_rgb_islow.jpg) 497 -DFILE=testout_rgb_islow_565.bmp 501 ${dir}djpeg${suffix} -dct int -rgb565 -bmp 502 -outfile testout_rgb_islow_565D.bmp testout_rgb_islow.jpg) 505 -DFILE=testout_rgb_islow_565D.bmp 535 ${dir}djpeg${suffix} -dct int -nosmooth -rgb565 -dither none -bmp 536 -outfile testout_422m_ifast_565.bmp testout_422_ifast_opt.jpg) [all …]
|
/external/chromium-trace/catapult/telemetry/telemetry/util/ |
D | image_util_unittest.py | 25 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 = image_util.FromRGBPixels(4, 3, pixels) [all …]
|
D | color_histogram_unittest.py | 56 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_color=rgba_color.RgbaColor(0, 1, 2), tolerance=1) 111 bmp = image_util.FromRGBPixels(2, 2, pixels) 114 bmp, ignore_color=rgba_color.RgbaColor(1, 2, 3)) [all …]
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/ |
D | bitmaptools.cc | 169 bool Histogram(const Bitmap& bmp) { in Histogram() argument 180 for (const unsigned char* row = bmp.data; row < bmp.data + bmp.total_size; in Histogram() 181 row += bmp.row_stride) { in Histogram() 182 for (const unsigned char* pixel = row; pixel < row + bmp.row_size; in Histogram() 183 pixel += bmp.pixel_stride) { in Histogram() 198 bool BoundingBox(const Bitmap& bmp) { in BoundingBox() argument 207 box.left = bmp.total_size; in BoundingBox() 208 box.top = bmp.total_size; in BoundingBox() 214 for (const unsigned char* row = bmp.data; row < bmp.data + bmp.total_size; in BoundingBox() 215 row += bmp.row_stride, ++y) { in BoundingBox() [all …]
|
D | video.py | 53 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, argument 81 content_box, pixel_count = image_util.GetBoundingBox(bmp, color,
|
/external/skia/bench/ |
D | WritePixelsBench.cpp | 53 SkBitmap bmp; in onDraw() local 54 bmp.allocN32Pixels(size.width(), size.height()); in onDraw() 55 canvas->readPixels(&bmp, 0, 0); in onDraw() 57 SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), fColorType, fAlphaType); in onDraw() 60 canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0); in onDraw()
|
D | nanobenchAndroid.cpp | 49 bool HWUITarget::capturePixels(SkBitmap* bmp) { in capturePixels() argument 50 return this->renderer.capturePixels(bmp); in capturePixels()
|
/external/opencv3/modules/java/generator/src/java/ |
D | android+Utils.java | 88 public static void bitmapToMat(Bitmap bmp, Mat mat, boolean unPremultiplyAlpha) { in bitmapToMat() argument 89 if (bmp == null) in bitmapToMat() 93 nBitmapToMat2(bmp, mat.nativeObj, unPremultiplyAlpha); in bitmapToMat() 101 public static void bitmapToMat(Bitmap bmp, Mat mat) { in bitmapToMat() argument 102 bitmapToMat(bmp, mat, false); in bitmapToMat() 118 public static void matToBitmap(Mat mat, Bitmap bmp, boolean premultiplyAlpha) { in matToBitmap() argument 121 if (bmp == null) in matToBitmap() 123 nMatToBitmap2(mat.nativeObj, bmp, premultiplyAlpha); in matToBitmap() 131 public static void matToBitmap(Mat mat, Bitmap bmp) { in matToBitmap() argument 132 matToBitmap(mat, bmp, false); in matToBitmap()
|
/external/skia/tests/ |
D | ReadPixelsTest.cpp | 98 static SkBitmap bmp; in make_src_bitmap() local 99 if (bmp.isNull()) { in make_src_bitmap() 100 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap() 101 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels()); in make_src_bitmap() 104 …SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixe… in make_src_bitmap() 109 return bmp; in make_src_bitmap() 124 SkBitmap bmp = make_src_bitmap(); in fill_src_texture() local 125 bmp.lockPixels(); in fill_src_texture() 126 texture->writePixels(0, 0, DEV_W, DEV_H, kSkia8888_GrPixelConfig, bmp.getPixels(), in fill_src_texture() 127 bmp.rowBytes()); in fill_src_texture() [all …]
|
D | ShaderOpacityTest.cpp | 16 SkBitmap bmp; in test_bitmap() local 17 bmp.setInfo(info); in test_bitmap() 20 SkShader* shader = SkShader::CreateBitmapShader(bmp, in test_bitmap() 27 bmp.allocPixels(info); in test_bitmap() 30 shader = SkShader::CreateBitmapShader(bmp, in test_bitmap() 37 bmp.setAlphaType(kOpaque_SkAlphaType); in test_bitmap() 38 shader = SkShader::CreateBitmapShader(bmp, in test_bitmap() 45 bmp.setAlphaType(kPremul_SkAlphaType); in test_bitmap() 46 shader = SkShader::CreateBitmapShader(bmp, in test_bitmap()
|
D | PremulAlphaRoundTripTest.cpp | 51 SkBitmap bmp; in fillCanvas() local 52 bmp.allocN32Pixels(256, 256); in fillCanvas() 55 uint32_t* pixels = bmp.getAddr32(0, a); in fillCanvas() 61 const SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), in fillCanvas() 63 canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0); in fillCanvas()
|
D | WritePixelsTest.cpp | 113 SkBitmap bmp; in fill_canvas() local 114 if (bmp.isNull()) { in fill_canvas() 115 bmp.allocN32Pixels(DEV_W, DEV_H); in fill_canvas() 118 *bmp.getAddr32(x, y) = get_canvas_color(x, y); in fill_canvas() 127 canvas->drawBitmap(bmp, 0, 0, &paint); in fill_canvas() 371 SkBitmap bmp; in test_write_pixels() local 372 REPORTER_ASSERT(reporter, setup_bitmap(&bmp, ct, at, rect.width(), in test_write_pixels() 377 canvas.writePixels(bmp, rect.fLeft, rect.fTop); in test_write_pixels() 380 REPORTER_ASSERT(reporter, check_write(reporter, &canvas, bmp, in test_write_pixels() 386 bmp.width(), bmp.height()); in test_write_pixels()
|
/external/skia/tools/skiaserve/ |
D | Request.cpp | 52 SkBitmap* bmp = new SkBitmap(); in getBitmapFromCanvas() local 55 bmp->setInfo(info); in getBitmapFromCanvas() 56 if (!canvas->readPixels(bmp, 0, 0)) { in getBitmapFromCanvas() 60 return bmp; in getBitmapFromCanvas() 65 SkAutoTDelete<SkBitmap> bmp(getBitmapFromCanvas(canvas)); in writeCanvasToPng() local 66 SkASSERT(bmp); in writeCanvasToPng() 70 write_png((const png_bytep) bmp->getPixels(), bmp->width(), bmp->height(), buffer); in writeCanvasToPng()
|
/external/libjpeg-turbo/cmakescripts/ |
D | testclean.cmake | 3 *_GRAY_*.bmp 8 *_420_*.bmp 13 *_422_*.bmp 18 *_444_*.bmp 23 *_440_*.bmp
|
/external/skia/gm/ |
D | tallstretchedbitmaps.cpp | 82 SkBitmap bmp = fTallBmps[i].fBmp; in onDraw() local 85 int itemHeight = bmp.height() / fTallBmps[i].fItemCnt; in onDraw() 87 bmp.width(), bmp.height()); in onDraw() 88 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(bmp.width()), 10.f * itemHeight); in onDraw() 91 canvas->drawBitmapRect(bmp, subRect, dstRect, &paint); in onDraw() 92 canvas->translate(SkIntToScalar(bmp.width() + 10), 0); in onDraw()
|
D | clippedbitmapshaders.cpp | 29 SkBitmap bmp; in create_bitmap() local 30 bmp.allocN32Pixels(2, 2); in create_bitmap() 31 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels()); in create_bitmap() 37 return bmp; in create_bitmap() 80 SkBitmap bmp = create_bitmap(); in onDraw() local 86 bmp, fMode, fMode, &s); in onDraw()
|
D | bigmatrix.cpp | 46 SkBitmap bmp; variable 47 bmp.allocN32Pixels(2, 2); 48 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels()); 59 bmp,
|
D | gm.cpp | 74 SkBitmap bmp; in DrawGpuOnlyMessage() local 75 bmp.allocN32Pixels(128, 64); in DrawGpuOnlyMessage() 76 SkCanvas bmpCanvas(bmp); in DrawGpuOnlyMessage() 88 SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(bmp, SkShader::kMirror_TileMode, in DrawGpuOnlyMessage()
|
D | shadertext2.cpp | 72 static SkBitmap bmp; variable 73 if (bmp.isNull()) { 74 makebm(&bmp, kPointSize / 2, kPointSize / 2); 105 canvas->drawBitmap(bmp, 0, 0); 106 canvas->translate(0, bmp.height() + labelPaint.getTextSize() + 15.f); 140 SkShader::CreateBitmapShader(bmp,
|
D | modecolorfilters.cpp | 40 SkBitmap bmp; in make_bg_shader() local 41 bmp.allocN32Pixels(2 * checkSize, 2 * checkSize); in make_bg_shader() 42 SkCanvas canvas(bmp); in make_bg_shader() 52 return new SkBitmapProcShader(bmp, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode); in make_bg_shader()
|
D | rectangletexture.cpp | 38 SkBitmap bmp; in fillPixels() local 39 bmp.setInfo(SkImageInfo::MakeN32(width, height, kOpaque_SkAlphaType), width * 4); in fillPixels() 40 bmp.setPixels(pixels); in fillPixels() 42 SkCanvas canvas(bmp); in fillPixels()
|
/external/skia/src/gpu/ |
D | GrImageIDTextureAdjuster.cpp | 20 GrBitmapTextureAdjuster::GrBitmapTextureAdjuster(const SkBitmap* bmp) in GrBitmapTextureAdjuster() argument 21 : INHERITED(bmp->getTexture(), in GrBitmapTextureAdjuster() 22 SkIRect::MakeWH(bmp->width(), bmp->height()), in GrBitmapTextureAdjuster() 23 bmp_is_alpha_only(*bmp)) in GrBitmapTextureAdjuster() 24 , fBmp(bmp) {} in GrBitmapTextureAdjuster()
|