Home
last modified time | relevance | path

Searched refs:mvcomp (Results 1 – 2 of 2) 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/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()