summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2020-05-12 16:54:29 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-05-12 16:54:29 +0000
commitb9fa9ef693d60254f82426cf5c02223783336223 (patch)
tree430d294164f727b2fdd8a12036f1b771a4e202a2
parente334d9fd1b440e3fb9722334da244f502e22e643 (diff)
parente8b818b581b9ab7e9c8f7b1becd753dd4efbdf43 (diff)
downloadlibvpx-b9fa9ef693d60254f82426cf5c02223783336223.tar.gz
libvpx-b9fa9ef693d60254f82426cf5c02223783336223.tar.bz2
libvpx-b9fa9ef693d60254f82426cf5c02223783336223.zip
Merge "Don't collect stats if they won't be used"
-rw-r--r--vp8/encoder/onyx_if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index 3f5b9816d..dccc6ebb1 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -4533,9 +4533,11 @@ static void encode_frame_to_data_rate(VP8_COMP *cpi, size_t *size,
/* Actual bits spent */
cpi->total_actual_bits += cpi->projected_frame_size;
+#if 0 && CONFIG_INTERNAL_STATS
/* Debug stats */
cpi->total_target_vs_actual +=
(cpi->this_frame_target - cpi->projected_frame_size);
+#endif
cpi->buffer_level = cpi->bits_off_target;