Compile fix for var-tx, ext-tx, rect-tx

Change-Id: I8f48db56e3f55b1d2fcc8a06aaa51e5c383e651f
This commit is contained in:
Debargha Mukherjee 2016-11-15 17:27:38 -08:00
Родитель faa7fcfe1c
Коммит 949097c362
6 изменённых файлов: 15 добавлений и 16 удалений

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

@ -130,8 +130,8 @@ static const uint8_t log_in_base_2[] = {
#if CONFIG_GLOBAL_MOTION
#if GLOBAL_TRANS_TYPES == 5
const aom_tree_index av1_global_motion_types_tree[TREE_SIZE(
GLOBAL_TRANS_TYPES)] = { -IDENTITY, 2, -TRANSLATION, 4, -ROTZOOM, 6,
-AFFINE, -HOMOGRAPHY };
GLOBAL_TRANS_TYPES)] = { -IDENTITY, 2, -TRANSLATION, 4,
-ROTZOOM, 6, -AFFINE, -HOMOGRAPHY };
static const aom_prob default_global_motion_types_prob[GLOBAL_TRANS_TYPES - 1] =
{ 224, 128, 192, 192 };

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

@ -1861,7 +1861,7 @@ static void read_inter_frame_mode_info(AV1Decoder *const pbi,
if (use_rect_tx) {
mbmi->tx_size = max_txsize_rect_lookup[bsize];
set_txfm_ctxs(mbmi->tx_size, xd->n8_w, xd->n8_h, xd);
set_txfm_ctxs(mbmi->tx_size, xd->n8_w, xd->n8_h, mbmi->skip, xd);
} else {
#endif // CONFIG_EXT_TX && CONFIG_RECT_TX
mbmi->min_tx_size = TX_SIZES_ALL;

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

@ -1298,7 +1298,7 @@ static void pack_inter_mode_mvs(AV1_COMP *cpi, const MODE_INFO *mi,
}
if (is_rect_tx(mbmi->tx_size)) {
set_txfm_ctxs(mbmi->tx_size, xd->n8_w, xd->n8_h, xd);
set_txfm_ctxs(mbmi->tx_size, xd->n8_w, xd->n8_h, skip, xd);
} else {
#endif // CONFIG_EXT_TX && CONFIG_RECT_TX
for (idy = 0; idy < height; idy += bh)
@ -3972,11 +3972,9 @@ static void write_global_motion_params(WarpedMotionParams *params,
switch (type) {
case HOMOGRAPHY:
aom_write_primitive_symmetric(
w, (params->wmmat[6] >> GM_ROW3HOMO_PREC_DIFF),
GM_ABS_ROW3HOMO_BITS);
w, (params->wmmat[6] >> GM_ROW3HOMO_PREC_DIFF), GM_ABS_ROW3HOMO_BITS);
aom_write_primitive_symmetric(
w, (params->wmmat[7] >> GM_ROW3HOMO_PREC_DIFF),
GM_ABS_ROW3HOMO_BITS);
w, (params->wmmat[7] >> GM_ROW3HOMO_PREC_DIFF), GM_ABS_ROW3HOMO_BITS);
// fallthrough intended
case AFFINE:
case ROTZOOM:

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

@ -5473,7 +5473,8 @@ static void encode_superblock(const AV1_COMP *const cpi, ThreadData *td,
!(mbmi->skip || seg_skip)) {
#if CONFIG_EXT_TX && CONFIG_RECT_TX
if (is_rect_tx(mbmi->tx_size)) {
set_txfm_ctxs(mbmi->tx_size, xd->n8_w, xd->n8_h, xd);
set_txfm_ctxs(mbmi->tx_size, xd->n8_w, xd->n8_h, (mbmi->skip || seg_skip),
xd);
} else {
if (dry_run) tx_partition_set_contexts(cm, xd, bsize, mi_row, mi_col);
}