diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 01:01:18 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 01:01:18 +0000 |
commit | dbfcf98dfdb832a9b5976f0cfbee5a81e794a434 (patch) | |
tree | 25cbeae94c26cad28a13bb089a662291b4b5d905 /files/util/psnr_main.cc | |
parent | ba83e482cf861f22f6ea1d4433f605dcb93a567d (diff) | |
parent | 3c4c137522d3a6759f2d96aee67149410ca2c1b9 (diff) | |
download | libyuv-64fee2503954613a7e7c7976e2b7ab586c89d672.tar.gz |
Snap for 10447354 from 3c4c137522d3a6759f2d96aee67149410ca2c1b9 to mainline-tethering-releaseaml_tet_341010040aml_tet_340913030
Change-Id: I8048cba9d2bf05326ef3a77034b4278985f1f115
Diffstat (limited to 'files/util/psnr_main.cc')
-rw-r--r-- | files/util/psnr_main.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/util/psnr_main.cc b/files/util/psnr_main.cc index a930b202..8b9fd972 100644 --- a/files/util/psnr_main.cc +++ b/files/util/psnr_main.cc @@ -248,13 +248,13 @@ bool UpdateMetrics(uint8_t* ch_org, int number_of_frames, metric* cur_distortion_psnr, metric* distorted_frame, - bool do_psnr) { + bool compute_psnr) { const int uv_offset = (do_swap_uv ? uv_size : 0); const uint8_t* const u_org = ch_org + y_size + uv_offset; const uint8_t* const u_rec = ch_rec + y_size; const uint8_t* const v_org = ch_org + y_size + (uv_size - uv_offset); const uint8_t* const v_rec = ch_rec + y_size + uv_size; - if (do_psnr) { + if (compute_psnr) { #ifdef HAVE_JPEG double y_err = static_cast<double>( libyuv::ComputeSumSquareError(ch_org, ch_rec, y_size)); |