Compile fix for var-tx, ext-tx, rect-tx
Change-Id: I8f48db56e3f55b1d2fcc8a06aaa51e5c383e651f
This commit is contained in:
Родитель
faa7fcfe1c
Коммит
949097c362
|
@ -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 };
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "av1/common/warped_motion.h"
|
||||
|
||||
#define ERRORADV_CLAMP 128
|
||||
#define ERRORADV_CLAMP 128
|
||||
|
||||
static ProjectPointsFunc get_project_points_type(TransformationType type) {
|
||||
switch (type) {
|
||||
|
|
|
@ -4029,19 +4029,19 @@ static void read_global_motion_params(WarpedMotionParams *params,
|
|||
switch (type) {
|
||||
case HOMOGRAPHY:
|
||||
params->wmmat[6] = aom_read_primitive_symmetric(r, GM_ABS_ROW3HOMO_BITS) *
|
||||
GM_ROW3HOMO_DECODE_FACTOR;
|
||||
GM_ROW3HOMO_DECODE_FACTOR;
|
||||
params->wmmat[7] = aom_read_primitive_symmetric(r, GM_ABS_ROW3HOMO_BITS) *
|
||||
GM_ROW3HOMO_DECODE_FACTOR;
|
||||
GM_ROW3HOMO_DECODE_FACTOR;
|
||||
case AFFINE:
|
||||
case ROTZOOM:
|
||||
params->wmmat[2] = aom_read_primitive_symmetric(r, GM_ABS_ALPHA_BITS) *
|
||||
GM_ALPHA_DECODE_FACTOR +
|
||||
GM_ALPHA_DECODE_FACTOR +
|
||||
(1 << WARPEDMODEL_PREC_BITS);
|
||||
params->wmmat[3] = aom_read_primitive_symmetric(r, GM_ABS_ALPHA_BITS) *
|
||||
GM_ALPHA_DECODE_FACTOR;
|
||||
if (type == AFFINE || type == HOMOGRAPHY) {
|
||||
params->wmmat[4] = aom_read_primitive_symmetric(r, GM_ABS_ALPHA_BITS) *
|
||||
GM_ALPHA_DECODE_FACTOR;
|
||||
GM_ALPHA_DECODE_FACTOR;
|
||||
params->wmmat[5] = aom_read_primitive_symmetric(r, GM_ABS_ALPHA_BITS) *
|
||||
GM_ALPHA_DECODE_FACTOR +
|
||||
(1 << WARPEDMODEL_PREC_BITS);
|
||||
|
|
|
@ -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)
|
||||
|
@ -3971,12 +3971,10 @@ static void write_global_motion_params(WarpedMotionParams *params,
|
|||
&global_motion_types_encodings[type]);
|
||||
switch (type) {
|
||||
case HOMOGRAPHY:
|
||||
aom_write_primitive_symmetric(
|
||||
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);
|
||||
aom_write_primitive_symmetric(
|
||||
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);
|
||||
// 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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче