Searched refs:proba (Results 1 – 8 of 8) sorted by relevance
/external/webp/src/enc/ |
D | cost.h | 25 static inline int VP8BitCost(int bit, uint8_t proba) { in VP8BitCost() argument 26 return !bit ? VP8EntropyCost[proba] : VP8EntropyCost[255 - proba]; in VP8BitCost() 31 uint8_t proba) { in VP8BranchCost() argument 32 return nb * VP8BitCost(1, proba) + (total - nb) * VP8BitCost(0, proba); in VP8BranchCost() 37 void VP8CalculateLevelCosts(VP8Proba* const proba);
|
D | frame.c | 58 VP8Proba* const proba = &enc->proba_; in ResetStats() local 59 if (precalc_cost) VP8CalculateLevelCosts(proba); in ResetStats() 60 proba->nb_skip_ = 0; in ResetStats() 72 VP8Proba* const proba = &enc->proba_; in FinalizeSkipProba() local 74 const int nb_events = proba->nb_skip_; in FinalizeSkipProba() 76 proba->skip_proba_ = CalcSkipProba(nb_events, nb_mbs); in FinalizeSkipProba() 77 proba->use_skip_proba_ = (proba->skip_proba_ < 250); in FinalizeSkipProba() 79 if (proba->use_skip_proba_) { in FinalizeSkipProba() 80 size += nb_events * VP8BitCost(1, proba->skip_proba_) in FinalizeSkipProba() 81 + (nb_mbs - nb_events) * VP8BitCost(0, proba->skip_proba_); in FinalizeSkipProba() [all …]
|
D | cost.c | 357 void VP8CalculateLevelCosts(VP8Proba* const proba) { in VP8CalculateLevelCosts() argument 362 const uint8_t* const p = proba->coeffs_[ctype][band][ctx]; in VP8CalculateLevelCosts() 363 uint16_t* const table = proba->level_cost_[ctype][band][ctx]; in VP8CalculateLevelCosts()
|
D | syntax.c | 83 const VP8Proba* const proba = &enc->proba_; in PutSegmentHeader() local 101 if (VP8PutBitUniform(bw, (proba->segments_[s] != 255u))) { in PutSegmentHeader() 102 VP8PutValue(bw, proba->segments_[s], 8); in PutSegmentHeader()
|
D | analysis.c | 76 int proba; in GetProba() local 79 proba = (255 * a + total / 2) / total; in GetProba() 80 return proba; in GetProba()
|
/external/webp/src/dec/ |
D | tree.c | 327 void VP8ResetProba(VP8Proba* const proba) { in VP8ResetProba() argument 328 memset(proba->segments_, 255u, sizeof(proba->segments_)); in VP8ResetProba() 329 memcpy(proba->coeffs_, CoeffsProba0, sizeof(CoeffsProba0)); in VP8ResetProba() 331 memcpy(proba->mv_, kMVProba0, sizeof(kMVProba0)); in VP8ResetProba() 332 memcpy(proba->ymode_, kYModeProbaInter0, sizeof(kYModeProbaInter0)); in VP8ResetProba() 333 memcpy(proba->uvmode_, kUVModeProbaInter0, sizeof(kUVModeProbaInter0)); in VP8ResetProba() 540 VP8Proba* const proba = &dec->proba_; in VP8ParseProba() local 547 proba->coeffs_[t][b][c][p] = VP8GetValue(br, 8); in VP8ParseProba() 565 proba->ymode_[i] = VP8GetValue(br, 8); in VP8ParseProba() 570 proba->uvmode_[i] = VP8GetValue(br, 8); in VP8ParseProba() [all …]
|
D | vp8i.h | 279 void VP8ResetProba(VP8Proba* const proba);
|
D | vp8.c | 141 VP8SegmentHeader* hdr, VP8Proba* proba) { in ParseSegmentHeader() argument 160 proba->segments_[s] = VP8Get(br) ? VP8GetValue(br, 8) : 255u; in ParseSegmentHeader()
|