]> granicus.if.org Git - libvpx/commitdiff
vp9: Rename post_encode drop function.
authorMarco Paniconi <marpan@google.com>
Mon, 3 Dec 2018 18:32:06 +0000 (10:32 -0800)
committerMarco Paniconi <marpan@google.com>
Mon, 3 Dec 2018 20:18:35 +0000 (12:18 -0800)
Feature works also for non-screen content mode,
so rename it.

Change-Id: I665362d50cf9a4017f114973586ad0eead066ddd

vp9/encoder/vp9_encoder.c
vp9/encoder/vp9_ratectrl.c
vp9/encoder/vp9_ratectrl.h

index 04d25247d11dda52fb9f7767d1c7520b2dc5c78c..c391d8d98c3e70447bac42497480ce8550117cbb 100644 (file)
@@ -4847,8 +4847,7 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, size_t *size,
   vp9_pack_bitstream(cpi, dest, size);
 
   if (cpi->rc.use_post_encode_drop && cm->base_qindex < cpi->rc.worst_quality &&
-      cpi->svc.spatial_layer_id == 0 &&
-      post_encode_drop_screen_content(cpi, size)) {
+      cpi->svc.spatial_layer_id == 0 && post_encode_drop_cbr(cpi, size)) {
     restore_coding_context(cpi);
     return;
   }
index 396ba02692adb5341a5d0d098e6d3b09115bebbb..26dfb47d75ed06c68ce1932ab94b750aa944d84c 100644 (file)
@@ -550,7 +550,7 @@ static int drop_frame(VP9_COMP *cpi) {
   }
 }
 
-int post_encode_drop_screen_content(VP9_COMP *cpi, size_t *size) {
+int post_encode_drop_cbr(VP9_COMP *cpi, size_t *size) {
   size_t frame_size = *size << 3;
   int64_t new_buffer_level =
       cpi->rc.buffer_level + cpi->rc.avg_frame_bandwidth - (int64_t)frame_size;
index 16aa08137ee960e595a24a13233474f83112beba..a343bd34b532832d47ad483147c271e02d8ec62e 100644 (file)
@@ -256,8 +256,8 @@ 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);
+// Post encode drop for CBR mode.
+int post_encode_drop_cbr(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