Index: source/libvpx/vp9/encoder/vp9_ratectrl.h |
=================================================================== |
--- source/libvpx/vp9/encoder/vp9_ratectrl.h (revision 278778) |
+++ source/libvpx/vp9/encoder/vp9_ratectrl.h (working copy) |
@@ -30,7 +30,7 @@ |
int this_frame_target; // Actual frame target after rc adjustment. |
int projected_frame_size; |
int sb64_target_rate; |
- int last_q[3]; // Separate values for Intra/Inter/ARF-GF |
+ int last_q[FRAME_TYPES]; // Separate values for Intra/Inter |
int last_boosted_qindex; // Last boosted GF/KF/ARF q |
int gfu_boost; |
@@ -61,7 +61,7 @@ |
int ni_av_qi; |
int ni_tot_qi; |
int ni_frames; |
- int avg_frame_qindex[3]; // 0 - KEY, 1 - INTER, 2 - ARF/GF |
+ int avg_frame_qindex[FRAME_TYPES]; |
double tot_q; |
double avg_q; |
@@ -84,6 +84,10 @@ |
int worst_quality; |
int best_quality; |
+ |
+ int64_t starting_buffer_level; |
+ int64_t optimal_buffer_level; |
+ int64_t maximum_buffer_size; |
// int active_best_quality; |
} RATE_CONTROL; |
@@ -178,6 +182,9 @@ |
void vp9_rc_update_framerate(struct VP9_COMP *cpi); |
+void vp9_rc_set_gf_max_interval(const struct VP9EncoderConfig *const oxcf, |
+ RATE_CONTROL *const rc); |
+ |
#ifdef __cplusplus |
} // extern "C" |
#endif |