/external/libaom/libaom/examples/ |
D | encoder_util.c | 23 static void find_mismatch_plane(const aom_image_t *const img1, in find_mismatch_plane() argument 26 const unsigned char *const p1 = img1->planes[plane]; in find_mismatch_plane() 27 const int p1_stride = img1->stride[plane] >> use_highbitdepth; in find_mismatch_plane() 32 const uint32_t bsizex = is_y_plane ? bsize : bsize >> img1->x_chroma_shift; in find_mismatch_plane() 33 const uint32_t bsizey = is_y_plane ? bsize : bsize >> img1->y_chroma_shift; in find_mismatch_plane() 35 is_y_plane ? img1->d_w in find_mismatch_plane() 36 : (img1->d_w + img1->x_chroma_shift) >> img1->x_chroma_shift; in find_mismatch_plane() 38 is_y_plane ? img1->d_h in find_mismatch_plane() 39 : (img1->d_h + img1->y_chroma_shift) >> img1->y_chroma_shift; in find_mismatch_plane() 40 assert(img1->d_w == img2->d_w && img1->d_h == img2->d_h); in find_mismatch_plane() [all …]
|
D | encoder_util.h | 21 void aom_find_mismatch_high(const aom_image_t *const img1, 25 void aom_find_mismatch(const aom_image_t *const img1, 30 int aom_compare_img(const aom_image_t *const img1,
|
/external/libvpx/libvpx/ |
D | tools_common.c | 551 int compare_img(const vpx_image_t *const img1, const vpx_image_t *const img2) { in compare_img() argument 552 uint32_t l_w = img1->d_w; in compare_img() 553 uint32_t c_w = (img1->d_w + img1->x_chroma_shift) >> img1->x_chroma_shift; in compare_img() 555 (img1->d_h + img1->y_chroma_shift) >> img1->y_chroma_shift; in compare_img() 559 match &= (img1->fmt == img2->fmt); in compare_img() 560 match &= (img1->d_w == img2->d_w); in compare_img() 561 match &= (img1->d_h == img2->d_h); in compare_img() 563 if (img1->fmt & VPX_IMG_FMT_HIGHBITDEPTH) { in compare_img() 569 for (i = 0; i < img1->d_h; ++i) in compare_img() 570 match &= (memcmp(img1->planes[VPX_PLANE_Y] + i * img1->stride[VPX_PLANE_Y], in compare_img() [all …]
|
D | tools_common.h | 169 int compare_img(const vpx_image_t *const img1, const vpx_image_t *const img2); 171 void find_mismatch_high(const vpx_image_t *const img1, 175 void find_mismatch(const vpx_image_t *const img1, const vpx_image_t *const img2,
|
/external/libvpx/libvpx/test/ |
D | util.h | 24 inline double compute_psnr(const vpx_image_t *img1, const vpx_image_t *img2) { in compute_psnr() argument 25 assert((img1->fmt == img2->fmt) && (img1->d_w == img2->d_w) && in compute_psnr() 26 (img1->d_h == img2->d_h)); in compute_psnr() 28 const unsigned int width_y = img1->d_w; in compute_psnr() 29 const unsigned int height_y = img1->d_h; in compute_psnr() 35 int64_t d = img1->planes[VPX_PLANE_Y][i * img1->stride[VPX_PLANE_Y] + j] - in compute_psnr()
|
D | encode_test_driver.cc | 128 static bool compare_img(const vpx_image_t *img1, const vpx_image_t *img2) { in compare_img() argument 129 bool match = (img1->fmt == img2->fmt) && (img1->cs == img2->cs) && in compare_img() 130 (img1->d_w == img2->d_w) && (img1->d_h == img2->d_h); in compare_img() 134 const unsigned int width_y = img1->d_w; in compare_img() 135 const unsigned int height_y = img1->d_h; in compare_img() 138 match = (memcmp(img1->planes[VPX_PLANE_Y] + i * img1->stride[VPX_PLANE_Y], in compare_img() 143 const unsigned int width_uv = (img1->d_w + 1) >> 1; in compare_img() 144 const unsigned int height_uv = (img1->d_h + 1) >> 1; in compare_img() 146 match = (memcmp(img1->planes[VPX_PLANE_U] + i * img1->stride[VPX_PLANE_U], in compare_img() 152 match = (memcmp(img1->planes[VPX_PLANE_V] + i * img1->stride[VPX_PLANE_V], in compare_img()
|
/external/libaom/libaom/test/ |
D | util.h | 25 inline double compute_psnr(const aom_image_t *img1, const aom_image_t *img2) { in compute_psnr() argument 26 assert((img1->fmt == img2->fmt) && (img1->d_w == img2->d_w) && in compute_psnr() 27 (img1->d_h == img2->d_h)); in compute_psnr() 29 const unsigned int width_y = img1->d_w; in compute_psnr() 30 const unsigned int height_y = img1->d_h; in compute_psnr() 36 int64_t d = img1->planes[AOM_PLANE_Y][i * img1->stride[AOM_PLANE_Y] + j] - in compute_psnr()
|
D | encode_test_driver.cc | 135 static bool compare_img(const aom_image_t *img1, const aom_image_t *img2, in compare_img() argument 139 if (img1->fmt != img2->fmt || img1->cp != img2->cp || img1->tc != img2->tc || in compare_img() 140 img1->mc != img2->mc || img1->d_w != img2->d_w || in compare_img() 141 img1->d_h != img2->d_h || img1->monochrome != img2->monochrome) { in compare_img() 147 const int num_planes = img1->monochrome ? 1 : 3; in compare_img() 149 if (!compare_plane(img1->planes[plane], img1->stride[plane], in compare_img() 151 aom_img_plane_width(img1, plane), in compare_img() 152 aom_img_plane_height(img1, plane), mismatch_row, in compare_img()
|
/external/skqp/gm/ |
D | encode-alpha-jpeg.cpp | 60 auto img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw() local 62 canvas->drawImage(img1, 0.0f, 100.0f); in onDraw() 68 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw() 70 canvas->drawImage(img1, 100.0f, 100.0f); in onDraw() 78 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw() 80 canvas->drawImage(img1, 200.0f, 100.0f); in onDraw() 86 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw() 88 canvas->drawImage(img1, 300.0f, 100.0f); in onDraw()
|
D | cgm.c | 69 sk_image_t* img1 = sk_image_new_from_encoded(data, NULL); in sk_test_c_api() local 72 if (img1) { in sk_test_c_api() 73 sk_canvas_draw_image(canvas, img1, W/2, H/2, NULL); in sk_test_c_api() 74 sk_image_unref(img1); in sk_test_c_api()
|
/external/skia/gm/ |
D | encode_alpha_jpeg.cpp | 71 auto img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw() local 73 canvas->drawImage(img1, 0.0f, 100.0f); in onDraw() 79 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw() 81 canvas->drawImage(img1, 100.0f, 100.0f); in onDraw() 88 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw() 90 canvas->drawImage(img1, 200.0f, 100.0f); in onDraw() 96 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw() 98 canvas->drawImage(img1, 300.0f, 100.0f); in onDraw()
|
D | cgm.c | 73 sk_image_t* img1 = sk_image_new_from_encoded(data); in sk_test_c_api() local 76 if (img1) { in sk_test_c_api() 77 sk_canvas_draw_image(canvas, img1, W/2, H/2, NULL, NULL); in sk_test_c_api() 78 sk_image_unref(img1); in sk_test_c_api()
|
/external/noto-fonts/scripts/ |
D | color_emoji_image_diff.py | 115 def similar_img(img1, img2): argument 117 if img1 is None and img2 is None: return True 118 if img1 is None or img2 is None: return False 119 if not img1.size == img2.size: return False 121 pixels1 = rgba_map.get(img1, img1.convert('L').getdata()) 127 pixel_count = 1.0 * img1.size[0] * img1.size[1]
|
/external/libaom/libaom/aom_dsp/ |
D | ssim.c | 126 static double aom_ssim2(const uint8_t *img1, const uint8_t *img2, in aom_ssim2() argument 135 i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) { in aom_ssim2() 137 double v = ssim_8x8(img1 + j, stride_img1, img2 + j, stride_img2); in aom_ssim2() 146 static double aom_highbd_ssim2(const uint8_t *img1, const uint8_t *img2, in aom_highbd_ssim2() argument 155 i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) { in aom_highbd_ssim2() 157 double v = highbd_ssim_8x8(CONVERT_TO_SHORTPTR(img1 + j), stride_img1, in aom_highbd_ssim2() 258 static void ssimv_parms(uint8_t *img1, int img1_pitch, uint8_t *img2, in ssimv_parms() argument 260 aom_ssim_parms_8x8(img1, img1_pitch, img2, img2_pitch, &sv->sum_s, &sv->sum_r, in ssimv_parms() 264 double aom_get_ssim_metrics(uint8_t *img1, int img1_pitch, uint8_t *img2, in aom_get_ssim_metrics() argument 278 i += 4, img1 += img1_pitch * 4, img2 += img2_pitch * 4) { in aom_get_ssim_metrics() [all …]
|
/external/libvpx/libvpx/vpx_dsp/ |
D | ssim.c | 124 static double vpx_ssim2(const uint8_t *img1, const uint8_t *img2, in vpx_ssim2() argument 133 i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) { in vpx_ssim2() 135 double v = ssim_8x8(img1 + j, stride_img1, img2 + j, stride_img2); in vpx_ssim2() 145 static double vpx_highbd_ssim2(const uint8_t *img1, const uint8_t *img2, in vpx_highbd_ssim2() argument 154 i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) { in vpx_highbd_ssim2() 156 double v = highbd_ssim_8x8(CONVERT_TO_SHORTPTR(img1 + j), stride_img1, in vpx_highbd_ssim2() 265 static void ssimv_parms(uint8_t *img1, int img1_pitch, uint8_t *img2, in ssimv_parms() argument 267 vpx_ssim_parms_8x8(img1, img1_pitch, img2, img2_pitch, &sv->sum_s, &sv->sum_r, in ssimv_parms() 271 double vpx_get_ssim_metrics(uint8_t *img1, int img1_pitch, uint8_t *img2, in vpx_get_ssim_metrics() argument 285 i += 4, img1 += img1_pitch * 4, img2 += img2_pitch * 4) { in vpx_get_ssim_metrics() [all …]
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_blockiness.c | 116 double vp9_get_blockiness(const uint8_t *img1, int img1_pitch, in vp9_get_blockiness() argument 123 i += 4, img1 += img1_pitch * 4, img2 += img2_pitch * 4) { in vp9_get_blockiness() 127 blockiness_vertical(img1 + j, img1_pitch, img2 + j, img2_pitch, 4); in vp9_get_blockiness() 128 blockiness += blockiness_horizontal(img1 + j, img1_pitch, img2 + j, in vp9_get_blockiness()
|
/external/libaom/libaom/av1/encoder/ |
D | blockiness.c | 123 double av1_get_blockiness(const unsigned char *img1, int img1_pitch, in av1_get_blockiness() argument 130 i += 4, img1 += img1_pitch * 4, img2 += img2_pitch * 4) { in av1_get_blockiness() 134 blockiness_vertical(img1 + j, img1_pitch, img2 + j, img2_pitch, 4); in av1_get_blockiness() 135 blockiness += blockiness_horizontal(img1 + j, img1_pitch, img2 + j, in av1_get_blockiness()
|
/external/skia/docs/examples/ |
D | skbug_5648.cpp | 10 auto img1 = bitmap.asImage(); in draw() local 11 SkDebugf("%u\n%u\n", img0->uniqueID(), img1->uniqueID()); in draw()
|
/external/python/cpython2/Demo/tix/samples/ |
D | CmpImg.py | 150 w.img1 = Tix.Image('pixmap', data=hard_disk_pixmap) 152 w.img1 = Tix.Image('bitmap', data=hard_disk_bitmap) 168 w.hdd_img.tk.call(str(w.hdd_img), 'add', 'image', '-image', w.img1)
|
/external/clang/test/CodeGenOpenCL/ |
D | kernel-arg-info.cl | 17 kernel void foo2(read_only image1d_t img1, image2d_t img2, write_only image2d_array_t img3) { 52 kernel void foo5(myImage img1, write_only image1d_t img2) { 72 // ARGINFO: ![[MD25]] = !{!"img1", !"img2", !"img3"} 87 // ARGINFO: ![[MD54]] = !{!"img1", !"img2"}
|
/external/pdfium/core/fxcodec/jbig2/ |
D | JBig2_Image_unittest.cpp | 22 void CheckImageEq(CJBig2_Image* img1, CJBig2_Image* img2, int line) { in CheckImageEq() argument 23 EXPECT_EQ(img1->width(), img2->width()); in CheckImageEq() 24 EXPECT_EQ(img1->height(), img2->height()); in CheckImageEq() 25 for (int32_t y = 0; y < img1->height(); ++y) { in CheckImageEq() 26 for (int32_t x = 0; x < img1->width(); ++x) { in CheckImageEq() 27 EXPECT_EQ(img1->GetPixel(x, y), img2->GetPixel(x, y)) in CheckImageEq()
|
/external/tensorflow/tensorflow/python/ops/ |
D | image_ops_impl.py | 3980 def _verify_compatible_image_shapes(img1, img2): argument 3997 shape1 = img1.get_shape().with_rank_at_least(3) 4009 shape1, shape2 = array_ops.shape_n([img1, img2]) 4155 def _ssim_per_channel(img1, argument 4189 filter_sigma = constant_op.constant(filter_sigma, dtype=img1.dtype) 4191 shape1, shape2 = array_ops.shape_n([img1, img2]) 4207 img1 = array_ops.identity(img1) 4227 luminance, cs = _ssim_helper(img1, img2, reducer, max_val, compensation, k1, 4239 def ssim(img1, argument 4304 with ops.name_scope(None, 'SSIM', [img1, img2]): [all …]
|
/external/skia/tests/ |
D | MipMapTest.cpp | 233 auto img1 = img->withDefaultMipmaps(); in DEF_TEST() local 234 REPORTER_ASSERT(reporter, img.get() != img1.get()); in DEF_TEST() 235 REPORTER_ASSERT(reporter, img1->hasMipmaps()); in DEF_TEST() 242 REPORTER_ASSERT(reporter, img1.get() != img2.get()); in DEF_TEST()
|
/external/llvm-project/clang/test/CodeGenOpenCL/ |
D | kernel-arg-info.cl | 32 kernel void foo2(read_only image1d_t img1, image2d_t img2, write_only image2d_array_t img3, read_wr… 67 kernel void foo5(myImage img1, write_only image1d_t img2) { 106 // ARGINFO: ![[MD25]] = !{!"img1", !"img2", !"img3", !"img4"} 121 // ARGINFO: ![[MD54]] = !{!"img1", !"img2"}
|
/external/libvpx/libvpx/tools/ |
D | tiny_ssim.c | 272 static double ssim2(const uint8_t *img1, const uint8_t *img2, int stride_img1, in ssim2() argument 280 i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) { in ssim2() 282 double v = ssim_8x8(img1 + j, stride_img1, img2 + j, stride_img2); in ssim2() 292 static double highbd_ssim2(const uint8_t *img1, const uint8_t *img2, in highbd_ssim2() argument 301 i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) { in highbd_ssim2() 304 highbd_ssim_8x8(CONVERT_TO_SHORTPTR(img1 + j), stride_img1, in highbd_ssim2()
|