Commit 6aabba04 authored by Debargha Mukherjee's avatar Debargha Mukherjee Committed by James Zern

Remove unused allocation for last_frame_db

Change-Id: Ie02e188662119ee2719c79283641b9b74849cfab
parent 2773872f
......@@ -561,7 +561,6 @@ static void dealloc_compressor_data(AV1_COMP *cpi) {
aom_free_frame_buffer(&cpi->last_frame_uf);
#if CONFIG_LOOP_RESTORATION
av1_free_restoration_buffers(cm);
aom_free_frame_buffer(&cpi->last_frame_db);
aom_free_frame_buffer(&cpi->trial_frame_rst);
aom_free(cpi->extra_rstbuf);
{
......@@ -831,15 +830,6 @@ static void alloc_util_frame_buffers(AV1_COMP *cpi) {
"Failed to allocate last frame buffer");
#if CONFIG_LOOP_RESTORATION
if (aom_realloc_frame_buffer(&cpi->last_frame_db, cm->width, cm->height,
cm->subsampling_x, cm->subsampling_y,
#if CONFIG_HIGHBITDEPTH
cm->use_highbitdepth,
#endif
AOM_BORDER_IN_PIXELS, cm->byte_alignment, NULL,
NULL, NULL))
aom_internal_error(&cm->error, AOM_CODEC_MEM_ERROR,
"Failed to allocate last frame deblocked buffer");
if (aom_realloc_frame_buffer(
&cpi->trial_frame_rst,
#if CONFIG_FRAME_SUPERRES
......
......@@ -458,7 +458,6 @@ typedef struct AV1_COMP {
YV12_BUFFER_CONFIG last_frame_uf;
#if CONFIG_LOOP_RESTORATION
YV12_BUFFER_CONFIG last_frame_db;
YV12_BUFFER_CONFIG trial_frame_rst;
uint8_t *extra_rstbuf; // Extra buffers used in restoration search
RestorationInfo rst_search[MAX_MB_PLANE]; // Used for encoder side search
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment