Searched refs:mvcomp (Results 1 – 4 of 4) sorted by relevance
/external/libaom/libaom/av1/encoder/ |
D | encodemv.c | 23 static void update_mv_component_stats(int comp, nmv_component *mvcomp, in update_mv_component_stats() argument 35 update_cdf(mvcomp->sign_cdf, sign, 2); in update_mv_component_stats() 38 update_cdf(mvcomp->classes_cdf, mv_class, MV_CLASSES); in update_mv_component_stats() 42 update_cdf(mvcomp->class0_cdf, d, CLASS0_SIZE); in update_mv_component_stats() 46 update_cdf(mvcomp->bits_cdf[i], (d >> i) & 1, 2); in update_mv_component_stats() 51 mv_class == MV_CLASS_0 ? mvcomp->class0_fp_cdf[d] : mvcomp->fp_cdf; in update_mv_component_stats() 58 mv_class == MV_CLASS_0 ? mvcomp->class0_hp_cdf : mvcomp->hp_cdf; in update_mv_component_stats() 77 static void encode_mv_component(aom_writer *w, int comp, nmv_component *mvcomp, in encode_mv_component() argument 89 aom_write_symbol(w, sign, mvcomp->sign_cdf, 2); in encode_mv_component() 92 aom_write_symbol(w, mv_class, mvcomp->classes_cdf, MV_CLASSES); in encode_mv_component() [all …]
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_encodemv.c | 32 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/libvpx/libvpx/vp9/decoder/ |
D | vp9_decodemv.c | 235 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/ |
D | decodemv.c | 838 static int read_mv_component(aom_reader *r, nmv_component *mvcomp, in read_mv_component() argument 841 const int sign = aom_read_symbol(r, mvcomp->sign_cdf, 2, ACCT_STR); in read_mv_component() 843 aom_read_symbol(r, mvcomp->classes_cdf, MV_CLASSES, ACCT_STR); in read_mv_component() 848 d = aom_read_symbol(r, mvcomp->class0_cdf, CLASS0_SIZE, ACCT_STR); in read_mv_component() 854 d |= aom_read_symbol(r, mvcomp->bits_cdf[i], 2, ACCT_STR) << i; in read_mv_component() 860 fr = aom_read_symbol(r, class0 ? mvcomp->class0_fp_cdf[d] : mvcomp->fp_cdf, in read_mv_component() 865 r, class0 ? mvcomp->class0_hp_cdf : mvcomp->hp_cdf, 2, in read_mv_component()
|