Remove unused input in av1_encode_mv()
Change-Id: I54a0fbaeb59de0907a17b73dab4170cf62b4fd8d
This commit is contained in:
Родитель
a1f6432dfa
Коммит
09c0a5bcf5
|
@ -1486,12 +1486,9 @@ static void pack_inter_mode_mvs(AV1_COMP *cpi, const MODE_INFO *mi,
|
|||
av1_encode_mv(cpi, w, &mi->bmi[j].as_mv[ref].as_mv,
|
||||
#if CONFIG_EXT_INTER
|
||||
&mi->bmi[j].ref_mv[ref].as_mv,
|
||||
#if CONFIG_REF_MV
|
||||
is_compound,
|
||||
#endif
|
||||
#else
|
||||
#if CONFIG_REF_MV
|
||||
&mi->bmi[j].pred_mv[ref].as_mv, is_compound,
|
||||
&mi->bmi[j].pred_mv[ref].as_mv,
|
||||
#else
|
||||
&mbmi_ext->ref_mvs[mbmi->ref_frame[ref]][0].as_mv,
|
||||
#endif // CONFIG_REF_MV
|
||||
|
@ -1509,11 +1506,7 @@ static void pack_inter_mode_mvs(AV1_COMP *cpi, const MODE_INFO *mi,
|
|||
nmv_context *nmvc = &ec_ctx->nmvc[nmv_ctx];
|
||||
#endif
|
||||
av1_encode_mv(cpi, w, &mi->bmi[j].as_mv[1].as_mv,
|
||||
&mi->bmi[j].ref_mv[1].as_mv,
|
||||
#if CONFIG_REF_MV
|
||||
is_compound,
|
||||
#endif
|
||||
nmvc, allow_hp);
|
||||
&mi->bmi[j].ref_mv[1].as_mv, nmvc, allow_hp);
|
||||
} else if (b_mode == NEW_NEARESTMV || b_mode == NEW_NEARMV) {
|
||||
#if CONFIG_REF_MV
|
||||
int8_t rf_type = av1_ref_frame_type(mbmi->ref_frame);
|
||||
|
@ -1523,11 +1516,7 @@ static void pack_inter_mode_mvs(AV1_COMP *cpi, const MODE_INFO *mi,
|
|||
nmv_context *nmvc = &ec_ctx->nmvc[nmv_ctx];
|
||||
#endif
|
||||
av1_encode_mv(cpi, w, &mi->bmi[j].as_mv[0].as_mv,
|
||||
&mi->bmi[j].ref_mv[0].as_mv,
|
||||
#if CONFIG_REF_MV
|
||||
is_compound,
|
||||
#endif
|
||||
nmvc, allow_hp);
|
||||
&mi->bmi[j].ref_mv[0].as_mv, nmvc, allow_hp);
|
||||
}
|
||||
#endif // CONFIG_EXT_INTER
|
||||
}
|
||||
|
@ -1552,17 +1541,11 @@ static void pack_inter_mode_mvs(AV1_COMP *cpi, const MODE_INFO *mi,
|
|||
if (mode == NEWFROMNEARMV)
|
||||
av1_encode_mv(cpi, w, &mbmi->mv[ref].as_mv,
|
||||
&mbmi_ext->ref_mvs[mbmi->ref_frame[ref]][1].as_mv,
|
||||
#if CONFIG_REF_MV
|
||||
is_compound,
|
||||
#endif
|
||||
nmvc, allow_hp);
|
||||
else
|
||||
#endif // CONFIG_EXT_INTER
|
||||
av1_encode_mv(cpi, w, &mbmi->mv[ref].as_mv, &ref_mv.as_mv,
|
||||
#if CONFIG_REF_MV
|
||||
is_compound,
|
||||
#endif
|
||||
nmvc, allow_hp);
|
||||
av1_encode_mv(cpi, w, &mbmi->mv[ref].as_mv, &ref_mv.as_mv, nmvc,
|
||||
allow_hp);
|
||||
}
|
||||
#if CONFIG_EXT_INTER
|
||||
} else if (mode == NEAREST_NEWMV || mode == NEAR_NEWMV) {
|
||||
|
@ -1574,11 +1557,8 @@ static void pack_inter_mode_mvs(AV1_COMP *cpi, const MODE_INFO *mi,
|
|||
nmv_context *nmvc = &ec_ctx->nmvc[nmv_ctx];
|
||||
#endif
|
||||
av1_encode_mv(cpi, w, &mbmi->mv[1].as_mv,
|
||||
&mbmi_ext->ref_mvs[mbmi->ref_frame[1]][0].as_mv,
|
||||
#if CONFIG_REF_MV
|
||||
is_compound,
|
||||
#endif
|
||||
nmvc, allow_hp);
|
||||
&mbmi_ext->ref_mvs[mbmi->ref_frame[1]][0].as_mv, nmvc,
|
||||
allow_hp);
|
||||
} else if (mode == NEW_NEARESTMV || mode == NEW_NEARMV) {
|
||||
#if CONFIG_REF_MV
|
||||
int8_t rf_type = av1_ref_frame_type(mbmi->ref_frame);
|
||||
|
@ -1588,11 +1568,8 @@ static void pack_inter_mode_mvs(AV1_COMP *cpi, const MODE_INFO *mi,
|
|||
nmv_context *nmvc = &ec_ctx->nmvc[nmv_ctx];
|
||||
#endif
|
||||
av1_encode_mv(cpi, w, &mbmi->mv[0].as_mv,
|
||||
&mbmi_ext->ref_mvs[mbmi->ref_frame[0]][0].as_mv,
|
||||
#if CONFIG_REF_MV
|
||||
is_compound,
|
||||
#endif
|
||||
nmvc, allow_hp);
|
||||
&mbmi_ext->ref_mvs[mbmi->ref_frame[0]][0].as_mv, nmvc,
|
||||
allow_hp);
|
||||
#endif // CONFIG_EXT_INTER
|
||||
}
|
||||
}
|
||||
|
|
|
@ -256,15 +256,9 @@ void av1_write_nmv_probs(AV1_COMMON *cm, int usehp, aom_writer *w,
|
|||
}
|
||||
|
||||
void av1_encode_mv(AV1_COMP *cpi, aom_writer *w, const MV *mv, const MV *ref,
|
||||
#if CONFIG_REF_MV
|
||||
int is_compound,
|
||||
#endif
|
||||
nmv_context *mvctx, int usehp) {
|
||||
const MV diff = { mv->row - ref->row, mv->col - ref->col };
|
||||
const MV_JOINT_TYPE j = av1_get_mv_joint(&diff);
|
||||
#if CONFIG_REF_MV
|
||||
(void)is_compound;
|
||||
#endif
|
||||
#if CONFIG_EC_MULTISYMBOL
|
||||
aom_write_symbol(w, j, mvctx->joint_cdf, MV_JOINTS);
|
||||
#else
|
||||
|
|
|
@ -24,9 +24,6 @@ void av1_write_nmv_probs(AV1_COMMON *cm, int usehp, aom_writer *w,
|
|||
nmv_context_counts *const counts);
|
||||
|
||||
void av1_encode_mv(AV1_COMP *cpi, aom_writer *w, const MV *mv, const MV *ref,
|
||||
#if CONFIG_REF_MV
|
||||
int is_compound,
|
||||
#endif
|
||||
nmv_context *mvctx, int usehp);
|
||||
|
||||
void av1_build_nmv_cost_table(int *mvjoint, int *mvcost[2],
|
||||
|
|
Загрузка…
Ссылка в новой задаче