summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_firstpass.c
diff options
context:
space:
mode:
authorJim Bankoski <jimbankoski@google.com>2014-08-04 11:57:33 -0700
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>2014-08-04 12:07:20 -0700
commit967c7c0828b476937ae7ddd767095b89dfed01ed (patch)
tree7c65d9c0a1764a812124f646412698ccf96d74e4 /vp9/encoder/vp9_firstpass.c
parent64126c3aa49260032fdd1a5cb7e59bc041575e5d (diff)
downloadlibvpx-967c7c0828b476937ae7ddd767095b89dfed01ed.tar
libvpx-967c7c0828b476937ae7ddd767095b89dfed01ed.tar.gz
libvpx-967c7c0828b476937ae7ddd767095b89dfed01ed.tar.bz2
libvpx-967c7c0828b476937ae7ddd767095b89dfed01ed.zip
vp9_firstpass.c: fix unused static function
Change-Id: Ia989a01d79f1f02defbeccb1b8eee23fdf5e764e
Diffstat (limited to 'vp9/encoder/vp9_firstpass.c')
-rw-r--r--vp9/encoder/vp9_firstpass.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c
index 59a9d83d1..cf20e78db 100644
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -225,26 +225,6 @@ static void subtract_stats(FIRSTPASS_STATS *section,
section->duration -= frame->duration;
}
-static void avg_stats(FIRSTPASS_STATS *section) {
- if (section->count < 1.0)
- return;
-
- section->intra_error /= section->count;
- section->coded_error /= section->count;
- section->sr_coded_error /= section->count;
- section->pcnt_inter /= section->count;
- section->pcnt_second_ref /= section->count;
- section->pcnt_neutral /= section->count;
- section->pcnt_motion /= section->count;
- section->MVr /= section->count;
- section->mvr_abs /= section->count;
- section->MVc /= section->count;
- section->mvc_abs /= section->count;
- section->MVrv /= section->count;
- section->MVcv /= section->count;
- section->mv_in_out_count /= section->count;
- section->duration /= section->count;
-}
// Calculate a modified Error used in distributing bits between easier and
// harder frames.