summaryrefslogtreecommitdiff
path: root/vp9/encoder
diff options
context:
space:
mode:
Diffstat (limited to 'vp9/encoder')
-rw-r--r--vp9/encoder/vp9_firstpass.c6
-rw-r--r--vp9/encoder/vp9_firstpass.h3
2 files changed, 5 insertions, 4 deletions
diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c
index aeb17aa6f..28a22ded6 100644
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -3487,7 +3487,7 @@ static int is_skippable_frame(const VP9_COMP *cpi) {
// Configure image size specific vizier parameters.
// Later these will be set via additional command line options
-static void init_vizier_params(TWO_PASS *const twopass, int screen_area) {
+void vp9_init_vizier_params(TWO_PASS *const twopass, int screen_area) {
// When |use_vizier_rc_params| is 1, we expect the rc parameters below to
// have been initialised on the command line as adjustment factors such
// that a factor of 1.0 will match the default behavior when
@@ -3561,7 +3561,7 @@ void vp9_rc_get_second_pass_params(VP9_COMP *cpi) {
if (cm->current_video_frame == 0) {
unsigned int screen_area = (cm->width * cm->height);
- init_vizier_params(twopass, screen_area);
+ vp9_init_vizier_params(twopass, screen_area);
}
// If this is an arf frame then we dont want to read the stats file or
@@ -3877,7 +3877,7 @@ int vp9_get_gop_coding_frame_count(const VP9EncoderConfig *oxcf,
// Under CONFIG_RATE_CTRL, once the first_pass_info is ready, the number of
// coding frames (including show frame and alt ref) can be determined.
int vp9_get_coding_frame_num(const VP9EncoderConfig *oxcf,
- const TWO_PASS *const twopass,
+ TWO_PASS *const twopass,
const FRAME_INFO *frame_info, int multi_layer_arf,
int allow_alt_ref) {
const FIRST_PASS_INFO *first_pass_info = &twopass->first_pass_info;
diff --git a/vp9/encoder/vp9_firstpass.h b/vp9/encoder/vp9_firstpass.h
index e504528f1..ff0eb40c8 100644
--- a/vp9/encoder/vp9_firstpass.h
+++ b/vp9/encoder/vp9_firstpass.h
@@ -257,6 +257,7 @@ void vp9_first_pass_encode_tile_mb_row(struct VP9_COMP *cpi,
void vp9_init_second_pass(struct VP9_COMP *cpi);
void vp9_rc_get_second_pass_params(struct VP9_COMP *cpi);
+void vp9_init_vizier_params(TWO_PASS *const twopass, int screen_area);
// Post encode update of the rate control parameters for 2-pass
void vp9_twopass_postencode_update(struct VP9_COMP *cpi);
@@ -304,7 +305,7 @@ int vp9_get_gop_coding_frame_count(const struct VP9EncoderConfig *oxcf,
int last_gop_use_alt_ref, int *use_alt_ref);
int vp9_get_coding_frame_num(const struct VP9EncoderConfig *oxcf,
- const TWO_PASS *const twopass,
+ TWO_PASS *const twopass,
const FRAME_INFO *frame_info, int multi_layer_arf,
int allow_alt_ref);