Home
last modified time | relevance | path

Searched refs:img2 (Results 1 – 25 of 38) sorted by relevance

12

/external/libaom/libaom/examples/
Dencoder_util.c24 const aom_image_t *const img2, int plane, in find_mismatch_plane() argument
28 const unsigned char *const p2 = img2->planes[plane]; in find_mismatch_plane()
29 const int p2_stride = img2->stride[plane] >> use_highbitdepth; in find_mismatch_plane()
40 assert(img1->d_w == img2->d_w && img1->d_h == img2->d_h); in find_mismatch_plane()
41 assert(img1->x_chroma_shift == img2->x_chroma_shift && in find_mismatch_plane()
42 img1->y_chroma_shift == img2->y_chroma_shift); in find_mismatch_plane()
44 if (img1->monochrome && img2->monochrome && plane) return; in find_mismatch_plane()
81 const aom_image_t *const img2, in find_mismatch_helper() argument
84 find_mismatch_plane(img1, img2, AOM_PLANE_Y, use_highbitdepth, yloc); in find_mismatch_helper()
85 find_mismatch_plane(img1, img2, AOM_PLANE_U, use_highbitdepth, uloc); in find_mismatch_helper()
[all …]
Dencoder_util.h22 const aom_image_t *const img2, int yloc[4],
26 const aom_image_t *const img2, int yloc[4], int uloc[4],
31 const aom_image_t *const img2);
/external/libvpx/libvpx/examples/
Dvp9cx_set_ref.c72 const vpx_image_t *const img2) { in compare_img() argument
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()
86 img2->planes[VPX_PLANE_Y] + i * img2->stride[VPX_PLANE_Y], in compare_img()
91 img2->planes[VPX_PLANE_U] + i * img2->stride[VPX_PLANE_U], in compare_img()
96 img2->planes[VPX_PLANE_V] + i * img2->stride[VPX_PLANE_V], in compare_img()
104 const vpx_image_t *const img2, int yloc[4], in find_mismatch() argument
125 *(img2->planes[VPX_PLANE_Y] + in find_mismatch()
126 (i + k) * img2->stride[VPX_PLANE_Y] + j + l)) { in find_mismatch()
[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()
36 img2->planes[VPX_PLANE_Y][i * img2->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()
139 img2->planes[VPX_PLANE_Y] + i * img2->stride[VPX_PLANE_Y], in compare_img()
147 img2->planes[VPX_PLANE_U] + i * img2->stride[VPX_PLANE_U], in compare_img()
153 img2->planes[VPX_PLANE_V] + i * img2->stride[VPX_PLANE_V], in compare_img()
Derror_resilience_test.cc146 virtual void MismatchHook(const vpx_image_t *img1, const vpx_image_t *img2) { in MismatchHook() argument
147 double mismatch_psnr = compute_psnr(img1, img2); in MismatchHook()
/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()
37 img2->planes[AOM_PLANE_Y][i * img2->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()
146 img2->planes[plane], img2->stride[plane], 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/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()
157 CONVERT_TO_SHORTPTR(img2 + j), stride_img2, bd, 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 …]
Dssim.h65 double vpx_get_ssim_metrics(uint8_t *img1, int img1_pitch, uint8_t *img2,
/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()
156 CONVERT_TO_SHORTPTR(img2 + j), stride_img2, bd, 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 …]
Dssim.h67 double aom_get_ssim_metrics(uint8_t *img1, int img1_pitch, uint8_t *img2,
/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
122 pixels2 = rgba_map.get(img2, img2.convert('L').getdata())
/external/libvpx/libvpx/vp9/encoder/
Dvp9_blockiness.c117 const uint8_t *img2, int img2_pitch, int width, 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.h19 const uint8_t *img2, int img2_pitch, int width,
/external/libaom/libaom/av1/encoder/
Dblockiness.c124 const unsigned char *img2, int img2_pitch, int width, 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/libvpx/libvpx/
Dvpxenc.c618 const vpx_image_t *const img2, int yloc[4], in find_mismatch_high() argument
633 plane2 = (uint16_t *)img2->planes[VPX_PLANE_Y]; in find_mismatch_high()
635 stride2 = img2->stride[VPX_PLANE_Y] / 2; in find_mismatch_high()
659 plane2 = (uint16_t *)img2->planes[VPX_PLANE_U]; in find_mismatch_high()
661 stride2 = img2->stride[VPX_PLANE_U] / 2; in find_mismatch_high()
685 plane2 = (uint16_t *)img2->planes[VPX_PLANE_V]; in find_mismatch_high()
687 stride2 = img2->stride[VPX_PLANE_V] / 2; in find_mismatch_high()
712 const vpx_image_t *const img2, int yloc[4], in find_mismatch() argument
733 *(img2->planes[VPX_PLANE_Y] + in find_mismatch()
734 (i + k) * img2->stride[VPX_PLANE_Y] + j + l)) { in find_mismatch()
[all …]
/external/tensorflow/tensorflow/python/ops/
Dimage_ops_impl.py2706 def _verify_compatible_image_shapes(img1, img2): argument
2724 shape2 = img2.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
2901 shape1, shape2 = array_ops.shape_n([img1, img2])
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)
2994 img2 = convert_image_dtype(img2, dtypes.float32)
2995 ssim_per_channel, _ = _ssim_per_channel(img1, img2, max_val)
[all …]
Dimage_ops_test.py4491 img2 = 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})
4594 img2 = self._RandomImage((10, 8, 8, 1), 255)
4596 img2 = constant_op.constant(img2, dtypes.uint8)
4597 psnr_uint8 = image_ops.psnr(img1, img2, 255)
4599 img2 = image_ops.convert_image_dtype(img2, dtypes.float32)
4600 psnr_float32 = image_ops.psnr(img1, img2, 1.0)
4650 img1, img2 = zip(*itertools.combinations(img, 2))
4652 img2 = np.concatenate(img2)
[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()
308 CONVERT_TO_SHORTPTR(img2 + j), stride_img2, bd); in highbd_ssim2()
/external/python/cpython2/Demo/tkinter/ttk/
Droundframe.py49 img2 = Tkinter.PhotoImage("frameBorder", data=""" variable
/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;
590 …(img1.subresource.aspectMask == img2.subresource.aspectMask && img1.subresource.mipLevel == img2.s…
591 img1.subresource.arrayLayer == img2.subresource.arrayLayer);
/external/deqp-deps/glslang/Test/
DspecExamples.vert138 layout(rgba32f) coherent uniform image2D img2;
170 funcB(img2); // illegal, stripping "coherent" is not

12