/external/libvpx/libvpx/examples/ |
D | vp9cx_set_ref.c | 71 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/ |
D | util.h | 22 inline double compute_psnr(const vpx_image_t *img1, const vpx_image_t *img2) { in compute_psnr() argument 23 assert((img1->fmt == img2->fmt) && (img1->d_w == img2->d_w) && in compute_psnr() 24 (img1->d_h == img2->d_h)); in compute_psnr() 26 const unsigned int width_y = img1->d_w; in compute_psnr() 27 const unsigned int height_y = img1->d_h; in compute_psnr() 33 int64_t d = img1->planes[VPX_PLANE_Y][i * img1->stride[VPX_PLANE_Y] + j] - in compute_psnr()
|
D | encode_test_driver.cc | 127 static bool compare_img(const vpx_image_t *img1, const vpx_image_t *img2) { in compare_img() argument 128 bool match = (img1->fmt == img2->fmt) && (img1->cs == img2->cs) && in compare_img() 129 (img1->d_w == img2->d_w) && (img1->d_h == img2->d_h); in compare_img() 131 const unsigned int width_y = img1->d_w; in compare_img() 132 const unsigned int height_y = img1->d_h; in compare_img() 135 match = (memcmp(img1->planes[VPX_PLANE_Y] + i * img1->stride[VPX_PLANE_Y], in compare_img() 140 const unsigned int width_uv = (img1->d_w + 1) >> 1; in compare_img() 141 const unsigned int height_uv = (img1->d_h + 1) >> 1; in compare_img() 143 match = (memcmp(img1->planes[VPX_PLANE_U] + i * img1->stride[VPX_PLANE_U], in compare_img() 149 match = (memcmp(img1->planes[VPX_PLANE_V] + i * img1->stride[VPX_PLANE_V], in compare_img()
|
D | error_resilience_test.cc | 146 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()
|
D | blockiness_test.cc | 29 extern "C" double vp9_get_blockiness(const unsigned char *img1, int img1_pitch,
|
D | consistency_test.cc | 29 extern "C" double vpx_get_ssim_metrics(uint8_t *img1, int img1_pitch,
|
D | encode_test_driver.h | 243 virtual void MismatchHook(const vpx_image_t *img1, const vpx_image_t *img2);
|
D | resize_test.cc | 461 virtual void MismatchHook(const vpx_image_t *img1, const vpx_image_t *img2) { in MismatchHook() argument 462 double mismatch_psnr = compute_psnr(img1, img2); in MismatchHook()
|
/external/skqp/gm/ |
D | encode-alpha-jpeg.cpp | 61 sk_sp<SkImage> img1 = encode_pixmap_and_make_image(src, 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() 73 canvas->drawImage(img1, 100.0f, 100.0f); in onDraw() 81 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack, in onDraw() 84 canvas->drawImage(img1, 200.0f, 100.0f); in onDraw() 90 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack, in onDraw() 93 canvas->drawImage(img1, 300.0f, 100.0f); in onDraw()
|
D | cgm.c | 68 sk_image_t* img1 = sk_image_new_from_encoded(data, NULL); in sk_test_c_api() local 71 if (img1) { in sk_test_c_api() 72 sk_canvas_draw_image(canvas, img1, W/2, H/2, NULL); in sk_test_c_api() 73 sk_image_unref(img1); in sk_test_c_api()
|
/external/skia/gm/ |
D | encode-alpha-jpeg.cpp | 62 sk_sp<SkImage> img1 = encode_pixmap_and_make_image(src, in onDraw() local 65 canvas->drawImage(img1, 0.0f, 100.0f); in onDraw() 71 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack, in onDraw() 74 canvas->drawImage(img1, 100.0f, 100.0f); in onDraw() 82 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack, in onDraw() 85 canvas->drawImage(img1, 200.0f, 100.0f); in onDraw() 91 img1 = encode_pixmap_and_make_image(src, SkJpegEncoder::AlphaOption::kBlendOnBlack, in onDraw() 94 canvas->drawImage(img1, 300.0f, 100.0f); in onDraw()
|
D | cgm.c | 68 sk_image_t* img1 = sk_image_new_from_encoded(data, NULL); in sk_test_c_api() local 71 if (img1) { in sk_test_c_api() 72 sk_canvas_draw_image(canvas, img1, W/2, H/2, NULL); in sk_test_c_api() 73 sk_image_unref(img1); in sk_test_c_api()
|
/external/libvpx/libvpx/ |
D | vpxenc.c | 609 static void find_mismatch_high(const vpx_image_t *const img1, in find_mismatch_high() argument 615 const uint32_t bsizey = bsize >> img1->y_chroma_shift; in find_mismatch_high() 616 const uint32_t bsizex = bsize >> img1->x_chroma_shift; in find_mismatch_high() 618 (img1->d_w + img1->x_chroma_shift) >> img1->x_chroma_shift; in find_mismatch_high() 620 (img1->d_h + img1->y_chroma_shift) >> img1->y_chroma_shift; in find_mismatch_high() 624 plane1 = (uint16_t *)img1->planes[VPX_PLANE_Y]; in find_mismatch_high() 626 stride1 = img1->stride[VPX_PLANE_Y] / 2; in find_mismatch_high() 628 for (i = 0, match = 1; match && i < img1->d_h; i += bsize) { in find_mismatch_high() 629 for (j = 0; match && j < img1->d_w; j += bsize) { in find_mismatch_high() 631 const int si = mmin(i + bsize, img1->d_h) - i; in find_mismatch_high() [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 …]
|
D | ssim.h | 65 double vpx_get_ssim_metrics(uint8_t *img1, int img1_pitch, uint8_t *img2,
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_blockiness.c | 115 double vp9_get_blockiness(const uint8_t *img1, int img1_pitch, in vp9_get_blockiness() argument 122 i += 4, img1 += img1_pitch * 4, img2 += img2_pitch * 4) { in vp9_get_blockiness() 126 blockiness_vertical(img1 + j, img1_pitch, img2 + j, img2_pitch, 4); in vp9_get_blockiness() 127 blockiness += blockiness_horizontal(img1 + j, img1_pitch, img2 + j, in vp9_get_blockiness()
|
/external/skqp/tests/ |
D | PipeTest.cpp | 75 auto img1 = deserializer.readImage(data.get()); in DEF_TEST() local 76 REPORTER_ASSERT(reporter, deep_equal(img.get(), img1.get())); in DEF_TEST() 83 REPORTER_ASSERT(reporter, img1.get() == img2.get()); in DEF_TEST() 97 auto img1 = deserializer.readImage(data.get()); in DEF_TEST() local 104 REPORTER_ASSERT(reporter, img1.get() == img2.get()); in DEF_TEST()
|
D | TextBlobTest.cpp | 460 sk_sp<SkImage> img1 = render(blob1.get()); in DEF_TEST() local 461 if (img0 && img1) { in DEF_TEST() 462 REPORTER_ASSERT(reporter, sk_tool_utils::equal_pixels(img0.get(), img1.get())); in DEF_TEST()
|
/external/skia/tests/ |
D | PipeTest.cpp | 75 auto img1 = deserializer.readImage(data.get()); in DEF_TEST() local 76 REPORTER_ASSERT(reporter, deep_equal(img.get(), img1.get())); in DEF_TEST() 83 REPORTER_ASSERT(reporter, img1.get() == img2.get()); in DEF_TEST() 97 auto img1 = deserializer.readImage(data.get()); in DEF_TEST() local 104 REPORTER_ASSERT(reporter, img1.get() == img2.get()); in DEF_TEST()
|
D | TextBlobTest.cpp | 460 sk_sp<SkImage> img1 = render(blob1.get()); in DEF_TEST() local 461 if (img0 && img1) { in DEF_TEST() 462 REPORTER_ASSERT(reporter, sk_tool_utils::equal_pixels(img0.get(), img1.get())); in DEF_TEST()
|
/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/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/libvpx/libvpx/tools/ |
D | tiny_ssim.c | 260 static double ssim2(const uint8_t *img1, const uint8_t *img2, int stride_img1, in ssim2() argument 268 i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) { in ssim2() 270 double v = ssim_8x8(img1 + j, stride_img1, img2 + j, stride_img2); in ssim2() 279 static double highbd_ssim2(const uint8_t *img1, const uint8_t *img2, in highbd_ssim2() argument 288 i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) { in highbd_ssim2() 290 double v = highbd_ssim_8x8(CONVERT_TO_SHORTPTR(img1 + j), stride_img1, in highbd_ssim2() 377 static void ssimv_parms(uint8_t *img1, int img1_pitch, uint8_t *img2, in ssimv_parms() argument 379 ssim_parms_8x8(img1, img1_pitch, img2, img2_pitch, &sv->sum_s, &sv->sum_r, in ssimv_parms() 383 double get_ssim_metrics(uint8_t *img1, int img1_pitch, uint8_t *img2, in get_ssim_metrics() argument 397 i += 4, img1 += img1_pitch * 4, img2 += img2_pitch * 4) { in get_ssim_metrics() [all …]
|
/external/vulkan-validation-layers/layers/ |
D | core_validation_types.h | 516 inline bool operator==(const ImageSubresourcePair &img1, const ImageSubresourcePair &img2) { 517 if (img1.image != img2.image || img1.hasSubresource != img2.hasSubresource) return false; 518 return !img1.hasSubresource || 519 …(img1.subresource.aspectMask == img2.subresource.aspectMask && img1.subresource.mipLevel == img2.s… 520 img1.subresource.arrayLayer == img2.subresource.arrayLayer);
|
/external/python/cpython2/Demo/tkinter/ttk/ |
D | roundframe.py | 9 img1 = Tkinter.PhotoImage("frameFocusBorder", data=""" variable
|