Remove memset of mbmi_ext_info->frame_base buffer
mbmi_ext_info->frame_base buffer is a frame level buffer
used to store the mode information during encode stage.
As the best mode information at block level is copied to
this buffer from x->mbmi_ext during the encode stage, the
memset of mbmi_ext_info->frame_base buffer is unnecessary
at the time of allocation and this CL cleans-up the same.
For AVIF still-image encode,
Encode Time
cpu-used Reduction(%)
9 1.058
Change-Id: Id3d045d5fd86a18763835707707c93836fae95c0
diff --git a/av1/encoder/encoder_alloc.h b/av1/encoder/encoder_alloc.h
index eec0903..72c823e 100644
--- a/av1/encoder/encoder_alloc.h
+++ b/av1/encoder/encoder_alloc.h
@@ -46,7 +46,7 @@
dealloc_context_buffers_ext(mbmi_ext_info);
CHECK_MEM_ERROR(
cm, mbmi_ext_info->frame_base,
- aom_calloc(new_ext_mi_size, sizeof(*mbmi_ext_info->frame_base)));
+ aom_malloc(new_ext_mi_size * sizeof(*mbmi_ext_info->frame_base)));
mbmi_ext_info->alloc_size = new_ext_mi_size;
}
// The stride needs to be updated regardless of whether new allocation