Change-Id: If3a4c7e6aee747afd675e0233560f6e721c10f79
This commit is contained in:
Jean-Marc Valin 2017-03-23 18:32:57 -04:00 коммит произвёл Jean-Marc Valin
Родитель 9620bcd565
Коммит 1df427eff8
2 изменённых файлов: 6 добавлений и 13 удалений

Просмотреть файл

@ -2385,14 +2385,11 @@ static void decode_partition(AV1Decoder *const pbi, MACROBLOCKD *const xd,
#if CONFIG_EXT_PARTITION
if (cm->sb_size == BLOCK_128X128 && bsize == BLOCK_128X128) {
if (!sb_all_skip(cm, mi_row, mi_col)) {
cm->mi_grid_visible[mi_row * cm->mi_stride + mi_col]->mbmi.dering_gain =
aom_read_literal(r, cm->dering_bits, ACCT_STR);
cm->mi_grid_visible[mi_row * cm->mi_stride + mi_col]->mbmi.clpf_strength =
aom_read_literal(r, cm->clpf_bits, ACCT_STR);
cm->mi_grid_visible[mi_row * cm->mi_stride + mi_col]->mbmi.cdef_strength =
aom_read_literal(r, cm->cdef_bits, ACCT_STR);
} else {
cm->mi_grid_visible[mi_row * cm->mi_stride + mi_col]->mbmi.dering_gain =
cm->mi_grid_visible[mi_row * cm->mi_stride + mi_col]
->mbmi.clpf_strength = 0;
cm->mi_grid_visible[mi_row * cm->mi_stride + mi_col]->mbmi.cdef_strength =
0;
}
} else if (cm->sb_size == BLOCK_64X64 && bsize == BLOCK_64X64) {
#else

Просмотреть файл

@ -2777,13 +2777,9 @@ static void write_modes_sb(AV1_COMP *const cpi, const TileInfo *const tile,
#if CONFIG_EXT_PARTITION
if (cm->sb_size == BLOCK_128X128 && bsize == BLOCK_128X128 &&
!sb_all_skip(cm, mi_row, mi_col)) {
aom_write_literal(
w,
cm->mi_grid_visible[mi_row * cm->mi_stride + mi_col]->mbmi.dering_gain,
cm->dering_bits);
aom_write_literal(w, cm->mi_grid_visible[mi_row * cm->mi_stride + mi_col]
->mbmi.clpf_strength,
cm->clpf_bits);
->mbmi.cdef_strength,
cm->cdef_bits);
} else if (cm->sb_size == BLOCK_64X64 && bsize == BLOCK_64X64 &&
#else
if (bsize == BLOCK_64X64 &&