summaryrefslogtreecommitdiff
path: root/vp8
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2023-04-18 19:24:35 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-04-18 19:24:35 +0000
commit873fd589739e0d307b2bb25ce11922b607594d77 (patch)
tree63692086aeec43f8315e4e8d10b632ae16f07f24 /vp8
parent1dda358cb0d102ebf1de465f14798d7a35ec2a3d (diff)
parent7bdce0887b7e1acd62093cd2315ce0e93e75ba5f (diff)
downloadlibvpx-873fd589739e0d307b2bb25ce11922b607594d77.tar
libvpx-873fd589739e0d307b2bb25ce11922b607594d77.tar.gz
libvpx-873fd589739e0d307b2bb25ce11922b607594d77.tar.bz2
libvpx-873fd589739e0d307b2bb25ce11922b607594d77.zip
Merge "onyx_if: clear -Wshadow warning" into main
Diffstat (limited to 'vp8')
-rw-r--r--vp8/encoder/onyx_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index bcf522702..44a02b6dd 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -2109,7 +2109,6 @@ void vp8_remove_compressor(VP8_COMP **comp) {
double time_encoded =
(cpi->last_end_time_stamp_seen - cpi->first_time_stamp_ever) /
10000000.000;
- double dr = (double)cpi->bytes * 8.0 / 1000.0 / time_encoded;
if (cpi->b_calculate_psnr) {
if (cpi->oxcf.number_of_layers > 1) {
@@ -2138,6 +2137,7 @@ void vp8_remove_compressor(VP8_COMP **comp) {
total_psnr2, total_ssim);
}
} else {
+ double dr = (double)cpi->bytes * 8.0 / 1000.0 / time_encoded;
double samples =
3.0 / 2 * cpi->count * cpi->common.Width * cpi->common.Height;
double total_psnr =