diff options
author | angiebird <angiebird@google.com> | 2019-11-25 12:26:08 -0800 |
---|---|---|
committer | angiebird <angiebird@google.com> | 2019-12-06 15:03:23 -0800 |
commit | 94fb57d3a53861ec39b0a09ce36d551cb8157133 (patch) | |
tree | de7dc94e7d56ab10c88083bd49a34529d114774e /vp9/encoder/vp9_firstpass.c | |
parent | efa05b7cc9d922a6257358b9c5855c187e924d52 (diff) | |
download | libvpx-94fb57d3a53861ec39b0a09ce36d551cb8157133.tar libvpx-94fb57d3a53861ec39b0a09ce36d551cb8157133.tar.gz libvpx-94fb57d3a53861ec39b0a09ce36d551cb8157133.tar.bz2 libvpx-94fb57d3a53861ec39b0a09ce36d551cb8157133.zip |
Add GetKeyFrameGroupSize()
Makes vp9_get_frames_to_next_key() public.
Change-Id: I903cefbb3925d6ffc641412c6d60d95a2ff256a4
Diffstat (limited to 'vp9/encoder/vp9_firstpass.c')
-rw-r--r-- | vp9/encoder/vp9_firstpass.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index acc4be3fa..57ab583cf 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -3068,10 +3068,10 @@ static int test_candidate_kf(const FIRST_PASS_INFO *first_pass_info, #define MAX_KF_TOT_BOOST 5400 #endif -static int get_frames_to_next_key(const VP9EncoderConfig *oxcf, - const FRAME_INFO *frame_info, - const FIRST_PASS_INFO *first_pass_info, - int kf_show_idx, int min_gf_interval) { +int vp9_get_frames_to_next_key(const VP9EncoderConfig *oxcf, + const FRAME_INFO *frame_info, + const FIRST_PASS_INFO *first_pass_info, + int kf_show_idx, int min_gf_interval) { double recent_loop_decay[FRAMES_TO_CHECK_DECAY]; int j; int frames_to_key; @@ -3184,8 +3184,8 @@ static void find_next_key_frame(VP9_COMP *cpi, int kf_show_idx) { kf_mod_err = calc_norm_frame_score(oxcf, frame_info, keyframe_stats, mean_mod_score, av_err); - rc->frames_to_key = get_frames_to_next_key(oxcf, frame_info, first_pass_info, - kf_show_idx, rc->min_gf_interval); + rc->frames_to_key = vp9_get_frames_to_next_key( + oxcf, frame_info, first_pass_info, kf_show_idx, rc->min_gf_interval); // If there is a max kf interval set by the user we must obey it. // We already breakout of the loop above at 2x max. @@ -3648,7 +3648,7 @@ int vp9_get_coding_frame_num(const struct VP9EncoderConfig *oxcf, while (show_idx < first_pass_info->num_frames) { if (rc.frames_to_key == 0) { - rc.frames_to_key = get_frames_to_next_key( + rc.frames_to_key = vp9_get_frames_to_next_key( oxcf, frame_info, first_pass_info, show_idx, rc.min_gf_interval); arf_active_or_kf = 1; } else { |