Home
last modified time | relevance | path

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

/external/webp/src/dec/
Dtree.c327 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 …]
Dvp8i.h294 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/webp/src/enc/
Dcost.c355 void VP8CalculateLevelCosts(VP8Proba* const proba) { in VP8CalculateLevelCosts() argument
358 if (!proba->dirty_) return; // nothing to do. in VP8CalculateLevelCosts()
363 const uint8_t* const p = proba->coeffs_[ctype][band][ctx]; in VP8CalculateLevelCosts()
364 uint16_t* const table = proba->level_cost_[ctype][band][ctx]; in VP8CalculateLevelCosts()
376 proba->dirty_ = 0; in VP8CalculateLevelCosts()
Dcost.h25 static WEBP_INLINE int VP8BitCost(int bit, uint8_t proba) { in VP8BitCost() argument
26 return !bit ? VP8EntropyCost[proba] : VP8EntropyCost[255 - proba]; in VP8BitCost()
31 void VP8CalculateLevelCosts(VP8Proba* const proba);
Dframe.c58 VP8Proba* const proba = &enc->proba_; in ResetStats() local
59 VP8CalculateLevelCosts(proba); in ResetStats()
60 proba->nb_skip_ = 0; in ResetStats()
74 VP8Proba* const proba = &enc->proba_; in FinalizeSkipProba() local
76 const int nb_events = proba->nb_skip_; in FinalizeSkipProba()
78 proba->skip_proba_ = CalcSkipProba(nb_events, nb_mbs); in FinalizeSkipProba()
79 proba->use_skip_proba_ = (proba->skip_proba_ < SKIP_PROBA_THRESHOLD); in FinalizeSkipProba()
81 if (proba->use_skip_proba_) { in FinalizeSkipProba()
82 size += nb_events * VP8BitCost(1, proba->skip_proba_) in FinalizeSkipProba()
83 + (nb_mbs - nb_events) * VP8BitCost(0, proba->skip_proba_); in FinalizeSkipProba()
[all …]
Danalysis.c78 int proba; in GetProba() local
81 proba = (255 * a + total / 2) / total; in GetProba()
82 return proba; in GetProba()
Dsyntax.c203 const VP8Proba* const proba = &enc->proba_; in PutSegmentHeader() local
221 if (VP8PutBitUniform(bw, (proba->segments_[s] != 255u))) { in PutSegmentHeader()
222 VP8PutValue(bw, proba->segments_[s], 8); in PutSegmentHeader()