Commit 233c7627 authored by Jingning Han's avatar Jingning Han

Remove unused context models for drl_index

Remove deprecated context models for drl index coding.

BUG=aomedia:1208

Change-Id: If255fa93d0c746738f0fc005464388e790c89b63
parent 774c8da1
......@@ -33,10 +33,8 @@ static const aom_cdf_prob default_refmv_cdf[REFMV_MODE_CONTEXTS][CDF_SIZE(2)] =
};
static const aom_cdf_prob default_drl_cdf[DRL_MODE_CONTEXTS][CDF_SIZE(2)] = {
{ AOM_CDF2(128 * 119) },
{ AOM_CDF2(128 * 128) },
{ AOM_CDF2(128 * 189) },
{ AOM_CDF2(128 * 134) },
{ AOM_CDF2(128 * 128) }
};
#if CONFIG_OPT_REF_MV
......
......@@ -542,7 +542,7 @@ typedef enum ATTRIBUTE_PACKED {
#define NEWMV_MODE_CONTEXTS 7
#define GLOBALMV_MODE_CONTEXTS 2
#define REFMV_MODE_CONTEXTS 9
#define DRL_MODE_CONTEXTS 5
#define DRL_MODE_CONTEXTS 3
#define GLOBALMV_OFFSET 3
#define REFMV_OFFSET 4
......
......@@ -378,11 +378,11 @@ static INLINE uint8_t av1_drl_ctx(const CANDIDATE_MV *ref_mv_stack,
if (ref_mv_stack[ref_idx].weight >= REF_CAT_LEVEL &&
ref_mv_stack[ref_idx + 1].weight < REF_CAT_LEVEL)
return 2;
return 1;
if (ref_mv_stack[ref_idx].weight < REF_CAT_LEVEL &&
ref_mv_stack[ref_idx + 1].weight < REF_CAT_LEVEL)
return 3;
return 2;
return 0;
}
......
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