Home
last modified time | relevance | path

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

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
Dutil.h22 static double compute_psnr(const vpx_image_t *img1, in compute_psnr() argument
24 assert((img1->fmt == img2->fmt) && in compute_psnr()
25 (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.cc107 static bool compare_img(const vpx_image_t *img1, in compare_img() argument
109 bool match = (img1->fmt == img2->fmt) && in compare_img()
110 (img1->d_w == img2->d_w) && in compare_img()
111 (img1->d_h == img2->d_h); in compare_img()
113 const unsigned int width_y = img1->d_w; in compare_img()
114 const unsigned int height_y = img1->d_h; in compare_img()
117 match = (memcmp(img1->planes[VPX_PLANE_Y] + i * img1->stride[VPX_PLANE_Y], in compare_img()
120 const unsigned int width_uv = (img1->d_w + 1) >> 1; in compare_img()
121 const unsigned int height_uv = (img1->d_h + 1) >> 1; in compare_img()
123 match = (memcmp(img1->planes[VPX_PLANE_U] + i * img1->stride[VPX_PLANE_U], in compare_img()
[all …]
Derror_resilience_test.cc104 virtual void MismatchHook(const vpx_image_t *img1, in MismatchHook() argument
106 double mismatch_psnr = compute_psnr(img1, img2); in MismatchHook()
Dencode_test_driver.h217 virtual void MismatchHook(const vpx_image_t *img1,
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/
Dvpxenc.c469 static void find_mismatch(const vpx_image_t *const img1, in find_mismatch() argument
473 const uint32_t bsizey = bsize >> img1->y_chroma_shift; in find_mismatch()
474 const uint32_t bsizex = bsize >> img1->x_chroma_shift; in find_mismatch()
476 (img1->d_w + img1->x_chroma_shift) >> img1->x_chroma_shift; in find_mismatch()
478 (img1->d_h + img1->y_chroma_shift) >> img1->y_chroma_shift; in find_mismatch()
482 for (i = 0, match = 1; match && i < img1->d_h; i += bsize) { in find_mismatch()
483 for (j = 0; match && j < img1->d_w; j += bsize) { in find_mismatch()
485 const int si = mmin(i + bsize, img1->d_h) - i; in find_mismatch()
486 const int sj = mmin(j + bsize, img1->d_w) - j; in find_mismatch()
489 if (*(img1->planes[VPX_PLANE_Y] + in find_mismatch()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_ssim.c78 double vp9_ssim2(uint8_t *img1, uint8_t *img2, int stride_img1, in vp9_ssim2() argument
86 i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) { in vp9_ssim2()
88 double v = ssim_8x8(img1 + j, stride_img1, img2 + j, stride_img2); in vp9_ssim2()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
Dssim.c149 unsigned char *img1, in vp8_ssim2() argument
162 for(i=0; i < height-8; i+=4, img1 += stride_img1*4, img2 += stride_img2*4) in vp8_ssim2()
166 double v = ssim_8x8(img1+j, stride_img1, img2+j, stride_img2); in vp8_ssim2()