Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright (c) 2016, Alliance for Open Media. All rights reserved. |
3 | | * |
4 | | * This source code is subject to the terms of the BSD 2 Clause License and |
5 | | * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License |
6 | | * was not distributed with this source code in the LICENSE file, you can |
7 | | * obtain it at www.aomedia.org/license/software. If the Alliance for Open |
8 | | * Media Patent License 1.0 was not distributed with this source code in the |
9 | | * PATENTS file, you can obtain it at www.aomedia.org/license/patent. |
10 | | */ |
11 | | |
12 | | #ifndef AOM_AOM_DSP_PROB_H_ |
13 | | #define AOM_AOM_DSP_PROB_H_ |
14 | | |
15 | | #include <assert.h> |
16 | | #include <stdio.h> |
17 | | |
18 | | #include "config/aom_config.h" |
19 | | |
20 | | #include "aom_dsp/aom_dsp_common.h" |
21 | | #include "aom_dsp/entcode.h" |
22 | | #include "aom_ports/bitops.h" |
23 | | #include "aom_ports/mem.h" |
24 | | |
25 | | #ifdef __cplusplus |
26 | | extern "C" { |
27 | | #endif |
28 | | |
29 | | typedef uint16_t aom_cdf_prob; |
30 | | |
31 | | #define CDF_SIZE(x) ((x) + 1) |
32 | 388M | #define CDF_PROB_BITS 15 |
33 | 388M | #define CDF_PROB_TOP (1 << CDF_PROB_BITS) |
34 | | /*The value stored in an iCDF is CDF_PROB_TOP minus the actual cumulative |
35 | | probability (an "inverse" CDF). |
36 | | This function converts from one representation to the other (and is its own |
37 | | inverse).*/ |
38 | 844k | #define AOM_ICDF(x) (CDF_PROB_TOP - (x)) |
39 | | |
40 | | #define AOM_CDF2(a0) AOM_ICDF(a0), AOM_ICDF(CDF_PROB_TOP), 0 |
41 | | #define AOM_CDF3(a0, a1) AOM_ICDF(a0), AOM_ICDF(a1), AOM_ICDF(CDF_PROB_TOP), 0 |
42 | | #define AOM_CDF4(a0, a1, a2) \ |
43 | | AOM_ICDF(a0), AOM_ICDF(a1), AOM_ICDF(a2), AOM_ICDF(CDF_PROB_TOP), 0 |
44 | | #define AOM_CDF5(a0, a1, a2, a3) \ |
45 | | AOM_ICDF(a0) \ |
46 | | , AOM_ICDF(a1), AOM_ICDF(a2), AOM_ICDF(a3), AOM_ICDF(CDF_PROB_TOP), 0 |
47 | | #define AOM_CDF6(a0, a1, a2, a3, a4) \ |
48 | | AOM_ICDF(a0) \ |
49 | | , AOM_ICDF(a1), AOM_ICDF(a2), AOM_ICDF(a3), AOM_ICDF(a4), \ |
50 | | AOM_ICDF(CDF_PROB_TOP), 0 |
51 | | #define AOM_CDF7(a0, a1, a2, a3, a4, a5) \ |
52 | | AOM_ICDF(a0) \ |
53 | | , AOM_ICDF(a1), AOM_ICDF(a2), AOM_ICDF(a3), AOM_ICDF(a4), AOM_ICDF(a5), \ |
54 | | AOM_ICDF(CDF_PROB_TOP), 0 |
55 | | #define AOM_CDF8(a0, a1, a2, a3, a4, a5, a6) \ |
56 | | AOM_ICDF(a0) \ |
57 | | , AOM_ICDF(a1), AOM_ICDF(a2), AOM_ICDF(a3), AOM_ICDF(a4), AOM_ICDF(a5), \ |
58 | | AOM_ICDF(a6), AOM_ICDF(CDF_PROB_TOP), 0 |
59 | | #define AOM_CDF9(a0, a1, a2, a3, a4, a5, a6, a7) \ |
60 | | AOM_ICDF(a0) \ |
61 | | , AOM_ICDF(a1), AOM_ICDF(a2), AOM_ICDF(a3), AOM_ICDF(a4), AOM_ICDF(a5), \ |
62 | | AOM_ICDF(a6), AOM_ICDF(a7), AOM_ICDF(CDF_PROB_TOP), 0 |
63 | | #define AOM_CDF10(a0, a1, a2, a3, a4, a5, a6, a7, a8) \ |
64 | | AOM_ICDF(a0) \ |
65 | | , AOM_ICDF(a1), AOM_ICDF(a2), AOM_ICDF(a3), AOM_ICDF(a4), AOM_ICDF(a5), \ |
66 | | AOM_ICDF(a6), AOM_ICDF(a7), AOM_ICDF(a8), AOM_ICDF(CDF_PROB_TOP), 0 |
67 | | #define AOM_CDF11(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) \ |
68 | | AOM_ICDF(a0) \ |
69 | | , AOM_ICDF(a1), AOM_ICDF(a2), AOM_ICDF(a3), AOM_ICDF(a4), AOM_ICDF(a5), \ |
70 | | AOM_ICDF(a6), AOM_ICDF(a7), AOM_ICDF(a8), AOM_ICDF(a9), \ |
71 | | AOM_ICDF(CDF_PROB_TOP), 0 |
72 | | #define AOM_CDF12(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) \ |
73 | | AOM_ICDF(a0) \ |
74 | | , AOM_ICDF(a1), AOM_ICDF(a2), AOM_ICDF(a3), AOM_ICDF(a4), AOM_ICDF(a5), \ |
75 | | AOM_ICDF(a6), AOM_ICDF(a7), AOM_ICDF(a8), AOM_ICDF(a9), AOM_ICDF(a10), \ |
76 | | AOM_ICDF(CDF_PROB_TOP), 0 |
77 | | #define AOM_CDF13(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) \ |
78 | | AOM_ICDF(a0) \ |
79 | | , AOM_ICDF(a1), AOM_ICDF(a2), AOM_ICDF(a3), AOM_ICDF(a4), AOM_ICDF(a5), \ |
80 | | AOM_ICDF(a6), AOM_ICDF(a7), AOM_ICDF(a8), AOM_ICDF(a9), AOM_ICDF(a10), \ |
81 | | AOM_ICDF(a11), AOM_ICDF(CDF_PROB_TOP), 0 |
82 | | #define AOM_CDF14(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) \ |
83 | | AOM_ICDF(a0) \ |
84 | | , AOM_ICDF(a1), AOM_ICDF(a2), AOM_ICDF(a3), AOM_ICDF(a4), AOM_ICDF(a5), \ |
85 | | AOM_ICDF(a6), AOM_ICDF(a7), AOM_ICDF(a8), AOM_ICDF(a9), AOM_ICDF(a10), \ |
86 | | AOM_ICDF(a11), AOM_ICDF(a12), AOM_ICDF(CDF_PROB_TOP), 0 |
87 | | #define AOM_CDF15(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) \ |
88 | | AOM_ICDF(a0) \ |
89 | | , AOM_ICDF(a1), AOM_ICDF(a2), AOM_ICDF(a3), AOM_ICDF(a4), AOM_ICDF(a5), \ |
90 | | AOM_ICDF(a6), AOM_ICDF(a7), AOM_ICDF(a8), AOM_ICDF(a9), AOM_ICDF(a10), \ |
91 | | AOM_ICDF(a11), AOM_ICDF(a12), AOM_ICDF(a13), AOM_ICDF(CDF_PROB_TOP), 0 |
92 | | #define AOM_CDF16(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, \ |
93 | | a14) \ |
94 | | AOM_ICDF(a0) \ |
95 | | , AOM_ICDF(a1), AOM_ICDF(a2), AOM_ICDF(a3), AOM_ICDF(a4), AOM_ICDF(a5), \ |
96 | | AOM_ICDF(a6), AOM_ICDF(a7), AOM_ICDF(a8), AOM_ICDF(a9), AOM_ICDF(a10), \ |
97 | | AOM_ICDF(a11), AOM_ICDF(a12), AOM_ICDF(a13), AOM_ICDF(a14), \ |
98 | | AOM_ICDF(CDF_PROB_TOP), 0 |
99 | | |
100 | 0 | static inline uint8_t get_prob(unsigned int num, unsigned int den) { |
101 | 0 | assert(den != 0); |
102 | 0 | { |
103 | 0 | const int p = (int)(((uint64_t)num * 256 + (den >> 1)) / den); |
104 | | // (p > 255) ? 255 : (p < 1) ? 1 : p; |
105 | 0 | const int clipped_prob = p | ((255 - p) >> 23) | (p == 0); |
106 | 0 | return (uint8_t)clipped_prob; |
107 | 0 | } |
108 | 0 | } Unexecuted instantiation: av1_dx_iface.c:get_prob Unexecuted instantiation: decodeframe.c:get_prob Unexecuted instantiation: decodemv.c:get_prob Unexecuted instantiation: decoder.c:get_prob Unexecuted instantiation: decodetxb.c:get_prob Unexecuted instantiation: detokenize.c:get_prob Unexecuted instantiation: obu.c:get_prob Unexecuted instantiation: av1_cx_iface.c:get_prob Unexecuted instantiation: allintra_vis.c:get_prob Unexecuted instantiation: av1_quantize.c:get_prob Unexecuted instantiation: bitstream.c:get_prob Unexecuted instantiation: context_tree.c:get_prob Unexecuted instantiation: encodeframe.c:get_prob Unexecuted instantiation: encodeframe_utils.c:get_prob Unexecuted instantiation: encodemb.c:get_prob Unexecuted instantiation: encodemv.c:get_prob Unexecuted instantiation: encoder.c:get_prob Unexecuted instantiation: encoder_utils.c:get_prob Unexecuted instantiation: encodetxb.c:get_prob Unexecuted instantiation: ethread.c:get_prob Unexecuted instantiation: firstpass.c:get_prob Unexecuted instantiation: global_motion_facade.c:get_prob Unexecuted instantiation: hash.c:get_prob Unexecuted instantiation: hash_motion.c:get_prob Unexecuted instantiation: hybrid_fwd_txfm.c:get_prob Unexecuted instantiation: level.c:get_prob Unexecuted instantiation: lookahead.c:get_prob Unexecuted instantiation: mcomp.c:get_prob Unexecuted instantiation: mv_prec.c:get_prob Unexecuted instantiation: palette.c:get_prob Unexecuted instantiation: partition_search.c:get_prob Unexecuted instantiation: partition_strategy.c:get_prob Unexecuted instantiation: pass2_strategy.c:get_prob Unexecuted instantiation: pickcdef.c:get_prob Unexecuted instantiation: picklpf.c:get_prob Unexecuted instantiation: pickrst.c:get_prob Unexecuted instantiation: ratectrl.c:get_prob Unexecuted instantiation: rd.c:get_prob Unexecuted instantiation: rdopt.c:get_prob Unexecuted instantiation: nonrd_pickmode.c:get_prob Unexecuted instantiation: nonrd_opt.c:get_prob Unexecuted instantiation: reconinter_enc.c:get_prob Unexecuted instantiation: segmentation.c:get_prob Unexecuted instantiation: speed_features.c:get_prob Unexecuted instantiation: superres_scale.c:get_prob Unexecuted instantiation: svc_layercontext.c:get_prob Unexecuted instantiation: temporal_filter.c:get_prob Unexecuted instantiation: tokenize.c:get_prob Unexecuted instantiation: tpl_model.c:get_prob Unexecuted instantiation: tx_search.c:get_prob Unexecuted instantiation: txb_rdopt.c:get_prob Unexecuted instantiation: intra_mode_search.c:get_prob Unexecuted instantiation: var_based_part.c:get_prob Unexecuted instantiation: av1_noise_estimate.c:get_prob Unexecuted instantiation: dwt.c:get_prob Unexecuted instantiation: aom_dsp_rtcd.c:get_prob Unexecuted instantiation: av1_rtcd.c:get_prob Unexecuted instantiation: aom_convolve.c:get_prob Unexecuted instantiation: blend_a64_mask.c:get_prob Unexecuted instantiation: binary_codes_reader.c:get_prob Unexecuted instantiation: bitreader.c:get_prob Unexecuted instantiation: entdec.c:get_prob Unexecuted instantiation: avg.c:get_prob Unexecuted instantiation: bitwriter.c:get_prob Unexecuted instantiation: blk_sse_sum.c:get_prob Unexecuted instantiation: entenc.c:get_prob Unexecuted instantiation: fwd_txfm.c:get_prob Unexecuted instantiation: psnr.c:get_prob Unexecuted instantiation: quantize.c:get_prob Unexecuted instantiation: sad.c:get_prob Unexecuted instantiation: sad_av1.c:get_prob Unexecuted instantiation: subtract.c:get_prob Unexecuted instantiation: sse.c:get_prob Unexecuted instantiation: sum_squares.c:get_prob Unexecuted instantiation: variance.c:get_prob Unexecuted instantiation: pyramid.c:get_prob Unexecuted instantiation: binary_codes_writer.c:get_prob Unexecuted instantiation: noise_util.c:get_prob Unexecuted instantiation: alloccommon.c:get_prob Unexecuted instantiation: av1_loopfilter.c:get_prob Unexecuted instantiation: blockd.c:get_prob Unexecuted instantiation: cdef.c:get_prob Unexecuted instantiation: cdef_block.c:get_prob Unexecuted instantiation: cfl.c:get_prob Unexecuted instantiation: debugmodes.c:get_prob Unexecuted instantiation: entropy.c:get_prob Unexecuted instantiation: entropymode.c:get_prob Unexecuted instantiation: entropymv.c:get_prob Unexecuted instantiation: idct.c:get_prob Unexecuted instantiation: mvref_common.c:get_prob Unexecuted instantiation: pred_common.c:get_prob Unexecuted instantiation: quant_common.c:get_prob Unexecuted instantiation: reconinter.c:get_prob Unexecuted instantiation: reconintra.c:get_prob Unexecuted instantiation: resize.c:get_prob Unexecuted instantiation: restoration.c:get_prob Unexecuted instantiation: scale.c:get_prob Unexecuted instantiation: scan.c:get_prob Unexecuted instantiation: seg_common.c:get_prob Unexecuted instantiation: thread_common.c:get_prob Unexecuted instantiation: tile_common.c:get_prob Unexecuted instantiation: txb_common.c:get_prob Unexecuted instantiation: warped_motion.c:get_prob Unexecuted instantiation: aq_complexity.c:get_prob Unexecuted instantiation: aq_cyclicrefresh.c:get_prob Unexecuted instantiation: aq_variance.c:get_prob Unexecuted instantiation: av1_fwd_txfm2d.c:get_prob Unexecuted instantiation: cnn.c:get_prob Unexecuted instantiation: compound_type.c:get_prob Unexecuted instantiation: cost.c:get_prob Unexecuted instantiation: encode_strategy.c:get_prob Unexecuted instantiation: global_motion.c:get_prob Unexecuted instantiation: gop_structure.c:get_prob Unexecuted instantiation: interp_search.c:get_prob Unexecuted instantiation: ml.c:get_prob Unexecuted instantiation: motion_search_facade.c:get_prob Unexecuted instantiation: wedge_utils.c:get_prob Unexecuted instantiation: blend_a64_hmask.c:get_prob Unexecuted instantiation: blend_a64_vmask.c:get_prob Unexecuted instantiation: entcode.c:get_prob Unexecuted instantiation: intrapred.c:get_prob Unexecuted instantiation: loopfilter.c:get_prob Unexecuted instantiation: fft.c:get_prob Unexecuted instantiation: corner_match.c:get_prob Unexecuted instantiation: disflow.c:get_prob Unexecuted instantiation: av1_inv_txfm2d.c:get_prob Unexecuted instantiation: av1_txfm.c:get_prob Unexecuted instantiation: convolve.c:get_prob Unexecuted instantiation: av1_fwd_txfm1d.c:get_prob Unexecuted instantiation: av1_inv_txfm1d.c:get_prob |
109 | | |
110 | 382M | static inline void update_cdf(aom_cdf_prob *cdf, int8_t val, int nsymbs) { |
111 | 382M | assert(nsymbs < 17); |
112 | 382M | const int count = cdf[nsymbs]; |
113 | | |
114 | | // rate is computed in the spec as: |
115 | | // 3 + ( cdf[N] > 15 ) + ( cdf[N] > 31 ) + Min(FloorLog2(N), 2) |
116 | | // In this case cdf[N] is |count|. |
117 | | // Min(FloorLog2(N), 2) is 1 for nsymbs == {2, 3} and 2 for all |
118 | | // nsymbs > 3. So the equation becomes: |
119 | | // 4 + (count > 15) + (count > 31) + (nsymbs > 3). |
120 | | // Note that the largest value for count is 32 (it is not incremented beyond |
121 | | // 32). So using that information: |
122 | | // count >> 4 is 0 for count from 0 to 15. |
123 | | // count >> 4 is 1 for count from 16 to 31. |
124 | | // count >> 4 is 2 for count == 31. |
125 | | // Now, the equation becomes: |
126 | | // 4 + (count >> 4) + (nsymbs > 3). |
127 | 382M | const int rate = 4 + (count >> 4) + (nsymbs > 3); |
128 | | |
129 | 382M | int i = 0; |
130 | 1.29G | do { |
131 | 1.29G | if (i < val) { |
132 | 387M | cdf[i] += (CDF_PROB_TOP - cdf[i]) >> rate; |
133 | 912M | } else { |
134 | 912M | cdf[i] -= cdf[i] >> rate; |
135 | 912M | } |
136 | 1.29G | } while (++i < nsymbs - 1); |
137 | 382M | cdf[nsymbs] += (count < 32); |
138 | 382M | } Unexecuted instantiation: av1_dx_iface.c:update_cdf Line | Count | Source | 110 | 4.77M | static inline void update_cdf(aom_cdf_prob *cdf, int8_t val, int nsymbs) { | 111 | 4.77M | assert(nsymbs < 17); | 112 | 4.77M | const int count = cdf[nsymbs]; | 113 | | | 114 | | // rate is computed in the spec as: | 115 | | // 3 + ( cdf[N] > 15 ) + ( cdf[N] > 31 ) + Min(FloorLog2(N), 2) | 116 | | // In this case cdf[N] is |count|. | 117 | | // Min(FloorLog2(N), 2) is 1 for nsymbs == {2, 3} and 2 for all | 118 | | // nsymbs > 3. So the equation becomes: | 119 | | // 4 + (count > 15) + (count > 31) + (nsymbs > 3). | 120 | | // Note that the largest value for count is 32 (it is not incremented beyond | 121 | | // 32). So using that information: | 122 | | // count >> 4 is 0 for count from 0 to 15. | 123 | | // count >> 4 is 1 for count from 16 to 31. | 124 | | // count >> 4 is 2 for count == 31. | 125 | | // Now, the equation becomes: | 126 | | // 4 + (count >> 4) + (nsymbs > 3). | 127 | 4.77M | const int rate = 4 + (count >> 4) + (nsymbs > 3); | 128 | | | 129 | 4.77M | int i = 0; | 130 | 28.9M | do { | 131 | 28.9M | if (i < val) { | 132 | 9.45M | cdf[i] += (CDF_PROB_TOP - cdf[i]) >> rate; | 133 | 19.4M | } else { | 134 | 19.4M | cdf[i] -= cdf[i] >> rate; | 135 | 19.4M | } | 136 | 28.9M | } while (++i < nsymbs - 1); | 137 | 4.77M | cdf[nsymbs] += (count < 32); | 138 | 4.77M | } |
Line | Count | Source | 110 | 34.1M | static inline void update_cdf(aom_cdf_prob *cdf, int8_t val, int nsymbs) { | 111 | 34.1M | assert(nsymbs < 17); | 112 | 34.1M | const int count = cdf[nsymbs]; | 113 | | | 114 | | // rate is computed in the spec as: | 115 | | // 3 + ( cdf[N] > 15 ) + ( cdf[N] > 31 ) + Min(FloorLog2(N), 2) | 116 | | // In this case cdf[N] is |count|. | 117 | | // Min(FloorLog2(N), 2) is 1 for nsymbs == {2, 3} and 2 for all | 118 | | // nsymbs > 3. So the equation becomes: | 119 | | // 4 + (count > 15) + (count > 31) + (nsymbs > 3). | 120 | | // Note that the largest value for count is 32 (it is not incremented beyond | 121 | | // 32). So using that information: | 122 | | // count >> 4 is 0 for count from 0 to 15. | 123 | | // count >> 4 is 1 for count from 16 to 31. | 124 | | // count >> 4 is 2 for count == 31. | 125 | | // Now, the equation becomes: | 126 | | // 4 + (count >> 4) + (nsymbs > 3). | 127 | 34.1M | const int rate = 4 + (count >> 4) + (nsymbs > 3); | 128 | | | 129 | 34.1M | int i = 0; | 130 | 243M | do { | 131 | 243M | if (i < val) { | 132 | 110M | cdf[i] += (CDF_PROB_TOP - cdf[i]) >> rate; | 133 | 132M | } else { | 134 | 132M | cdf[i] -= cdf[i] >> rate; | 135 | 132M | } | 136 | 243M | } while (++i < nsymbs - 1); | 137 | 34.1M | cdf[nsymbs] += (count < 32); | 138 | 34.1M | } |
Unexecuted instantiation: decoder.c:update_cdf Line | Count | Source | 110 | 171M | static inline void update_cdf(aom_cdf_prob *cdf, int8_t val, int nsymbs) { | 111 | 171M | assert(nsymbs < 17); | 112 | 171M | const int count = cdf[nsymbs]; | 113 | | | 114 | | // rate is computed in the spec as: | 115 | | // 3 + ( cdf[N] > 15 ) + ( cdf[N] > 31 ) + Min(FloorLog2(N), 2) | 116 | | // In this case cdf[N] is |count|. | 117 | | // Min(FloorLog2(N), 2) is 1 for nsymbs == {2, 3} and 2 for all | 118 | | // nsymbs > 3. So the equation becomes: | 119 | | // 4 + (count > 15) + (count > 31) + (nsymbs > 3). | 120 | | // Note that the largest value for count is 32 (it is not incremented beyond | 121 | | // 32). So using that information: | 122 | | // count >> 4 is 0 for count from 0 to 15. | 123 | | // count >> 4 is 1 for count from 16 to 31. | 124 | | // count >> 4 is 2 for count == 31. | 125 | | // Now, the equation becomes: | 126 | | // 4 + (count >> 4) + (nsymbs > 3). | 127 | 171M | const int rate = 4 + (count >> 4) + (nsymbs > 3); | 128 | | | 129 | 171M | int i = 0; | 130 | 472M | do { | 131 | 472M | if (i < val) { | 132 | 171M | cdf[i] += (CDF_PROB_TOP - cdf[i]) >> rate; | 133 | 300M | } else { | 134 | 300M | cdf[i] -= cdf[i] >> rate; | 135 | 300M | } | 136 | 472M | } while (++i < nsymbs - 1); | 137 | 171M | cdf[nsymbs] += (count < 32); | 138 | 171M | } |
Line | Count | Source | 110 | 171M | static inline void update_cdf(aom_cdf_prob *cdf, int8_t val, int nsymbs) { | 111 | 171M | assert(nsymbs < 17); | 112 | 171M | const int count = cdf[nsymbs]; | 113 | | | 114 | | // rate is computed in the spec as: | 115 | | // 3 + ( cdf[N] > 15 ) + ( cdf[N] > 31 ) + Min(FloorLog2(N), 2) | 116 | | // In this case cdf[N] is |count|. | 117 | | // Min(FloorLog2(N), 2) is 1 for nsymbs == {2, 3} and 2 for all | 118 | | // nsymbs > 3. So the equation becomes: | 119 | | // 4 + (count > 15) + (count > 31) + (nsymbs > 3). | 120 | | // Note that the largest value for count is 32 (it is not incremented beyond | 121 | | // 32). So using that information: | 122 | | // count >> 4 is 0 for count from 0 to 15. | 123 | | // count >> 4 is 1 for count from 16 to 31. | 124 | | // count >> 4 is 2 for count == 31. | 125 | | // Now, the equation becomes: | 126 | | // 4 + (count >> 4) + (nsymbs > 3). | 127 | 171M | const int rate = 4 + (count >> 4) + (nsymbs > 3); | 128 | | | 129 | 171M | int i = 0; | 130 | 555M | do { | 131 | 555M | if (i < val) { | 132 | 95.7M | cdf[i] += (CDF_PROB_TOP - cdf[i]) >> rate; | 133 | 459M | } else { | 134 | 459M | cdf[i] -= cdf[i] >> rate; | 135 | 459M | } | 136 | 555M | } while (++i < nsymbs - 1); | 137 | 171M | cdf[nsymbs] += (count < 32); | 138 | 171M | } |
Unexecuted instantiation: obu.c:update_cdf Unexecuted instantiation: av1_cx_iface.c:update_cdf Unexecuted instantiation: allintra_vis.c:update_cdf Unexecuted instantiation: av1_quantize.c:update_cdf Unexecuted instantiation: bitstream.c:update_cdf Unexecuted instantiation: context_tree.c:update_cdf Unexecuted instantiation: encodeframe.c:update_cdf Unexecuted instantiation: encodeframe_utils.c:update_cdf Unexecuted instantiation: encodemb.c:update_cdf Unexecuted instantiation: encodemv.c:update_cdf Unexecuted instantiation: encoder.c:update_cdf Unexecuted instantiation: encoder_utils.c:update_cdf Unexecuted instantiation: encodetxb.c:update_cdf Unexecuted instantiation: ethread.c:update_cdf Unexecuted instantiation: firstpass.c:update_cdf Unexecuted instantiation: global_motion_facade.c:update_cdf Unexecuted instantiation: hash.c:update_cdf Unexecuted instantiation: hash_motion.c:update_cdf Unexecuted instantiation: hybrid_fwd_txfm.c:update_cdf Unexecuted instantiation: level.c:update_cdf Unexecuted instantiation: lookahead.c:update_cdf Unexecuted instantiation: mcomp.c:update_cdf Unexecuted instantiation: mv_prec.c:update_cdf Unexecuted instantiation: palette.c:update_cdf Unexecuted instantiation: partition_search.c:update_cdf Unexecuted instantiation: partition_strategy.c:update_cdf Unexecuted instantiation: pass2_strategy.c:update_cdf Unexecuted instantiation: pickcdef.c:update_cdf Unexecuted instantiation: picklpf.c:update_cdf Unexecuted instantiation: pickrst.c:update_cdf Unexecuted instantiation: ratectrl.c:update_cdf Unexecuted instantiation: rd.c:update_cdf Unexecuted instantiation: rdopt.c:update_cdf Unexecuted instantiation: nonrd_pickmode.c:update_cdf Unexecuted instantiation: nonrd_opt.c:update_cdf Unexecuted instantiation: reconinter_enc.c:update_cdf Unexecuted instantiation: segmentation.c:update_cdf Unexecuted instantiation: speed_features.c:update_cdf Unexecuted instantiation: superres_scale.c:update_cdf Unexecuted instantiation: svc_layercontext.c:update_cdf Unexecuted instantiation: temporal_filter.c:update_cdf Unexecuted instantiation: tokenize.c:update_cdf Unexecuted instantiation: tpl_model.c:update_cdf Unexecuted instantiation: tx_search.c:update_cdf Unexecuted instantiation: txb_rdopt.c:update_cdf Unexecuted instantiation: intra_mode_search.c:update_cdf Unexecuted instantiation: var_based_part.c:update_cdf Unexecuted instantiation: av1_noise_estimate.c:update_cdf Unexecuted instantiation: dwt.c:update_cdf Unexecuted instantiation: aom_dsp_rtcd.c:update_cdf Unexecuted instantiation: av1_rtcd.c:update_cdf Unexecuted instantiation: aom_convolve.c:update_cdf Unexecuted instantiation: blend_a64_mask.c:update_cdf Unexecuted instantiation: binary_codes_reader.c:update_cdf Unexecuted instantiation: bitreader.c:update_cdf Unexecuted instantiation: entdec.c:update_cdf Unexecuted instantiation: avg.c:update_cdf Unexecuted instantiation: bitwriter.c:update_cdf Unexecuted instantiation: blk_sse_sum.c:update_cdf Unexecuted instantiation: entenc.c:update_cdf Unexecuted instantiation: fwd_txfm.c:update_cdf Unexecuted instantiation: psnr.c:update_cdf Unexecuted instantiation: quantize.c:update_cdf Unexecuted instantiation: sad.c:update_cdf Unexecuted instantiation: sad_av1.c:update_cdf Unexecuted instantiation: subtract.c:update_cdf Unexecuted instantiation: sse.c:update_cdf Unexecuted instantiation: sum_squares.c:update_cdf Unexecuted instantiation: variance.c:update_cdf Unexecuted instantiation: pyramid.c:update_cdf Unexecuted instantiation: binary_codes_writer.c:update_cdf Unexecuted instantiation: noise_util.c:update_cdf Unexecuted instantiation: alloccommon.c:update_cdf Unexecuted instantiation: av1_loopfilter.c:update_cdf Unexecuted instantiation: blockd.c:update_cdf Unexecuted instantiation: cdef.c:update_cdf Unexecuted instantiation: cdef_block.c:update_cdf Unexecuted instantiation: cfl.c:update_cdf Unexecuted instantiation: debugmodes.c:update_cdf Unexecuted instantiation: entropy.c:update_cdf Unexecuted instantiation: entropymode.c:update_cdf Unexecuted instantiation: entropymv.c:update_cdf Unexecuted instantiation: idct.c:update_cdf Unexecuted instantiation: mvref_common.c:update_cdf Unexecuted instantiation: pred_common.c:update_cdf Unexecuted instantiation: quant_common.c:update_cdf Unexecuted instantiation: reconinter.c:update_cdf Unexecuted instantiation: reconintra.c:update_cdf Unexecuted instantiation: resize.c:update_cdf Unexecuted instantiation: restoration.c:update_cdf Unexecuted instantiation: scale.c:update_cdf Unexecuted instantiation: scan.c:update_cdf Unexecuted instantiation: seg_common.c:update_cdf Unexecuted instantiation: thread_common.c:update_cdf Unexecuted instantiation: tile_common.c:update_cdf Unexecuted instantiation: txb_common.c:update_cdf Unexecuted instantiation: warped_motion.c:update_cdf Unexecuted instantiation: aq_complexity.c:update_cdf Unexecuted instantiation: aq_cyclicrefresh.c:update_cdf Unexecuted instantiation: aq_variance.c:update_cdf Unexecuted instantiation: av1_fwd_txfm2d.c:update_cdf Unexecuted instantiation: cnn.c:update_cdf Unexecuted instantiation: compound_type.c:update_cdf Unexecuted instantiation: cost.c:update_cdf Unexecuted instantiation: encode_strategy.c:update_cdf Unexecuted instantiation: global_motion.c:update_cdf Unexecuted instantiation: gop_structure.c:update_cdf Unexecuted instantiation: interp_search.c:update_cdf Unexecuted instantiation: ml.c:update_cdf Unexecuted instantiation: motion_search_facade.c:update_cdf Unexecuted instantiation: wedge_utils.c:update_cdf Unexecuted instantiation: blend_a64_hmask.c:update_cdf Unexecuted instantiation: blend_a64_vmask.c:update_cdf Unexecuted instantiation: entcode.c:update_cdf Unexecuted instantiation: intrapred.c:update_cdf Unexecuted instantiation: loopfilter.c:update_cdf Unexecuted instantiation: fft.c:update_cdf Unexecuted instantiation: corner_match.c:update_cdf Unexecuted instantiation: disflow.c:update_cdf Unexecuted instantiation: av1_inv_txfm2d.c:update_cdf Unexecuted instantiation: av1_txfm.c:update_cdf Unexecuted instantiation: convolve.c:update_cdf Unexecuted instantiation: av1_fwd_txfm1d.c:update_cdf Unexecuted instantiation: av1_inv_txfm1d.c:update_cdf |
139 | | |
140 | | #ifdef __cplusplus |
141 | | } // extern "C" |
142 | | #endif |
143 | | |
144 | | #endif // AOM_AOM_DSP_PROB_H_ |