/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 …]
|
D | webrtc_libyuv.cc | 304 double psnr = libyuv::I420Psnr(ref_frame->buffer(kYPlane), in I420PSNR() local 319 return (psnr > kPerfectPSNR) ? kPerfectPSNR : psnr; in I420PSNR()
|
/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
|
D | compare.cc | 60 double psnr = libyuv::SumSquareErrorToPsnr(sum_square_err, size_min); in main() local 61 printf(", psnr %.2f\n", psnr); in main()
|
/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/vpx/src/ |
D | svc_encodeframe.c | 570 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/ |
D | vp9_lossless_test.cc | 56 if (pkt->data.psnr.psnr[0] < psnr_) psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
|
D | util.h | 39 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()
|
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 | 111 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()
|
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()
|
D | resize_test.cc | 366 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()
|
D | cq_test.cc | 77 psnr_ += pow(10.0, pkt->data.psnr.psnr[0] / 10.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/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 | 187 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/ |
D | tiny_ssim.c | 71 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/ |
D | main.py | 112 psnr = gviz_api.DataTable(description, data) 114 json_psnr_data = psnr.ToJSon(helper.GetOrdering(description))
|
/external/webrtc/webrtc/modules/video_coding/codecs/tools/ |
D | video_quality_measurement.cc | 363 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/ |
D | vpx_encoder.h | 191 double psnr[4]; /**< PSNR, total/y/u/v */ member 192 } psnr; /**< data for PSNR packet */ member
|
/external/libyuv/files/docs/ |
D | getting_started.md | 185 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/ |
D | video_quality_test.cc | 306 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/ |
D | vp9_encoder.c | 2076 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 …]
|