Home
last modified time | relevance | path

Searched refs:prob (Results 1 – 25 of 114) sorted by relevance

12345

/third_party/uboot/u-boot-2020.01/lib/lzma/
DLzmaDec.c160 CLzmaProb *prob; in LzmaDec_DecodeReal() local
165 prob = probs + IsMatch + (state << kNumPosBitsMax) + posState; in LzmaDec_DecodeReal()
166 IF_BIT_0(prob) in LzmaDec_DecodeReal()
169 UPDATE_0(prob); in LzmaDec_DecodeReal()
170 prob = probs + Literal; in LzmaDec_DecodeReal()
172 prob += (LZMA_LIT_SIZE * (((processedPos & lpMask) << lc) + in LzmaDec_DecodeReal()
182 do { GET_BIT(prob + symbol, symbol) } while (symbol < 0x100); in LzmaDec_DecodeReal()
199 probLit = prob + offs + bit + symbol; in LzmaDec_DecodeReal()
210 UPDATE_1(prob); in LzmaDec_DecodeReal()
211 prob = probs + IsRep + state; in LzmaDec_DecodeReal()
[all …]
/third_party/gstreamer/gstplugins_base/tests/check/gst/
Dtypefindfunctions.c30 GstTypeFindProbability * prob) in typefind_data() argument
42 caps = gst_type_find_helper_for_buffer (NULL, buf, prob); in typefind_data()
43 GST_INFO ("caps: %" GST_PTR_FORMAT ", probability=%u", caps, *prob); in typefind_data()
81 GstTypeFindProbability prob; in GST_START_TEST() local
95 caps = gst_type_find_helper_for_buffer (NULL, buf, &prob); in GST_START_TEST()
101 fail_unless (prob > GST_TYPE_FIND_MINIMUM && prob <= GST_TYPE_FIND_MAXIMUM); in GST_START_TEST()
112 GstTypeFindProbability prob; in GST_START_TEST() local
125 caps = gst_type_find_helper_for_buffer (NULL, buf, &prob); in GST_START_TEST()
131 fail_unless (prob > GST_TYPE_FIND_MINIMUM && prob <= GST_TYPE_FIND_MAXIMUM); in GST_START_TEST()
252 GstTypeFindProbability prob; in GST_START_TEST() local
[all …]
/third_party/uboot/u-boot-2020.01/lib/
Dunlzma.c330 struct cstate *cst, uint16_t *p, int pos_state, uint16_t *prob, in process_bit0() argument
334 rc_update_bit_0(rc, prob); in process_bit0()
335 prob = (p + LZMA_LITERAL + in process_bit0()
349 prob_lit = prob + 0x100 + bit + mi; in process_bit0()
360 uint16_t *prob_lit = prob + mi; in process_bit0()
373 struct cstate *cst, uint16_t *p, int pos_state, uint16_t *prob) in process_bit1() argument
380 rc_update_bit_1(rc, prob); in process_bit1()
381 prob = p + LZMA_IS_REP + cst->state; in process_bit1()
382 if (rc_is_bit_0(rc, prob)) { in process_bit1()
383 rc_update_bit_0(rc, prob); in process_bit1()
[all …]
/third_party/ffmpeg/libavcodec/tests/
Dmjpegenc_huffman.c39 int actual_length = 0, i, j, k, prob, length; in check_lengths() local
45 val_counts[i] = (PTable){.value = i, .prob = probs[i]}; in check_lengths()
57 prob = val_counts[j].prob; in check_lengths()
60 if (prob) { in check_lengths()
61 actual_length += prob * length; in check_lengths()
121 {.value = 0, .prob = 1}, in main()
122 {.value = 1, .prob = 2}, in main()
123 {.value = 2, .prob = 5}, in main()
124 {.value = 3, .prob = 10}, in main()
125 {.value = 4, .prob = 21}, in main()
/third_party/ffmpeg/libavcodec/
Dlagarithrac.h53 uint32_t prob[258]; /**< Table of cumulative probability for each symbol. */ member
87 if (l->low < range_scaled * l->prob[255]) { in lag_get_rac()
89 if (l->low < range_scaled * l->prob[1]) { in lag_get_rac()
95 while (l->low >= range_scaled * l->prob[val + 1]) in lag_get_rac()
99 l->range = range_scaled * (l->prob[val + 1] - l->prob[val]); in lag_get_rac()
102 l->range -= range_scaled * l->prob[255]; in lag_get_rac()
108 l->low -= range_scaled * l->prob[val]; in lag_get_rac()
Dvaapi_vp8.c41 VAProbabilityDataBufferVP8 prob; in vaapi_vp8_start_frame() local
77 .prob_skip_false = s->prob->mbskip, in vaapi_vp8_start_frame()
78 .prob_intra = s->prob->intra, in vaapi_vp8_start_frame()
79 .prob_last = s->prob->last, in vaapi_vp8_start_frame()
80 .prob_gf = s->prob->golden, in vaapi_vp8_start_frame()
84 pp.mb_segment_tree_probs[i] = s->prob->segmentid[i]; in vaapi_vp8_start_frame()
113 pp.y_mode_probs[i] = s->prob->pred16x16[i]; in vaapi_vp8_start_frame()
115 pp.uv_mode_probs[i] = s->prob->pred8x8c[i]; in vaapi_vp8_start_frame()
119 pp.mv_probs[i][j] = s->prob->mvc[i][j]; in vaapi_vp8_start_frame()
139 memcpy(prob.dct_coeff_probs[i][j][k], in vaapi_vp8_start_frame()
[all …]
Dlagarith.c138 unsigned prob, cumulative_target; in lag_read_prob_header() local
143 rac->prob[0] = 0; in lag_read_prob_header()
144 rac->prob[257] = UINT_MAX; in lag_read_prob_header()
147 if (lag_decode_prob(gb, &rac->prob[i]) < 0) { in lag_read_prob_header()
151 if ((uint64_t)cumul_prob + rac->prob[i] > UINT_MAX) { in lag_read_prob_header()
155 cumul_prob += rac->prob[i]; in lag_read_prob_header()
156 if (!rac->prob[i]) { in lag_read_prob_header()
157 if (lag_decode_prob(gb, &prob)) { in lag_read_prob_header()
161 if (prob > 256 - i) in lag_read_prob_header()
162 prob = 256 - i; in lag_read_prob_header()
[all …]
Dmjpegenc_huffman.c42 return a_val.prob - b_val.prob; in compare_by_prob()
113 prob_table[i].prob < in ff_mjpegenc_huffman_compute_bits()
116 to->probability[to->nitems - 1] = prob_table[i].prob; in ff_mjpegenc_huffman_compute_bits()
178 val_counts[j].prob = s->val_count[i]; in ff_mjpeg_encode_huffman_close()
183 val_counts[j].prob = 0; in ff_mjpeg_encode_huffman_close()
Dmvha.c43 uint32_t prob[256]; member
92 nodes[i].count = s->prob[i]; in build_vlc()
207 int prob; in decode_frame() local
213 prob = get_bits(gb, 12); in decode_frame()
215 prob = get_bits(gb, 3); in decode_frame()
218 if (prob) { in decode_frame()
220 s->prob[i] = prob; in decode_frame()
Dvp9mvs.c239 int bit, sign = vp56_rac_get_prob(td->c, s->prob.p.mv_comp[idx].sign); in read_mv_component()
241 s->prob.p.mv_comp[idx].classes); in read_mv_component()
249 bit = vp56_rac_get_prob(td->c, s->prob.p.mv_comp[idx].bits[m]); in read_mv_component()
255 s->prob.p.mv_comp[idx].fp); in read_mv_component()
259 bit = vp56_rac_get_prob(td->c, s->prob.p.mv_comp[idx].hp); in read_mv_component()
270 n = vp56_rac_get_prob(td->c, s->prob.p.mv_comp[idx].class0); in read_mv_component()
273 s->prob.p.mv_comp[idx].class0_fp[n]); in read_mv_component()
277 bit = vp56_rac_get_prob(td->c, s->prob.p.mv_comp[idx].class0_hp); in read_mv_component()
323 s->prob.p.mv_joint); in ff_vp9_fill_mv()
354 s->prob.p.mv_joint); in ff_vp9_fill_mv()
Dmss1.c71 int prob = range * val; in ARITH_GET_BIT() local
73 c->high = ((prob + range) >> bits) + c->low - 1; in ARITH_GET_BIT()
74 c->low += prob >> bits; in ARITH_GET_BIT()
85 int prob = range * val; in arith_get_number() local
87 c->high = (prob + range) / mod_val + c->low - 1; in arith_get_number()
88 c->low += prob / mod_val; in arith_get_number()
Dvp56.h269 static av_always_inline int vp56_rac_get_prob(VP56RangeCoder *c, uint8_t prob) in vp56_rac_get_prob() argument
272 unsigned int low = 1 + (((c->high - 1) * prob) >> 8); in vp56_rac_get_prob()
285 static av_always_inline int vp56_rac_get_prob_branchy(VP56RangeCoder *c, int prob) in vp56_rac_get_prob_branchy() argument
288 unsigned low = 1 + (((c->high - 1) * prob) >> 8); in vp56_rac_get_prob_branchy()
407 static av_always_inline int vp8_rac_get_coeff(VP56RangeCoder *c, const uint8_t *prob) in vp8_rac_get_coeff() argument
412 v = (v<<1) + vp56_rac_get_prob(c, *prob++); in vp8_rac_get_coeff()
413 } while (*prob); in vp8_rac_get_coeff()
/third_party/skia/third_party/externals/libwebp/src/dec/
Dtree_dec.c324 const uint8_t* const prob = kBModesProba[top[x]][ymode]; in ParseIntraMode() local
327 int i = kYModesIntra4[VP8GetBit(br, prob[0], "pred-modes")]; in ParseIntraMode()
329 i = kYModesIntra4[2 * i + VP8GetBit(br, prob[i], "pred-modes")]; in ParseIntraMode()
334 ymode = !VP8GetBit(br, prob[0], "pred-modes") ? B_DC_PRED : in ParseIntraMode()
335 !VP8GetBit(br, prob[1], "pred-modes") ? B_TM_PRED : in ParseIntraMode()
336 !VP8GetBit(br, prob[2], "pred-modes") ? B_VE_PRED : in ParseIntraMode()
337 !VP8GetBit(br, prob[3], "pred-modes") ? in ParseIntraMode()
338 (!VP8GetBit(br, prob[4], "pred-modes") ? B_HE_PRED : in ParseIntraMode()
339 (!VP8GetBit(br, prob[5], "pred-modes") ? B_RD_PRED in ParseIntraMode()
341 (!VP8GetBit(br, prob[6], "pred-modes") ? B_LD_PRED : in ParseIntraMode()
[all …]
/third_party/flutter/skia/third_party/externals/libwebp/src/dec/
Dtree_dec.c324 const uint8_t* const prob = kBModesProba[top[x]][ymode]; in ParseIntraMode() local
327 int i = kYModesIntra4[VP8GetBit(br, prob[0], "pred-modes")]; in ParseIntraMode()
329 i = kYModesIntra4[2 * i + VP8GetBit(br, prob[i], "pred-modes")]; in ParseIntraMode()
334 ymode = !VP8GetBit(br, prob[0], "pred-modes") ? B_DC_PRED : in ParseIntraMode()
335 !VP8GetBit(br, prob[1], "pred-modes") ? B_TM_PRED : in ParseIntraMode()
336 !VP8GetBit(br, prob[2], "pred-modes") ? B_VE_PRED : in ParseIntraMode()
337 !VP8GetBit(br, prob[3], "pred-modes") ? in ParseIntraMode()
338 (!VP8GetBit(br, prob[4], "pred-modes") ? B_HE_PRED : in ParseIntraMode()
339 (!VP8GetBit(br, prob[5], "pred-modes") ? B_RD_PRED in ParseIntraMode()
341 (!VP8GetBit(br, prob[6], "pred-modes") ? B_LD_PRED : in ParseIntraMode()
[all …]
/third_party/skia/third_party/externals/libwebp/src/enc/
Dtree_enc.c271 const uint8_t* const prob) { in PutI4Mode() argument
272 if (VP8PutBit(bw, mode != B_DC_PRED, prob[0])) { in PutI4Mode()
273 if (VP8PutBit(bw, mode != B_TM_PRED, prob[1])) { in PutI4Mode()
274 if (VP8PutBit(bw, mode != B_VE_PRED, prob[2])) { in PutI4Mode()
275 if (!VP8PutBit(bw, mode >= B_LD_PRED, prob[3])) { in PutI4Mode()
276 if (VP8PutBit(bw, mode != B_HE_PRED, prob[4])) { in PutI4Mode()
277 VP8PutBit(bw, mode != B_RD_PRED, prob[5]); in PutI4Mode()
280 if (VP8PutBit(bw, mode != B_LD_PRED, prob[6])) { in PutI4Mode()
281 if (VP8PutBit(bw, mode != B_VL_PRED, prob[7])) { in PutI4Mode()
282 VP8PutBit(bw, mode != B_HD_PRED, prob[8]); in PutI4Mode()
/third_party/flutter/skia/third_party/externals/libwebp/src/enc/
Dtree_enc.c271 const uint8_t* const prob) { in PutI4Mode() argument
272 if (VP8PutBit(bw, mode != B_DC_PRED, prob[0])) { in PutI4Mode()
273 if (VP8PutBit(bw, mode != B_TM_PRED, prob[1])) { in PutI4Mode()
274 if (VP8PutBit(bw, mode != B_VE_PRED, prob[2])) { in PutI4Mode()
275 if (!VP8PutBit(bw, mode >= B_LD_PRED, prob[3])) { in PutI4Mode()
276 if (VP8PutBit(bw, mode != B_HE_PRED, prob[4])) { in PutI4Mode()
277 VP8PutBit(bw, mode != B_RD_PRED, prob[5]); in PutI4Mode()
280 if (VP8PutBit(bw, mode != B_LD_PRED, prob[6])) { in PutI4Mode()
281 if (VP8PutBit(bw, mode != B_VL_PRED, prob[7])) { in PutI4Mode()
282 VP8PutBit(bw, mode != B_HD_PRED, prob[8]); in PutI4Mode()
/third_party/gstreamer/gstreamer/libs/gst/base/
Dgsttypefindhelper.h39 GstTypeFindProbability *prob);
46 GstTypeFindProbability *prob);
51 GstTypeFindProbability *prob);
57 GstTypeFindProbability *prob);
92 GstTypeFindProbability *prob);
101 GstTypeFindProbability *prob);
Dgsttypefindhelper.c335 const gchar * extension, GstTypeFindProbability * prob) in gst_type_find_helper_get_range() argument
340 &caps, prob); in gst_type_find_helper_get_range()
378 const gchar * extension, GstCaps ** caps, GstTypeFindProbability * prob) in gst_type_find_helper_get_range_full() argument
450 if (prob) in gst_type_find_helper_get_range_full()
451 *prob = helper.best_probability; in gst_type_find_helper_get_range_full()
605 GstTypeFindProbability * prob) in gst_type_find_helper_for_data() argument
608 prob); in gst_type_find_helper_for_data()
683 GstTypeFindProbability * prob) in gst_type_find_helper_for_data_with_extension() argument
755 if (prob) in gst_type_find_helper_for_data_with_extension()
756 *prob = helper.best_probability; in gst_type_find_helper_for_data_with_extension()
[all …]
/third_party/boost/boost/graph/
Derdos_renyi_generator.hpp128 , prob(.5) in sorted_erdos_renyi_iterator()
136 double prob = 0.5, bool loops = false) in sorted_erdos_renyi_iterator() argument
138 , rand_vertex(1. - prob) in sorted_erdos_renyi_iterator()
143 , prob(prob) in sorted_erdos_renyi_iterator()
147 if (prob == 0.0) in sorted_erdos_renyi_iterator()
216 double prob; member in boost::sorted_erdos_renyi_iterator
Dsmall_world_generator.hpp35 vertices_size_type k, double prob = 0.0, bool allow_self_loops = false) in small_world_iterator() argument
39 , prob(prob) in small_world_iterator()
67 if (x < prob) in operator ++()
122 double prob; member in boost::small_world_iterator
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/
Dvp8utils.c444 memcpy (probs->prob, vp8_token_update_probs, sizeof (vp8_token_update_probs)); in gst_vp8_token_update_probs_init()
450 memcpy (probs->prob, vp8_default_token_probs, in gst_vp8_token_probs_init_defaults()
457 memcpy (probs->prob, vp8_mv_update_probs, sizeof (vp8_mv_update_probs)); in gst_vp8_mv_update_probs_init()
463 memcpy (probs->prob, vp8_default_mv_probs, sizeof (vp8_default_mv_probs)); in gst_vp8_mv_probs_init_defaults()
Dgstvp8parser.c241 guint8 prob; in parse_token_prob_update() local
248 vp8_token_update_probs.prob[i][j][k][l])) { in parse_token_prob_update()
249 READ_UINT (rd, prob, 8, "token_prob_update"); in parse_token_prob_update()
250 probs->prob[i][j][k][l] = prob; in parse_token_prob_update()
264 guint8 prob; in parse_mv_prob_update() local
268 if (gst_vp8_range_decoder_read (rd, vp8_mv_update_probs.prob[i][j])) { in parse_mv_prob_update()
269 READ_UINT (rd, prob, 7, "mv_prob_update"); in parse_mv_prob_update()
270 probs->prob[i][j] = prob ? (prob << 1) : 1; in parse_mv_prob_update()
/third_party/libnl/lib/route/qdisc/
Dnetem.c429 void rtnl_netem_set_reorder_probability(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_reorder_probability() argument
436 netem->qnm_ro.nmro_probability = prob; in rtnl_netem_set_reorder_probability()
464 void rtnl_netem_set_reorder_correlation(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_reorder_correlation() argument
471 netem->qnm_ro.nmro_correlation = prob; in rtnl_netem_set_reorder_correlation()
506 void rtnl_netem_set_corruption_probability(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_corruption_probability() argument
513 netem->qnm_crpt.nmcr_probability = prob; in rtnl_netem_set_corruption_probability()
541 void rtnl_netem_set_corruption_correlation(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_corruption_correlation() argument
548 netem->qnm_crpt.nmcr_correlation = prob; in rtnl_netem_set_corruption_correlation()
583 void rtnl_netem_set_loss(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_loss() argument
590 netem->qnm_loss = prob; in rtnl_netem_set_loss()
[all …]
/third_party/boost/libs/random/test/
Dtest_bernoulli.cpp37 double prob = cdf(expected, count); in do_test() local
39 bool result = prob < 0.99 && prob > 0.01; in do_test()
41 std::cout << std::setprecision(17) << prob << err << std::endl; in do_test()
/third_party/boost/boost/math/distributions/detail/
Dcommon_error_handling.hpp26 inline bool check_probability(const char* function, RealType const& prob, RealType* result, const P… in check_probability() argument
28 if((prob < 0) || (prob > 1) || !(boost::math::isfinite)(prob)) in check_probability()
32 "Probability argument is %1%, but must be >= 0 and <= 1 !", prob, pol); in check_probability()

12345