Home
last modified time | relevance | path

Searched refs:proba (Results 1 – 20 of 20) sorted by relevance

/external/lz4/programs/
Ddatagen.c111 static void CDG_generate(U64 size, U32* seed, double proba) in CDG_generate() argument
116 U32 P32 = (U32)(32768 * proba); in CDG_generate()
207 int proba = CDG_COMPRESSIBILITY_DEFAULT; in main() local
257 proba=0; in main()
260 proba *= 10; in main()
261 proba += *argument - '0'; in main()
264 if (proba<0) proba=0; in main()
265 if (proba>100) proba=100; in main()
281 if (proba!=CDG_COMPRESSIBILITY_DEFAULT) DISPLAYLEVEL(3, "Compressibility : %i%%\n", proba); in main()
283 CDG_generate(size, &seed, ((double)proba) / 100); in main()
Dframetest.c148 static void FUZ_fillCompressibleNoiseBuffer(void* buffer, unsigned bufferSize, double proba, U32* s… in FUZ_fillCompressibleNoiseBuffer() argument
152 U32 P32 = (U32)(32768 * proba); in FUZ_fillCompressibleNoiseBuffer()
564 int proba = FUZ_COMPRESSIBILITY_DEFAULT; in main() local
639 proba=0; in main()
642 proba *= 10; in main()
643 proba += *argument - '0'; in main()
646 if (proba<0) proba=0; in main()
647 if (proba>100) proba=100; in main()
662 if (proba!=FUZ_COMPRESSIBILITY_DEFAULT) printf("Compressibility : %i%%\n", proba); in main()
666 if (testNb==0) result = basicTests(seed, ((double)proba) / 100); in main()
[all …]
Dfuzzer.c139 static void FUZ_fillCompressibleNoiseBuffer(void* buffer, size_t bufferSize, double proba, U32* see… in FUZ_fillCompressibleNoiseBuffer() argument
143 U32 P32 = (U32)(32768 * proba); in FUZ_fillCompressibleNoiseBuffer()
1062 int proba = FUZ_COMPRESSIBILITY_DEFAULT; in main() local
1131 proba=0; in main()
1134 proba *= 10; in main()
1135 proba += *argument - '0'; in main()
1138 if (proba<0) proba=0; in main()
1139 if (proba>100) proba=100; in main()
1152 if (proba!=FUZ_COMPRESSIBILITY_DEFAULT) printf("Compressibility : %i%%\n", proba); in main()
1159 int result = FUZ_test(seed, nbTests, testNb, ((double)proba) / 100); in main()
/external/opencv3/3rdparty/libwebp/dec/
Dtree.c329 void VP8ResetProba(VP8Proba* const proba) { in VP8ResetProba() argument
330 memset(proba->segments_, 255u, sizeof(proba->segments_)); in VP8ResetProba()
331 memcpy(proba->coeffs_, CoeffsProba0, sizeof(CoeffsProba0)); in VP8ResetProba()
333 memcpy(proba->mv_, kMVProba0, sizeof(kMVProba0)); in VP8ResetProba()
334 memcpy(proba->ymode_, kYModeProbaInter0, sizeof(kYModeProbaInter0)); in VP8ResetProba()
335 memcpy(proba->uvmode_, kUVModeProbaInter0, sizeof(kUVModeProbaInter0)); in VP8ResetProba()
542 VP8Proba* const proba = &dec->proba_; in VP8ParseProba() local
549 proba->coeffs_[t][b][c][p] = VP8GetValue(br, 8); in VP8ParseProba()
567 proba->ymode_[i] = VP8GetValue(br, 8); in VP8ParseProba()
572 proba->uvmode_[i] = VP8GetValue(br, 8); in VP8ParseProba()
[all …]
Dvp8i.h297 void VP8ResetProba(VP8Proba* const proba);
Dvp8.c152 VP8SegmentHeader* hdr, VP8Proba* proba) { in ParseSegmentHeader() argument
171 proba->segments_[s] = VP8Get(br) ? VP8GetValue(br, 8) : 255u; in ParseSegmentHeader()
/external/webp/src/enc/
Dframe.c95 VP8EncProba* const proba = &enc->proba_; in ResetStats() local
96 VP8CalculateLevelCosts(proba); in ResetStats()
97 proba->nb_skip_ = 0; in ResetStats()
111 VP8EncProba* const proba = &enc->proba_; in FinalizeSkipProba() local
113 const int nb_events = proba->nb_skip_; in FinalizeSkipProba()
115 proba->skip_proba_ = CalcSkipProba(nb_events, nb_mbs); in FinalizeSkipProba()
116 proba->use_skip_proba_ = (proba->skip_proba_ < SKIP_PROBA_THRESHOLD); in FinalizeSkipProba()
118 if (proba->use_skip_proba_) { in FinalizeSkipProba()
119 size += nb_events * VP8BitCost(1, proba->skip_proba_) in FinalizeSkipProba()
120 + (nb_mbs - nb_events) * VP8BitCost(0, proba->skip_proba_); in FinalizeSkipProba()
[all …]
Dcost.h45 static WEBP_INLINE int VP8BitCost(int bit, uint8_t proba) { in VP8BitCost() argument
46 return !bit ? VP8EntropyCost[proba] : VP8EntropyCost[255 - proba]; in VP8BitCost()
51 void VP8CalculateLevelCosts(VP8EncProba* const proba);
Dcost.c60 void VP8CalculateLevelCosts(VP8EncProba* const proba) { in VP8CalculateLevelCosts() argument
63 if (!proba->dirty_) return; // nothing to do. in VP8CalculateLevelCosts()
69 const uint8_t* const p = proba->coeffs_[ctype][band][ctx]; in VP8CalculateLevelCosts()
70 uint16_t* const table = proba->level_cost_[ctype][band][ctx]; in VP8CalculateLevelCosts()
84 proba->remapped_costs_[ctype][n][ctx] = in VP8CalculateLevelCosts()
85 proba->level_cost_[ctype][VP8EncBands[n]][ctx]; in VP8CalculateLevelCosts()
89 proba->dirty_ = 0; in VP8CalculateLevelCosts()
Dtoken.c102 uint32_t bit, uint32_t proba) { in AddConstantToken() argument
103 assert(proba < 256); in AddConstantToken()
107 b->tokens_[slot] = (bit << 15) | FIXED_PROBA_BIT | proba; in AddConstantToken()
Dsyntax.c190 const VP8EncProba* const proba = &enc->proba_; in PutSegmentHeader() local
208 if (VP8PutBitUniform(bw, (proba->segments_[s] != 255u))) { in PutSegmentHeader()
209 VP8PutBits(bw, proba->segments_[s], 8); in PutSegmentHeader()
/external/opencv3/3rdparty/libwebp/enc/
Dcost.c357 void VP8CalculateLevelCosts(VP8Proba* const proba) { in VP8CalculateLevelCosts() argument
360 if (!proba->dirty_) return; // nothing to do. in VP8CalculateLevelCosts()
365 const uint8_t* const p = proba->coeffs_[ctype][band][ctx]; in VP8CalculateLevelCosts()
366 uint16_t* const table = proba->level_cost_[ctype][band][ctx]; in VP8CalculateLevelCosts()
378 proba->dirty_ = 0; in VP8CalculateLevelCosts()
Dcost.h28 static WEBP_INLINE int VP8BitCost(int bit, uint8_t proba) { in VP8BitCost() argument
29 return !bit ? VP8EntropyCost[proba] : VP8EntropyCost[255 - proba]; in VP8BitCost()
34 void VP8CalculateLevelCosts(VP8Proba* const proba);
Dframe.c60 VP8Proba* const proba = &enc->proba_; in ResetStats() local
61 VP8CalculateLevelCosts(proba); in ResetStats()
62 proba->nb_skip_ = 0; in ResetStats()
76 VP8Proba* const proba = &enc->proba_; in FinalizeSkipProba() local
78 const int nb_events = proba->nb_skip_; in FinalizeSkipProba()
80 proba->skip_proba_ = CalcSkipProba(nb_events, nb_mbs); in FinalizeSkipProba()
81 proba->use_skip_proba_ = (proba->skip_proba_ < SKIP_PROBA_THRESHOLD); in FinalizeSkipProba()
83 if (proba->use_skip_proba_) { in FinalizeSkipProba()
84 size += nb_events * VP8BitCost(1, proba->skip_proba_) in FinalizeSkipProba()
85 + (nb_mbs - nb_events) * VP8BitCost(0, proba->skip_proba_); in FinalizeSkipProba()
[all …]
Dtoken.c95 int bit, int proba) { in AddConstantToken() argument
96 assert(proba < 256); in AddConstantToken()
100 b->tokens_[slot] = (bit << 15) | FIXED_PROBA_BIT | proba; in AddConstantToken()
Dsyntax.c194 const VP8Proba* const proba = &enc->proba_; in PutSegmentHeader() local
212 if (VP8PutBitUniform(bw, (proba->segments_[s] != 255u))) { in PutSegmentHeader()
213 VP8PutValue(bw, proba->segments_[s], 8); in PutSegmentHeader()
/external/webp/src/dec/
Dtree.c277 void VP8ResetProba(VP8Proba* const proba) { in VP8ResetProba() argument
278 memset(proba->segments_, 255u, sizeof(proba->segments_)); in VP8ResetProba()
504 VP8Proba* const proba = &dec->proba_; in VP8ParseProba() local
512 proba->bands_[t][b].probas_[c][p] = v; in VP8ParseProba()
517 proba->bands_ptr_[t][b] = &proba->bands_[t][kBands[b]]; in VP8ParseProba()
Dvp8i.h274 void VP8ResetProba(VP8Proba* const proba);
Dvp8.c150 VP8SegmentHeader* hdr, VP8Proba* proba) { in ParseSegmentHeader() argument
169 proba->segments_[s] = VP8Get(br) ? VP8GetValue(br, 8) : 255u; in ParseSegmentHeader()
/external/libvpx/libvpx/vp8/encoder/
Dbitstream.c247 const unsigned char *proba = b->prob; in vp8_pack_tokens() local
255 split = 1 + (((range - 1) * proba[i>>1]) >> 8); in vp8_pack_tokens()