/external/libvpx/libvpx/vpx_dsp/ |
D | psnr.c | 19 const double psnr = 10.0 * log10(samples * peak * peak / sse); in vpx_sse_to_psnr() local 20 return psnr > MAX_PSNR ? MAX_PSNR : psnr; in vpx_sse_to_psnr() 202 const YV12_BUFFER_CONFIG *b, PSNR_STATS *psnr, in vpx_calc_highbd_psnr() argument 233 psnr->sse[1 + i] = sse; in vpx_calc_highbd_psnr() 234 psnr->samples[1 + i] = samples; in vpx_calc_highbd_psnr() 235 psnr->psnr[1 + i] = vpx_sse_to_psnr(samples, peak, (double)sse); in vpx_calc_highbd_psnr() 241 psnr->sse[0] = total_sse; in vpx_calc_highbd_psnr() 242 psnr->samples[0] = total_samples; in vpx_calc_highbd_psnr() 243 psnr->psnr[0] = in vpx_calc_highbd_psnr() 250 PSNR_STATS *psnr) { in vpx_calc_psnr() argument [all …]
|
D | psnr.h | 23 double psnr[4]; // total/y/u/v member 44 const YV12_BUFFER_CONFIG *b, PSNR_STATS *psnr, 48 PSNR_STATS *psnr);
|
/external/webrtc/webrtc/common_video/libyuv/ |
D | libyuv_unittest.cc | 142 double psnr = 0.0; in TEST_F() local 158 psnr = I420PSNR(&orig_frame_, &res_i420_frame); in TEST_F() 159 EXPECT_EQ(48.0, psnr); in TEST_F() 178 psnr = I420PSNR(&orig_frame_, &res_i420_frame); in TEST_F() 181 EXPECT_GT(ceil(psnr), 44); in TEST_F() 189 psnr = I420PSNR(&orig_frame_, &res_i420_frame); in TEST_F() 190 EXPECT_EQ(48.0, psnr); in TEST_F() 214 psnr = I420PSNR(&orig_frame_, &res_i420_frame); in TEST_F() 215 EXPECT_EQ(48.0, psnr); in TEST_F() 229 psnr = I420PSNR(&orig_frame_, &res_i420_frame); in TEST_F() [all …]
|
/external/libaom/libaom/aom_dsp/ |
D | psnr.c | 22 const double psnr = 10.0 * log10(samples * peak * peak / sse); in aom_sse_to_psnr() local 23 return psnr > MAX_PSNR ? MAX_PSNR : psnr; in aom_sse_to_psnr() 307 const YV12_BUFFER_CONFIG *b, PSNR_STATS *psnr, in aom_calc_highbd_psnr() argument 337 psnr->sse[1 + i] = sse; in aom_calc_highbd_psnr() 338 psnr->samples[1 + i] = samples; in aom_calc_highbd_psnr() 339 psnr->psnr[1 + i] = aom_sse_to_psnr(samples, peak, (double)sse); in aom_calc_highbd_psnr() 345 psnr->sse[0] = total_sse; in aom_calc_highbd_psnr() 346 psnr->samples[0] = total_samples; in aom_calc_highbd_psnr() 347 psnr->psnr[0] = in aom_calc_highbd_psnr() 352 PSNR_STATS *psnr) { in aom_calc_psnr() argument [all …]
|
D | psnr.h | 24 double psnr[4]; // total/y/u/v member 68 const YV12_BUFFER_CONFIG *b, PSNR_STATS *psnr, 71 PSNR_STATS *psnr);
|
/external/libyuv/files/util/ |
D | Makefile | 1 psnr: psnr.cc ssim.cc psnr_main.cc target 3 $(CXX) /arch:SSE2 /Ox /openmp psnr.cc ssim.cc psnr_main.cc 5 $(CXX) -msse2 -O3 -fopenmp -static -o psnr psnr.cc ssim.cc psnr_main.cc -Wl,--strip-all
|
/external/libaom/libaom/test/ |
D | horz_superres_test.cc | 111 psnr_ += pkt->data.psnr.psnr[0]; in PSNRPktHook() 148 const double psnr = GetAveragePsnr(); in DoTest() local 149 EXPECT_GT(psnr, test_video_param_.psnr_threshold) in DoTest() 216 psnr_ += pkt->data.psnr.psnr[0]; in PSNRPktHook() 253 const double psnr = GetAveragePsnr(); in DoTest() local 254 EXPECT_GT(psnr, test_video_param_.psnr_threshold) in DoTest() 327 psnr_ += pkt->data.psnr.psnr[0]; in PSNRPktHook() 364 const double psnr = GetAveragePsnr(); in DoTest() local 365 EXPECT_GT(psnr, test_video_param_.psnr_threshold) in DoTest()
|
D | hbd_metrics_test.cc | 41 PSNR_STATS psnr; in compute_hbd_psnr() local 42 aom_calc_highbd_psnr(source, dest, &psnr, bd, in_bd); in compute_hbd_psnr() 43 return psnr.psnr[0]; in compute_hbd_psnr() 48 PSNR_STATS psnr; in compute_psnr() local 49 aom_calc_psnr(source, dest, &psnr); in compute_psnr() 50 return psnr.psnr[0]; in compute_psnr()
|
D | lossless_test.cc | 58 if (pkt->data.psnr.psnr[0] < psnr_) psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
|
D | monochrome_test.cc | 77 frame0_psnr_y_ = pkt->data.psnr.psnr[1]; in PSNRPktHook() 80 EXPECT_NEAR(pkt->data.psnr.psnr[1], frame0_psnr_y_, 2.5); in PSNRPktHook()
|
D | rt_end_to_end_test.cc | 81 psnr_ += pkt->data.psnr.psnr[0]; in PSNRPktHook() 117 const double psnr = GetAveragePsnr(); in DoTest() local 118 EXPECT_GT(psnr, GetPsnrThreshold()) << "cpu used = " << cpu_used_; in DoTest()
|
D | util.h | 41 double psnr = 100.0; in compute_psnr() local 43 psnr = 10 * log10(255.0 * 255.0 / mse); in compute_psnr() 45 return psnr; in compute_psnr()
|
D | cpu_speed_test.cc | 61 if (pkt->data.psnr.psnr[0] < min_psnr_) min_psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
|
D | end_to_end_test.cc | 126 psnr_ += pkt->data.psnr.psnr[0]; in PSNRPktHook() 179 const double psnr = GetAveragePsnr(); in DoTest() local 180 EXPECT_GT(psnr, GetPsnrThreshold()) in DoTest()
|
D | encode_perf_test.cc | 103 if (pkt->data.psnr.psnr[0] < min_psnr_) { in PSNRPktHook() 104 min_psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
|
/external/libyuv/files/ |
D | linux.mk | 63 all: libyuv.a convert cpuid psnr 73 psnr: util/psnr.cc 74 $(CXX) $(CXXFLAGS) -Iutil/ -o $@ util/psnr.cc util/psnr_main.cc util/ssim.cc 83 /bin/rm -f source/*.o *.ii *.s libyuv.a convert cpuid psnr
|
/external/libvpx/libvpx/test/ |
D | vp9_lossless_test.cc | 56 if (pkt->data.psnr.psnr[0] < psnr_) psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
|
D | util.h | 41 double psnr = 100.0; in compute_psnr() local 43 psnr = 10 * log10(255.0 * 255.0 / mse); in compute_psnr() 45 return psnr; in compute_psnr()
|
D | cpu_speed_test.cc | 60 if (pkt->data.psnr.psnr[0] < min_psnr_) min_psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
|
D | vp9_end_to_end_test.cc | 154 psnr_ += pkt->data.psnr.psnr[0]; in PSNRPktHook() 261 const double psnr = GetAveragePsnr(); in TEST_P() local 262 EXPECT_GT(psnr, GetPsnrThreshold()); in TEST_P() 288 const double psnr = GetAveragePsnr(); in TEST_P() local 289 EXPECT_GT(psnr, GetPsnrThreshold()); in TEST_P()
|
D | encode_perf_test.cc | 102 if (pkt->data.psnr.psnr[0] < min_psnr_) { in PSNRPktHook() 103 min_psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
|
/external/libxcam/tests/ |
D | test-cl-image.cpp | 70 …(SmartPtr<VideoBuffer> &psnr_cur, SmartPtr<VideoBuffer> &psnr_ref, PsnrType psnr_type, float &psnr) in calculate_psnr() argument 108 psnr = 10 * log10 (255 * 255 / mse); in calculate_psnr() 558 float psnr = 0.0f; in main() local 559 ret = calculate_psnr (psnr_cur, psnr_ref, PSNRY, psnr); in main() 561 XCAM_LOG_INFO ("PSNR_Y: %.2f", psnr); in main() 575 ret = calculate_psnr (psnr_cur_output, psnr_ref_output, PSNRR, psnr); in main() 577 XCAM_LOG_INFO ("PSNR_R: %.2f", psnr); in main() 579 ret = calculate_psnr (psnr_cur_output, psnr_ref_output, PSNRG, psnr); in main() 581 XCAM_LOG_INFO ("PSNR_G: %.2f", psnr); in main() 583 ret = calculate_psnr (psnr_cur_output, psnr_ref_output, PSNRB, psnr); in main() [all …]
|
/external/libvpx/libvpx/tools/ |
D | tiny_ssim.c | 80 double psnr; in mse2psnr() local 83 psnr = 10.0 * log10(peak * peak * samples / mse); in mse2psnr() 85 psnr = MAX_PSNR; // Limit to prevent / 0 in mse2psnr() 87 if (psnr > MAX_PSNR) psnr = MAX_PSNR; in mse2psnr() 89 return psnr; in mse2psnr() 430 #define psnr_and_ssim(ssim, psnr, buf0, buf1, w, h) \ in main() argument 433 psnr = calc_plane_error(buf0, w, buf1, w, w, h); \ in main() 437 psnr = calc_plane_error16(CAST_TO_SHORTPTR(buf0), w, \ in main() 441 #define psnr_and_ssim(ssim, psnr, buf0, buf1, w, h) \ in main() argument 443 psnr = calc_plane_error(buf0, w, buf1, w, w, h); in main()
|
/external/libyuv/files/source/ |
D | compare.cc | 189 double psnr; in SumSquareErrorToPsnr() local 192 psnr = 10.0 * log10(255.0 * 255.0 * mse); in SumSquareErrorToPsnr() 194 psnr = kMaxPsnr; // Limit to prevent divide by 0 in SumSquareErrorToPsnr() 197 if (psnr > kMaxPsnr) in SumSquareErrorToPsnr() 198 psnr = kMaxPsnr; in SumSquareErrorToPsnr() 200 return psnr; in SumSquareErrorToPsnr()
|
/external/libvpx/libvpx/third_party/libyuv/source/ |
D | compare.cc | 258 double psnr; in SumSquareErrorToPsnr() local 261 psnr = 10.0 * log10(255.0 * 255.0 * mse); in SumSquareErrorToPsnr() 263 psnr = kMaxPsnr; // Limit to prevent divide by 0 in SumSquareErrorToPsnr() 266 if (psnr > kMaxPsnr) { in SumSquareErrorToPsnr() 267 psnr = kMaxPsnr; in SumSquareErrorToPsnr() 270 return psnr; in SumSquareErrorToPsnr()
|