diff options
author | Yaowu Xu <yaowu@google.com> | 2014-03-17 14:09:29 -0700 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2014-03-17 14:09:29 -0700 |
commit | 5511968f21d79fa529a70dbee314093a3471b375 (patch) | |
tree | de95610f7680e5bec9fca7e530ccfad46798bac6 /vp9/encoder/vp9_firstpass.c | |
parent | aec5e1ed6501078a42ddb734eccbc831e391eaa9 (diff) | |
download | libvpx-5511968f21d79fa529a70dbee314093a3471b375.tar libvpx-5511968f21d79fa529a70dbee314093a3471b375.tar.gz libvpx-5511968f21d79fa529a70dbee314093a3471b375.tar.bz2 libvpx-5511968f21d79fa529a70dbee314093a3471b375.zip |
Removed several unused functions.
Change-Id: Ib9e27298c575afc02a98b593bc6ad60762064d9b
Diffstat (limited to 'vp9/encoder/vp9_firstpass.c')
-rw-r--r-- | vp9/encoder/vp9_firstpass.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index 5cd72532d..cd4e3d670 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -69,13 +69,6 @@ static int gfboost_qadjust(int qindex) { (1.32 * q) + 79.3); } -static int kfboost_qadjust(int qindex) { - const double q = vp9_convert_qindex_to_q(qindex); - return (int)((0.00000973 * q * q * q) + - (-0.00613 * q * q) + - (1.316 * q) + 121.2); -} - // Resets the first pass file to the given position using a relative seek from // the current position. static void reset_fpf_position(struct twopass_rc *p, @@ -826,12 +819,6 @@ void vp9_first_pass(VP9_COMP *cpi) { ++cm->current_video_frame; } -// Estimate a cost per mb attributable to overheads such as the coding of modes -// and motion vectors. This currently makes simplistic assumptions for testing. -static double bitcost(double prob) { - return -(log(prob) / log(2.0)); -} - static double calc_correction_factor(double err_per_mb, double err_divisor, double pt_low, @@ -2131,7 +2118,7 @@ void vp9_rc_get_first_pass_params(VP9_COMP *cpi) { VP9_COMMON *const cm = &cpi->common; if (!cpi->refresh_alt_ref_frame && (cm->current_video_frame == 0 || - cm->frame_flags & FRAMEFLAGS_KEY)) { + (cm->frame_flags & FRAMEFLAGS_KEY))) { cm->frame_type = KEY_FRAME; } else { cm->frame_type = INTER_FRAME; |