Home
last modified time | relevance | path

Searched refs:bmp (Results 1 – 25 of 112) sorted by relevance

12345

/external/libjpeg-turbo/
Dtjexampletest.in38 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 …]
Dtjbenchtest.java.in67 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 …]
DMakefile.am97 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 …]
DCMakeLists.txt262 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/
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 = image_util.FromRGBPixels(4, 3, pixels)
[all …]
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_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/
Dbitmaptools.cc169 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 …]
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, argument
81 content_box, pixel_count = image_util.GetBoundingBox(bmp, color,
/external/skia/bench/
DWritePixelsBench.cpp53 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()
DnanobenchAndroid.cpp49 bool HWUITarget::capturePixels(SkBitmap* bmp) { in capturePixels() argument
50 return this->renderer.capturePixels(bmp); in capturePixels()
/external/skia/tests/
DReadPixelsTest.cpp98 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 …]
DShaderOpacityTest.cpp16 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()
DPremulAlphaRoundTripTest.cpp51 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()
DWritePixelsTest.cpp113 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/
DRequest.cpp52 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/
Dtestclean.cmake3 *_GRAY_*.bmp
8 *_420_*.bmp
13 *_422_*.bmp
18 *_444_*.bmp
23 *_440_*.bmp
/external/skia/gm/
Dtallstretchedbitmaps.cpp82 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()
Dclippedbitmapshaders.cpp29 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()
Dbigmatrix.cpp46 SkBitmap bmp; variable
47 bmp.allocN32Pixels(2, 2);
48 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels());
59 bmp,
Dgm.cpp74 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()
Dshadertext2.cpp72 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,
Dmodecolorfilters.cpp40 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()
Drectangletexture.cpp38 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/
DGrImageIDTextureAdjuster.cpp20 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()
/external/libvncserver/test/
DMakefile.am8 tjutil.c tjutil.h bmp.c bmp.h

12345