Home
last modified time | relevance | path

Searched refs:mv_class (Results 1 – 6 of 6) sorted by relevance

/external/libaom/av1/encoder/
Dencodemv.c29 const int mv_class = av1_get_mv_class(mag - 1, &offset); in update_mv_component_stats() local
38 update_cdf(mvcomp->classes_cdf, mv_class, MV_CLASSES); in update_mv_component_stats()
41 if (mv_class == MV_CLASS_0) { in update_mv_component_stats()
44 const int n = mv_class + CLASS0_BITS - 1; // number of bits 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()
83 const int mv_class = av1_get_mv_class(mag - 1, &offset); in encode_mv_component() local
92 aom_write_symbol(w, mv_class, mvcomp->classes_cdf, MV_CLASSES); in encode_mv_component()
95 if (mv_class == MV_CLASS_0) { in encode_mv_component()
99 const int n = mv_class + CLASS0_BITS - 1; // number of bits in encode_mv_component()
[all …]
Dmv_prec.c62 const int mv_class = av1_get_mv_class(mag_minus_1, &offset); in keep_one_comp_stat() local
79 aom_cdf_prob *frac_part_cdf = mv_class in keep_one_comp_stat()
83 mv_class ? (cur_mvcomp_ctx->hp_cdf) : (cur_mvcomp_ctx->class0_hp_cdf); in keep_one_comp_stat()
89 const int class_rate = get_symbol_cost(class_cdf, mv_class); in keep_one_comp_stat()
91 update_cdf(class_cdf, mv_class, MV_CLASSES); in keep_one_comp_stat()
94 if (mv_class == MV_CLASS_0) { in keep_one_comp_stat()
98 const int n = mv_class + CLASS0_BITS - 1; // number of bits in keep_one_comp_stat()
/external/libvpx/vp9/encoder/
Dvp9_encodemv.c36 const int mv_class = vp9_get_mv_class(mag - 1, &offset); in encode_mv_component() local
48 &mv_class_encodings[mv_class]); in encode_mv_component()
51 if (mv_class == MV_CLASS_0) { in encode_mv_component()
55 const int n = mv_class + CLASS0_BITS - 1; // number of bits 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()
/external/libvpx/vp9/decoder/
Dvp9_decodemv.c239 const int mv_class = vpx_read_tree(r, vp9_mv_class_tree, mvcomp->classes); in read_mv_component() local
240 const int class0 = mv_class == MV_CLASS_0; in read_mv_component()
248 const int n = mv_class + CLASS0_BITS - 1; // number of bits in read_mv_component()
252 mag = CLASS0_SIZE << (mv_class + 2); in read_mv_component()
/external/libgav1/src/tile/bitstream/
Dmode_info.cc478 const int mv_class = reader_.ReadSymbol<kMvClassSymbolCount>( in ReadMotionVectorComponent() local
484 if (mv_class == 0) { in ReadMotionVectorComponent()
492 assert(mv_class <= kMvBitSymbolCount); in ReadMotionVectorComponent()
494 for (int i = 0; i < mv_class; ++i) { in ReadMotionVectorComponent()
499 magnitude += 2 << (mv_class + 2); in ReadMotionVectorComponent()
/external/libaom/av1/decoder/
Ddecodemv.c849 const int mv_class = in read_mv_component() local
851 const int class0 = mv_class == MV_CLASS_0; in read_mv_component()
858 const int n = mv_class + CLASS0_BITS - 1; // number of bits in read_mv_component()
862 mag = CLASS0_SIZE << (mv_class + 2); in read_mv_component()