shithub: libvpx

Download patch

ref: 37c8030a2a79fc6aa8fab686fd60117d3833d1b2
parent: 1fa82a911731e47bf9679950c2dd588d46dd0683
author: Jingning Han <jingning@google.com>
date: Tue Apr 30 06:58:03 EDT 2019

Deprecate stack_rank_buffer usage

This large buffer is no longer needed.

Change-Id: I9f2b3b28663d299649208f6172bba136103342ad

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -988,9 +988,6 @@
   vpx_free(cpi->consec_zero_mv);
   cpi->consec_zero_mv = NULL;
 
-  vpx_free(cpi->stack_rank_buffer);
-  cpi->stack_rank_buffer = NULL;
-
   vpx_free(cpi->mb_wiener_variance);
   cpi->mb_wiener_variance = NULL;
 
@@ -2388,8 +2385,6 @@
   vp9_set_speed_features_framesize_dependent(cpi, oxcf->speed);
 
   // TODO(jingning): The buffer allocation will be refactored next.
-  CHECK_MEM_ERROR(cm, cpi->stack_rank_buffer,
-                  vpx_calloc(UINT16_MAX, sizeof(*cpi->stack_rank_buffer)));
   CHECK_MEM_ERROR(
       cm, cpi->mb_wiener_variance,
       vpx_calloc(cm->mb_rows * cm->mb_cols, sizeof(*cpi->mb_wiener_variance)));
--- a/vp9/encoder/vp9_encoder.h
+++ b/vp9/encoder/vp9_encoder.h
@@ -645,7 +645,6 @@
   int64_t norm_wiener_variance;
   int64_t *mb_wiener_variance;
   double *mi_ssim_rdmult_scaling_factors;
-  int *stack_rank_buffer;
 
   YV12_BUFFER_CONFIG last_frame_uf;