Home
last modified time | relevance | path

Searched refs:img1 (Results 1 – 25 of 47) sorted by relevance

12

/external/libaom/libaom/examples/
Dencoder_util.c23 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 …]
Dencoder_util.h21 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/examples/
Dvp9cx_set_ref.c71 static int compare_img(const vpx_image_t *const img1, in compare_img() argument
73 uint32_t l_w = img1->d_w; in compare_img()
74 uint32_t c_w = (img1->d_w + img1->x_chroma_shift) >> img1->x_chroma_shift; in compare_img()
76 (img1->d_h + img1->y_chroma_shift) >> img1->y_chroma_shift; in compare_img()
80 match &= (img1->fmt == img2->fmt); in compare_img()
81 match &= (img1->d_w == img2->d_w); in compare_img()
82 match &= (img1->d_h == img2->d_h); in compare_img()
84 for (i = 0; i < img1->d_h; ++i) in compare_img()
85 match &= (memcmp(img1->planes[VPX_PLANE_Y] + i * img1->stride[VPX_PLANE_Y], in compare_img()
90 match &= (memcmp(img1->planes[VPX_PLANE_U] + i * img1->stride[VPX_PLANE_U], in compare_img()
[all …]
/external/libvpx/libvpx/test/
Dutil.h24 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()
Dencode_test_driver.cc128 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/
Dutil.h25 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()
Dencode_test_driver.cc131 static bool compare_img(const aom_image_t *img1, const aom_image_t *img2, in compare_img() argument
135 if (img1->fmt != img2->fmt || img1->cp != img2->cp || img1->tc != img2->tc || in compare_img()
136 img1->mc != img2->mc || img1->d_w != img2->d_w || in compare_img()
137 img1->d_h != img2->d_h || img1->monochrome != img2->monochrome) { in compare_img()
143 const int num_planes = img1->monochrome ? 1 : 3; in compare_img()
145 if (!compare_plane(img1->planes[plane], img1->stride[plane], in compare_img()
147 aom_img_plane_width(img1, plane), in compare_img()
148 aom_img_plane_height(img1, plane), mismatch_row, in compare_img()
Derror_resilience_test.cc204 virtual void MismatchHook(const aom_image_t *img1, const aom_image_t *img2) { in MismatchHook() argument
206 double mismatch_psnr = compute_psnr(img1, img2); in MismatchHook()
211 ::libaom_test::EncoderTest::MismatchHook(img1, img2); in MismatchHook()
/external/skqp/gm/
Dencode-alpha-jpeg.cpp60 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()
Dcgm.c69 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/
Dencode-alpha-jpeg.cpp62 auto img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw() local
64 canvas->drawImage(img1, 0.0f, 100.0f); in onDraw()
70 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw()
72 canvas->drawImage(img1, 100.0f, 100.0f); in onDraw()
79 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw()
81 canvas->drawImage(img1, 200.0f, 100.0f); in onDraw()
87 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack); in onDraw()
89 canvas->drawImage(img1, 300.0f, 100.0f); in onDraw()
Dcgm.c69 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/libvpx/libvpx/
Dvpxenc.c617 static void find_mismatch_high(const vpx_image_t *const img1, in find_mismatch_high() argument
623 const uint32_t bsizey = bsize >> img1->y_chroma_shift; in find_mismatch_high()
624 const uint32_t bsizex = bsize >> img1->x_chroma_shift; in find_mismatch_high()
626 (img1->d_w + img1->x_chroma_shift) >> img1->x_chroma_shift; in find_mismatch_high()
628 (img1->d_h + img1->y_chroma_shift) >> img1->y_chroma_shift; in find_mismatch_high()
632 plane1 = (uint16_t *)img1->planes[VPX_PLANE_Y]; in find_mismatch_high()
634 stride1 = img1->stride[VPX_PLANE_Y] / 2; in find_mismatch_high()
636 for (i = 0, match = 1; match && i < img1->d_h; i += bsize) { in find_mismatch_high()
637 for (j = 0; match && j < img1->d_w; j += bsize) { in find_mismatch_high()
639 const int si = mmin(i + bsize, img1->d_h) - i; in find_mismatch_high()
[all …]
/external/noto-fonts/scripts/
Dcolor_emoji_image_diff.py115 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/libvpx/libvpx/vpx_dsp/
Dssim.c124 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/libaom/libaom/aom_dsp/
Dssim.c124 static double aom_ssim2(const uint8_t *img1, const uint8_t *img2, in aom_ssim2() argument
133 i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) { in aom_ssim2()
135 double v = ssim_8x8(img1 + j, stride_img1, img2 + j, stride_img2); in aom_ssim2()
144 static double aom_highbd_ssim2(const uint8_t *img1, const uint8_t *img2, in aom_highbd_ssim2() argument
153 i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) { in aom_highbd_ssim2()
155 double v = highbd_ssim_8x8(CONVERT_TO_SHORTPTR(img1 + j), stride_img1, in aom_highbd_ssim2()
256 static void ssimv_parms(uint8_t *img1, int img1_pitch, uint8_t *img2, in ssimv_parms() argument
258 aom_ssim_parms_8x8(img1, img1_pitch, img2, img2_pitch, &sv->sum_s, &sv->sum_r, in ssimv_parms()
262 double aom_get_ssim_metrics(uint8_t *img1, int img1_pitch, uint8_t *img2, in aom_get_ssim_metrics() argument
276 i += 4, img1 += img1_pitch * 4, img2 += img2_pitch * 4) { in aom_get_ssim_metrics()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_blockiness.c116 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()
Dvp9_blockiness.h18 double vp9_get_blockiness(const uint8_t *img1, int img1_pitch,
/external/libaom/libaom/av1/encoder/
Dblockiness.c123 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/clang/test/CodeGenOpenCL/
Dkernel-arg-info.cl17 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/python/cpython2/Demo/tix/samples/
DCmpImg.py150 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/tensorflow/tensorflow/python/ops/
Dimage_ops_impl.py2706 def _verify_compatible_image_shapes(img1, img2): argument
2723 shape1 = img1.get_shape().with_rank_at_least(3)
2735 shape1, shape2 = array_ops.shape_n([img1, img2])
2876 def _ssim_per_channel(img1, img2, max_val=1.0): argument
2899 filter_sigma = constant_op.constant(1.5, dtype=img1.dtype)
2901 shape1, shape2 = array_ops.shape_n([img1, img2])
2910 img1 = array_ops.identity(img1)
2930 luminance, cs = _ssim_helper(img1, img2, reducer, max_val, compensation)
2940 def ssim(img1, img2, max_val): argument
2985 _, _, checks = _verify_compatible_image_shapes(img1, img2)
[all …]
Dimage_ops_test.py4490 img1 = array_ops.placeholder(dtype=dtypes.float32)
4497 _, _, checks = image_ops_impl._verify_compatible_image_shapes(img1, img2)
4499 sess.run(checks, {img1: img1_np, img2: img2_np})
4593 img1 = self._RandomImage((10, 8, 8, 1), 255)
4595 img1 = constant_op.constant(img1, dtypes.uint8)
4597 psnr_uint8 = image_ops.psnr(img1, img2, 255)
4598 img1 = image_ops.convert_image_dtype(img1, dtypes.float32)
4600 psnr_float32 = image_ops.psnr(img1, img2, 1.0)
4650 img1, img2 = zip(*itertools.combinations(img, 2))
4651 img1 = np.concatenate(img1)
[all …]
/external/libvpx/libvpx/tools/
Dtiny_ssim.c275 static double ssim2(const uint8_t *img1, const uint8_t *img2, int stride_img1, in ssim2() argument
283 i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) { in ssim2()
285 double v = ssim_8x8(img1 + j, stride_img1, img2 + j, stride_img2); in ssim2()
295 static double highbd_ssim2(const uint8_t *img1, const uint8_t *img2, in highbd_ssim2() argument
304 i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) { in highbd_ssim2()
307 highbd_ssim_8x8(CONVERT_TO_SHORTPTR(img1 + j), stride_img1, in highbd_ssim2()
/external/vulkan-validation-layers/layers/
Dcore_validation_types.h587 inline bool operator==(const ImageSubresourcePair &img1, const ImageSubresourcePair &img2) {
588 if (img1.image != img2.image || img1.hasSubresource != img2.hasSubresource) return false;
589 return !img1.hasSubresource ||
590 …(img1.subresource.aspectMask == img2.subresource.aspectMask && img1.subresource.mipLevel == img2.s…
591 img1.subresource.arrayLayer == img2.subresource.arrayLayer);

12