Home
last modified time | relevance | path

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

12

/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.h23 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/
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 …]
Dwebrtc_libyuv.cc304 double psnr = libyuv::I420Psnr(ref_frame->buffer(kYPlane), in I420PSNR() local
319 return (psnr > kPerfectPSNR) ? kPerfectPSNR : psnr; in I420PSNR()
/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
Dcompare.cc60 double psnr = libyuv::SumSquareErrorToPsnr(sum_square_err, size_min); in main() local
61 printf(", psnr %.2f\n", psnr); in main()
/external/libyuv/files/
Dlinux.mk63 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/vpx/src/
Dsvc_encodeframe.c570 si->psnr_pkt_received, i, cx_pkt->data.layer_psnr[i].psnr[0], in vpx_svc_encode()
571 cx_pkt->data.layer_psnr[i].psnr[1], in vpx_svc_encode()
572 cx_pkt->data.layer_psnr[i].psnr[2], in vpx_svc_encode()
573 cx_pkt->data.layer_psnr[i].psnr[3]); in vpx_svc_encode()
583 si->psnr_sum[i][j] += cx_pkt->data.layer_psnr[i].psnr[j]; in vpx_svc_encode()
603 si->psnr_pkt_received, 0, cx_pkt->data.layer_psnr[0].psnr[0], in vpx_svc_encode()
604 cx_pkt->data.layer_psnr[0].psnr[1], in vpx_svc_encode()
605 cx_pkt->data.layer_psnr[0].psnr[2], in vpx_svc_encode()
606 cx_pkt->data.layer_psnr[0].psnr[3]); in vpx_svc_encode()
608 si->psnr_sum[0][j] += cx_pkt->data.layer_psnr[0].psnr[j]; in vpx_svc_encode()
[all …]
/external/libvpx/libvpx/test/
Dvp9_lossless_test.cc56 if (pkt->data.psnr.psnr[0] < psnr_) psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
Dutil.h39 double psnr = 100.0; in compute_psnr() local
41 psnr = 10 * log10(255.0 * 255.0 / mse); in compute_psnr()
43 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.cc111 psnr_ += pkt->data.psnr.psnr[0]; in PSNRPktHook()
169 const double psnr = GetAveragePsnr(); in TEST_P() local
170 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()
Dresize_test.cc366 if (frame0_psnr_ == 0.) frame0_psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
367 EXPECT_NEAR(pkt->data.psnr.psnr[0], frame0_psnr_, 2.0); in PSNRPktHook()
659 if (frame0_psnr_ == 0.) frame0_psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
660 EXPECT_NEAR(pkt->data.psnr.psnr[0], frame0_psnr_, 2.0); in PSNRPktHook()
Dcq_test.cc77 psnr_ += pow(10.0, pkt->data.psnr.psnr[0] / 10.0); in PSNRPktHook()
/external/libxcam/tests/
Dtest-cl-image.cpp70 …(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/libyuv/files/source/
Dcompare.cc189 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/
Dcompare.cc187 double psnr; in SumSquareErrorToPsnr() local
190 psnr = 10.0 * log10(255.0 * 255.0 * mse); in SumSquareErrorToPsnr()
192 psnr = kMaxPsnr; // Limit to prevent divide by 0 in SumSquareErrorToPsnr()
195 if (psnr > kMaxPsnr) in SumSquareErrorToPsnr()
196 psnr = kMaxPsnr; in SumSquareErrorToPsnr()
198 return psnr; in SumSquareErrorToPsnr()
/external/libvpx/libvpx/tools/
Dtiny_ssim.c71 double psnr; in mse2psnr() local
74 psnr = 10.0 * log10(peak * peak * samples / mse); in mse2psnr()
76 psnr = MAX_PSNR; // Limit to prevent / 0 in mse2psnr()
78 if (psnr > MAX_PSNR) psnr = MAX_PSNR; in mse2psnr()
80 return psnr; in mse2psnr()
680 #define psnr_and_ssim(ssim, psnr, buf0, buf1, w, h) \ in main() argument
683 psnr = calc_plane_error(buf0, w, buf1, w, w, h); \ in main()
687 psnr = calc_plane_error16(CAST_TO_SHORTPTR(buf0), w, \ in main()
691 #define psnr_and_ssim(ssim, psnr, buf0, buf1, w, h) \ in main() argument
693 psnr = calc_plane_error(buf0, w, buf1, w, w, h); in main()
/external/webrtc/tools/python_charts/webrtc/
Dmain.py112 psnr = gviz_api.DataTable(description, data)
114 json_psnr_data = psnr.ToJSon(helper.GetOrdering(description))
/external/webrtc/webrtc/modules/video_coding/codecs/tools/
Dvideo_quality_measurement.cc363 const webrtc::test::FrameResult& psnr = psnr_result.frames[i]; in PrintCsvOutput() local
370 f.total_packets, ssim.value, psnr.value); in PrintCsvOutput()
441 const webrtc::test::FrameResult& psnr = psnr_result.frames[i]; in PrintPythonOutput() local
456 f.packets_dropped, f.total_packets, ssim.value, psnr.value); in PrintPythonOutput()
/external/libvpx/libvpx/vpx/
Dvpx_encoder.h191 double psnr[4]; /**< PSNR, total/y/u/v */ member
192 } psnr; /**< data for PSNR packet */ member
/external/libyuv/files/docs/
Dgetting_started.md185 ninja -C out/Debug psnr
242 ### Build psnr tool
245 arm-linux-gnueabihf-g++ psnr_main.cc psnr.cc ssim.cc -o psnr
246 arm-linux-gnueabihf-objdump -d psnr
/external/webrtc/webrtc/video/
Dvideo_quality_test.cc306 double psnr, in Sample()
314 psnr(psnr), in Sample()
323 double psnr; member
478 double psnr = I420PSNR(&comparison.reference, &comparison.render); in PerformFrameComparison() local
488 comparison.encoded_frame_size, psnr, ssim)); in PerformFrameComparison()
490 psnr_.AddSample(psnr); in PerformFrameComparison()
553 sample.encoded_frame_size, sample.psnr, sample.ssim, in PrintSamplesToFile()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_encoder.c2076 cpi->psnr.worst = 100.0; in vp9_create_compressor()
2355 dr, cpi->psnr.stat[ALL] / cpi->count, total_psnr, in vp9_remove_compressor()
2358 cpi->psnrhvs.stat[ALL] / cpi->count, cpi->psnr.worst, in vp9_remove_compressor()
2360 cpi->psnr.stat[Y] / cpi->count, cpi->psnr.stat[U] / cpi->count, in vp9_remove_compressor()
2361 cpi->psnr.stat[V] / cpi->count); in vp9_remove_compressor()
2480 PSNR_STATS psnr; in generate_psnr_packet() local
2482 vpx_calc_highbd_psnr(cpi->raw_source_frame, cpi->common.frame_to_show, &psnr, in generate_psnr_packet()
2485 vpx_calc_psnr(cpi->raw_source_frame, cpi->common.frame_to_show, &psnr); in generate_psnr_packet()
2489 pkt.data.psnr.samples[i] = psnr.samples[i]; in generate_psnr_packet()
2490 pkt.data.psnr.sse[i] = psnr.sse[i]; in generate_psnr_packet()
[all …]

12