diff options
author | Jerome Jiang <jianj@google.com> | 2018-11-07 00:33:58 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-11-07 00:33:58 +0000 |
commit | 59540801e6fe0b770908e2450eb3d110671d1f31 (patch) | |
tree | 5a03ff0eaeb4e473b02dc5b774f05980a56cf159 /vp9/encoder/vp9_ratectrl.h | |
parent | 856e8f58e1294f21924a4186ad1dd01b287e88b9 (diff) | |
parent | a03b04a55fded9dea0ebbb423381a93ea39b866e (diff) | |
download | libvpx-59540801e6fe0b770908e2450eb3d110671d1f31.tar libvpx-59540801e6fe0b770908e2450eb3d110671d1f31.tar.gz libvpx-59540801e6fe0b770908e2450eb3d110671d1f31.tar.bz2 libvpx-59540801e6fe0b770908e2450eb3d110671d1f31.zip |
Merge "vp9: postencode drop frame for screen content in CBR."
Diffstat (limited to 'vp9/encoder/vp9_ratectrl.h')
-rw-r--r-- | vp9/encoder/vp9_ratectrl.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vp9/encoder/vp9_ratectrl.h b/vp9/encoder/vp9_ratectrl.h index 4e827668b..16aa08137 100644 --- a/vp9/encoder/vp9_ratectrl.h +++ b/vp9/encoder/vp9_ratectrl.h @@ -187,6 +187,14 @@ typedef struct { int force_qpmin; int reset_high_source_sad; double perc_arf_usage; + int force_max_q; + // Last frame was dropped post encode on scene change. + int last_post_encode_dropped_scene_change; + // Enable post encode frame dropping for screen content. Only enabled when + // ext_use_post_encode_drop is enabled by user. + int use_post_encode_drop; + // External flag to enable post encode frame dropping, controlled by user. + int ext_use_post_encode_drop; } RATE_CONTROL; struct VP9_COMP; @@ -248,6 +256,9 @@ void vp9_rc_postencode_update_drop_frame(struct VP9_COMP *cpi); // Changes only the rate correction factors in the rate control structure. void vp9_rc_update_rate_correction_factors(struct VP9_COMP *cpi); +// Post encode drop for CBR screen-content mode. +int post_encode_drop_screen_content(struct VP9_COMP *cpi, size_t *size); + // Decide if we should drop this frame: For 1-pass CBR. // Changes only the decimation count in the rate control structure int vp9_rc_drop_frame(struct VP9_COMP *cpi); |