Home
last modified time | relevance | path

Searched refs:nsymbs (Results 1 – 8 of 8) sorted by relevance

/external/libaom/libaom/aom_dsp/
Dbitreader.h44 #define aom_read_cdf(r, cdf, nsymbs, ACCT_STR_NAME) \ argument
45 aom_read_cdf_(r, cdf, nsymbs ACCT_STR_ARG(ACCT_STR_NAME))
46 #define aom_read_symbol(r, cdf, nsymbs, ACCT_STR_NAME) \ argument
47 aom_read_symbol_(r, cdf, nsymbs ACCT_STR_ARG(ACCT_STR_NAME))
165 int nsymbs ACCT_STR_PARAM) { in aom_read_cdf_()
168 symb = od_ec_decode_cdf_q15(&r->ec, cdf, nsymbs); in aom_read_cdf_()
179 if (nsymbs != ref_nsymbs) { in aom_read_cdf_()
183 frame_idx, nsymbs, ref_nsymbs, queue_r); in aom_read_cdf_()
187 for (i = 0; i < nsymbs; ++i) in aom_read_cdf_()
193 for (i = 1; i < nsymbs; ++i) fprintf(stderr, ", %d", cdf[i]); in aom_read_cdf_()
[all …]
Dbitwriter.h92 const aom_cdf_prob *cdf, int nsymbs) { in aom_write_cdf() argument
102 bitstream_queue_push(symb, cdf, nsymbs); in aom_write_cdf()
105 od_ec_encode_cdf_q15(&w->ec, symb, cdf, nsymbs); in aom_write_cdf()
109 int nsymbs) { in aom_write_symbol() argument
110 aom_write_cdf(w, symb, cdf, nsymbs); in aom_write_symbol()
111 if (w->allow_update_cdf) update_cdf(cdf, symb, nsymbs); in aom_write_symbol()
Dprob.h643 static INLINE void update_cdf(aom_cdf_prob *cdf, int8_t val, int nsymbs) { in update_cdf() argument
649 assert(nsymbs < 17); in update_cdf()
650 rate = 3 + (cdf[nsymbs] > 15) + (cdf[nsymbs] > 31) + in update_cdf()
651 nsymbs2speed[nsymbs]; // + get_msb(nsymbs); in update_cdf()
655 for (i = 0; i < nsymbs - 1; ++i) { in update_cdf()
663 cdf[nsymbs] += (cdf[nsymbs] < 32); in update_cdf()
/external/libaom/libaom/av1/common/
Dentropy.c55 int nsymbs) { in reset_cdf_symbol_counter() argument
57 cdf_ptr[i * cdf_stride + nsymbs] = 0; in reset_cdf_symbol_counter()
61 #define RESET_CDF_COUNTER(cname, nsymbs) \ argument
62 RESET_CDF_COUNTER_STRIDE(cname, nsymbs, CDF_SIZE(nsymbs))
64 #define RESET_CDF_COUNTER_STRIDE(cname, nsymbs, cdf_stride) \ argument
69 reset_cdf_symbol_counter(cdf_ptr, num_cdfs, cdf_stride, nsymbs); \
115 int nsymbs = j + PALETTE_MIN_SIZE; in av1_reset_cdf_symbol_counters() local
116 RESET_CDF_COUNTER_STRIDE(fc->palette_y_color_index_cdf[j], nsymbs, in av1_reset_cdf_symbol_counters()
118 RESET_CDF_COUNTER_STRIDE(fc->palette_uv_color_index_cdf[j], nsymbs, in av1_reset_cdf_symbol_counters()
/external/libaom/libaom/aom_util/
Ddebug_util.c57 void bitstream_queue_pop(int *result, aom_cdf_prob *cdf, int *nsymbs) { in bitstream_queue_pop() argument
64 *nsymbs = nsymbs_queue[queue_r]; in bitstream_queue_pop()
65 memcpy(cdf, cdf_queue[queue_r], *nsymbs * sizeof(*cdf)); in bitstream_queue_pop()
70 void bitstream_queue_push(int result, const aom_cdf_prob *cdf, int nsymbs) { in bitstream_queue_push() argument
73 nsymbs_queue[queue_w] = nsymbs; in bitstream_queue_push()
74 memcpy(cdf_queue[queue_w], cdf, nsymbs * sizeof(*cdf)); in bitstream_queue_push()
Ddebug_util.h41 void bitstream_queue_pop(int *result, aom_cdf_prob *cdf, int *nsymbs);
42 void bitstream_queue_push(int result, const aom_cdf_prob *cdf, int nsymbs);
/external/libaom/libaom/av1/decoder/
Ddecodetxb.c71 const int nsymbs = 4; in read_coeffs_reverse_2d() local
72 int level = aom_read_symbol(r, base_cdf[coeff_ctx], nsymbs, ACCT_STR); in read_coeffs_reverse_2d()
95 const int nsymbs = 4; in read_coeffs_reverse() local
96 int level = aom_read_symbol(r, base_cdf[coeff_ctx], nsymbs, ACCT_STR); in read_coeffs_reverse()
249 const int nsymbs = 3; in av1_read_coeffs_txb() local
252 int level = aom_read_symbol(r, cdf, nsymbs, ACCT_STR) + 1; in av1_read_coeffs_txb()
/external/libaom/libaom/av1/encoder/
Dencodeframe.c4208 int cdf_stride, int nsymbs, int wt_left, in avg_cdf_symbol() argument
4211 for (int j = 0; j <= nsymbs; j++) { in avg_cdf_symbol()
4223 #define AVERAGE_CDF(cname_left, cname_tr, nsymbs) \ argument
4224 AVG_CDF_STRIDE(cname_left, cname_tr, nsymbs, CDF_SIZE(nsymbs))
4226 #define AVG_CDF_STRIDE(cname_left, cname_tr, nsymbs, cdf_stride) \ argument
4232 avg_cdf_symbol(cdf_ptr_left, cdf_ptr_tr, num_cdfs, cdf_stride, nsymbs, \
4296 int nsymbs = j + PALETTE_MIN_SIZE; in avg_cdf_symbols() local
4298 ctx_tr->palette_y_color_index_cdf[j], nsymbs, in avg_cdf_symbols()
4301 ctx_tr->palette_uv_color_index_cdf[j], nsymbs, in avg_cdf_symbols()