Home
last modified time | relevance | path

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

/external/libaom/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.c64 const int mv_class = av1_get_mv_class(mag_minus_1, &offset); in keep_one_comp_stat() local
81 aom_cdf_prob *frac_part_cdf = mv_class in keep_one_comp_stat()
85 mv_class ? (cur_mvcomp_ctx->hp_cdf) : (cur_mvcomp_ctx->class0_hp_cdf); in keep_one_comp_stat()
91 const int class_rate = get_symbol_cost(class_cdf, mv_class); in keep_one_comp_stat()
93 update_cdf(class_cdf, mv_class, MV_CLASSES); in keep_one_comp_stat()
96 if (mv_class == MV_CLASS_0) { in keep_one_comp_stat()
100 const int n = mv_class + CLASS0_BITS - 1; // number of bits in keep_one_comp_stat()
/external/libvpx/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/libgav1/libgav1/src/tile/bitstream/
Dmode_info.cc470 const int mv_class = reader_.ReadSymbol<kMvClassSymbolCount>( in ReadMotionVectorComponent() local
476 if (mv_class == 0) { in ReadMotionVectorComponent()
484 assert(mv_class <= kMvBitSymbolCount); in ReadMotionVectorComponent()
486 for (int i = 0; i < mv_class; ++i) { in ReadMotionVectorComponent()
491 magnitude += 2 << (mv_class + 2); in ReadMotionVectorComponent()
/external/libvpx/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/libaom/libaom/av1/decoder/
Ddecodemv.c842 const int mv_class = in read_mv_component() local
844 const int class0 = mv_class == MV_CLASS_0; in read_mv_component()
851 const int n = mv_class + CLASS0_BITS - 1; // number of bits in read_mv_component()
855 mag = CLASS0_SIZE << (mv_class + 2); in read_mv_component()