Home
last modified time | relevance | path

Searched refs:mvcomp (Results 1 – 4 of 4) sorted by relevance

/external/libvpx/libvpx/vp9/encoder/
Dvp9_encodemv.c32 const nmv_component *mvcomp, int usehp) { in encode_mv_component() argument
44 vpx_write(w, sign, mvcomp->sign); in encode_mv_component()
47 vp9_write_token(w, vp9_mv_class_tree, mvcomp->classes, in encode_mv_component()
52 vpx_write(w, d, mvcomp->class0[0]); in encode_mv_component()
56 for (i = 0; i < n; ++i) vpx_write(w, (d >> i) & 1, mvcomp->bits[i]); in encode_mv_component()
61 mv_class == MV_CLASS_0 ? mvcomp->class0_fp[d] : mvcomp->fp, in encode_mv_component()
66 vpx_write(w, hp, mv_class == MV_CLASS_0 ? mvcomp->class0_hp : mvcomp->hp); in encode_mv_component()
70 const nmv_component *const mvcomp, in build_nmv_component_cost_table() argument
79 sign_cost[0] = vp9_cost_zero(mvcomp->sign); in build_nmv_component_cost_table()
80 sign_cost[1] = vp9_cost_one(mvcomp->sign); in build_nmv_component_cost_table()
[all …]
/external/libaom/libaom/av1/encoder/
Dencodemv.c41 static void encode_mv_component(aom_writer *w, int comp, nmv_component *mvcomp, in encode_mv_component() argument
53 aom_write_symbol(w, sign, mvcomp->sign_cdf, 2); in encode_mv_component()
56 aom_write_symbol(w, mv_class, mvcomp->classes_cdf, MV_CLASSES); in encode_mv_component()
60 aom_write_symbol(w, d, mvcomp->class0_cdf, CLASS0_SIZE); in encode_mv_component()
65 aom_write_symbol(w, (d >> i) & 1, mvcomp->bits_cdf[i], 2); in encode_mv_component()
71 mv_class == MV_CLASS_0 ? mvcomp->class0_fp_cdf[d] : mvcomp->fp_cdf, in encode_mv_component()
78 w, hp, mv_class == MV_CLASS_0 ? mvcomp->class0_hp_cdf : mvcomp->hp_cdf, in encode_mv_component()
83 const nmv_component *const mvcomp, in build_nmv_component_cost_table() argument
91 av1_cost_tokens_from_cdf(sign_cost, mvcomp->sign_cdf, NULL); in build_nmv_component_cost_table()
92 av1_cost_tokens_from_cdf(class_cost, mvcomp->classes_cdf, NULL); in build_nmv_component_cost_table()
[all …]
/external/libvpx/libvpx/vp9/decoder/
Dvp9_decodemv.c235 static int read_mv_component(vpx_reader *r, const nmv_component *mvcomp, in read_mv_component() argument
238 const int sign = vpx_read(r, mvcomp->sign); in read_mv_component()
239 const int mv_class = vpx_read_tree(r, vp9_mv_class_tree, mvcomp->classes); in read_mv_component()
244 d = vpx_read(r, mvcomp->class0[0]); in read_mv_component()
251 for (i = 0; i < n; ++i) d |= vpx_read(r, mvcomp->bits[i]) << i; in read_mv_component()
257 class0 ? mvcomp->class0_fp[d] : mvcomp->fp); in read_mv_component()
260 hp = usehp ? vpx_read(r, class0 ? mvcomp->class0_hp : mvcomp->hp) : 1; in read_mv_component()
/external/libaom/libaom/av1/decoder/
Ddecodemv.c823 static int read_mv_component(aom_reader *r, nmv_component *mvcomp, in read_mv_component() argument
826 const int sign = aom_read_symbol(r, mvcomp->sign_cdf, 2, ACCT_STR); in read_mv_component()
828 aom_read_symbol(r, mvcomp->classes_cdf, MV_CLASSES, ACCT_STR); in read_mv_component()
833 d = aom_read_symbol(r, mvcomp->class0_cdf, CLASS0_SIZE, ACCT_STR); in read_mv_component()
839 d |= aom_read_symbol(r, mvcomp->bits_cdf[i], 2, ACCT_STR) << i; in read_mv_component()
845 fr = aom_read_symbol(r, class0 ? mvcomp->class0_fp_cdf[d] : mvcomp->fp_cdf, in read_mv_component()
850 r, class0 ? mvcomp->class0_hp_cdf : mvcomp->hp_cdf, 2, in read_mv_component()