Commit 80f74b0a authored by Jingning Han's avatar Jingning Han

Simplify logic in write_modes_sb

Remove redundant #if statements and condition checks.

Change-Id: Ic7885564f21730ca67279202a9bcd51f45a04414
parent 23e4e7b6
......@@ -2975,21 +2975,11 @@ static void write_modes_sb(AV1_COMP *const cpi, const TileInfo *const tile,
#endif // CONFIG_EXT_PARTITION_TYPES
#if CONFIG_CDEF
#if CONFIG_EXT_PARTITION
if (cm->sb_size == BLOCK_128X128 && bsize == BLOCK_128X128 &&
!sb_all_skip(cm, mi_row, mi_col)) {
if (bsize == cm->sb_size && !sb_all_skip(cm, mi_row, mi_col) &&
cm->cdef_bits != 0) {
aom_write_literal(w, cm->mi_grid_visible[mi_row * cm->mi_stride + mi_col]
->mbmi.cdef_strength,
cm->cdef_bits);
} else if (cm->sb_size == BLOCK_64X64 && bsize == BLOCK_64X64 &&
#else
if (bsize == BLOCK_64X64 &&
#endif // CONFIG_EXT_PARTITION
!sb_all_skip(cm, mi_row, mi_col)) {
if (cm->cdef_bits != 0)
aom_write_literal(w, cm->mi_grid_visible[mi_row * cm->mi_stride + mi_col]
->mbmi.cdef_strength,
cm->cdef_bits);
}
#endif
}
......
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