Commit 944b805b authored by Jingning Han's avatar Jingning Han
Browse files

Retain the frame size as integer multiples of 8

Resolve potential issues in loop filter and cdef.


Change-Id: I756c2a16bcb1582be60b2bdbedfc44773ed8f4f3
parent 13d2aee7
......@@ -20,8 +20,10 @@
#include "av1/common/onyxc_int.h"
void av1_set_mb_mi(AV1_COMMON *cm, int width, int height) {
const int aligned_width = ALIGN_POWER_OF_TWO(width, MI_SIZE_LOG2);
const int aligned_height = ALIGN_POWER_OF_TWO(height, MI_SIZE_LOG2);
// TODO(jingning): Fine tune the loop filter operations and bring this
// back to integer multiple of 4 for cb4x4.
const int aligned_width = ALIGN_POWER_OF_TWO(width, 3);
const int aligned_height = ALIGN_POWER_OF_TWO(height, 3);
cm->mi_cols = aligned_width >> MI_SIZE_LOG2;
cm->mi_rows = aligned_height >> MI_SIZE_LOG2;
Supports Markdown
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