Home
last modified time | relevance | path

Searched refs:psnr (Results 1 – 25 of 80) sorted by relevance

1234

/external/libvpx/libvpx/vpx_dsp/
Dpsnr.c19 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 …]
Dpsnr.h41 const YV12_BUFFER_CONFIG *b, PSNR_STATS *psnr,
45 PSNR_STATS *psnr);
/external/webrtc/webrtc/common_video/libyuv/
Dlibyuv_unittest.cc142 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/libyuv/files/util/
DMakefile1 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/aom_dsp/
Dpsnr.c22 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()
364 const YV12_BUFFER_CONFIG *b, PSNR_STATS *psnr, in aom_calc_highbd_psnr() argument
394 psnr->sse[1 + i] = sse; in aom_calc_highbd_psnr()
395 psnr->samples[1 + i] = samples; in aom_calc_highbd_psnr()
396 psnr->psnr[1 + i] = aom_sse_to_psnr(samples, peak, (double)sse); in aom_calc_highbd_psnr()
402 psnr->sse[0] = total_sse; in aom_calc_highbd_psnr()
403 psnr->samples[0] = total_samples; in aom_calc_highbd_psnr()
404 psnr->psnr[0] = in aom_calc_highbd_psnr()
410 PSNR_STATS *psnr) { in aom_calc_psnr() argument
[all …]
Dpsnr.h24 double psnr[4]; // total/y/u/v member
81 const YV12_BUFFER_CONFIG *b, PSNR_STATS *psnr,
85 PSNR_STATS *psnr);
/external/libaom/libaom/test/
Dhorz_superres_test.cc123 psnr_ += pkt->data.psnr.psnr[0]; in PSNRPktHook()
160 const double psnr = GetAveragePsnr(); in DoTest() local
161 EXPECT_GT(psnr, test_video_param_.psnr_threshold) in DoTest()
228 psnr_ += pkt->data.psnr.psnr[0]; in PSNRPktHook()
265 const double psnr = GetAveragePsnr(); in DoTest() local
266 EXPECT_GT(psnr, test_video_param_.psnr_threshold) in DoTest()
339 psnr_ += pkt->data.psnr.psnr[0]; in PSNRPktHook()
376 const double psnr = GetAveragePsnr(); in DoTest() local
377 EXPECT_GT(psnr, test_video_param_.psnr_threshold) in DoTest()
Dhbd_metrics_test.cc42 PSNR_STATS psnr; in compute_hbd_psnr() local
43 aom_calc_highbd_psnr(source, dest, &psnr, bd, in_bd); in compute_hbd_psnr()
44 return psnr.psnr[0]; in compute_hbd_psnr()
49 PSNR_STATS psnr; in compute_psnr() local
50 aom_calc_psnr(source, dest, &psnr); in compute_psnr()
51 return psnr.psnr[0]; in compute_psnr()
Dlossless_test.cc58 if (pkt->data.psnr.psnr[0] < psnr_) psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
Dmonochrome_test.cc77 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()
Dutil.h41 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()
Drt_end_to_end_test.cc102 psnr_ += pkt->data.psnr.psnr[0]; in PSNRPktHook()
142 const double psnr = GetAveragePsnr(); in DoTest() local
143 EXPECT_GT(psnr, GetPsnrThreshold()) in DoTest()
Dencode_perf_test.cc103 if (pkt->data.psnr.psnr[0] < min_psnr_) { in PSNRPktHook()
104 min_psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
Dcpu_speed_test.cc61 if (pkt->data.psnr.psnr[0] < min_psnr_) min_psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
Dend_to_end_test.cc129 psnr_ += pkt->data.psnr.psnr[0]; in PSNRPktHook()
182 const double psnr = GetAveragePsnr(); in DoTest() local
183 EXPECT_GT(psnr, GetPsnrThreshold()) in DoTest()
/external/libyuv/files/
Dlinux.mk68 all: libyuv.a yuvconvert cpuid psnr
78 psnr: util/psnr.cc
79 $(CXX) $(CXXFLAGS) -Iutil/ -o $@ util/psnr.cc util/psnr_main.cc util/ssim.cc
88 /bin/rm -f source/*.o *.ii *.s libyuv.a yuvconvert cpuid psnr
/external/libvpx/libvpx/test/
Dvp9_lossless_test.cc56 if (pkt->data.psnr.psnr[0] < psnr_) psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
Dutil.h41 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()
Dcpu_speed_test.cc60 if (pkt->data.psnr.psnr[0] < min_psnr_) min_psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
Dvp9_end_to_end_test.cc154 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()
Dencode_perf_test.cc102 if (pkt->data.psnr.psnr[0] < min_psnr_) { in PSNRPktHook()
103 min_psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
/external/libvpx/libvpx/tools/
Dtiny_ssim.c80 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()
428 #define psnr_and_ssim(ssim, psnr, buf0, buf1, w, h) \ in main() argument
431 psnr = calc_plane_error(buf0, w, buf1, w, w, h); \ in main()
435 psnr = calc_plane_error16(CAST_TO_SHORTPTR(buf0), w, \ in main()
439 #define psnr_and_ssim(ssim, psnr, buf0, buf1, w, h) \ in main() argument
441 psnr = calc_plane_error(buf0, w, buf1, w, w, h); in main()
/external/libaom/libaom/third_party/libyuv/source/
Dcompare.cc220 double psnr; in SumSquareErrorToPsnr() local
223 psnr = 10.0 * log10(255.0 * 255.0 * mse); in SumSquareErrorToPsnr()
225 psnr = kMaxPsnr; // Limit to prevent divide by 0 in SumSquareErrorToPsnr()
228 if (psnr > kMaxPsnr) in SumSquareErrorToPsnr()
229 psnr = kMaxPsnr; in SumSquareErrorToPsnr()
231 return psnr; in SumSquareErrorToPsnr()
/external/libvpx/libvpx/third_party/libyuv/source/
Dcompare.cc258 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()
/external/libyuv/files/source/
Dcompare.cc269 double psnr; in SumSquareErrorToPsnr() local
272 psnr = 10.0 * log10(255.0 * 255.0 * mse); in SumSquareErrorToPsnr()
274 psnr = kMaxPsnr; // Limit to prevent divide by 0 in SumSquareErrorToPsnr()
277 if (psnr > kMaxPsnr) { in SumSquareErrorToPsnr()
278 psnr = kMaxPsnr; in SumSquareErrorToPsnr()
281 return psnr; in SumSquareErrorToPsnr()

1234