Lines Matching refs:proba
99 VP8Proba* const proba = &enc->proba_; in ResetStats() local
100 VP8CalculateLevelCosts(proba); in ResetStats()
101 proba->nb_skip_ = 0; in ResetStats()
115 VP8Proba* const proba = &enc->proba_; in FinalizeSkipProba() local
117 const int nb_events = proba->nb_skip_; in FinalizeSkipProba()
119 proba->skip_proba_ = CalcSkipProba(nb_events, nb_mbs); in FinalizeSkipProba()
120 proba->use_skip_proba_ = (proba->skip_proba_ < SKIP_PROBA_THRESHOLD); in FinalizeSkipProba()
122 if (proba->use_skip_proba_) { in FinalizeSkipProba()
123 size += nb_events * VP8BitCost(1, proba->skip_proba_) in FinalizeSkipProba()
124 + (nb_mbs - nb_events) * VP8BitCost(0, proba->skip_proba_); in FinalizeSkipProba()
138 static int BranchCost(int nb, int total, int proba) { in BranchCost() argument
139 return nb * VP8BitCost(1, proba) + (total - nb) * VP8BitCost(0, proba); in BranchCost()
143 VP8Proba* const proba = &enc->proba_; in ResetTokenStats() local
144 memset(proba->stats_, 0, sizeof(proba->stats_)); in ResetTokenStats()
147 static int FinalizeTokenProbas(VP8Proba* const proba) { in FinalizeTokenProbas() argument
155 const proba_t stats = proba->stats_[t][b][c][p]; in FinalizeTokenProbas()
169 proba->coeffs_[t][b][c][p] = new_p; in FinalizeTokenProbas()
173 proba->coeffs_[t][b][c][p] = old_p; in FinalizeTokenProbas()
179 proba->dirty_ = has_changed; in FinalizeTokenProbas()
746 VP8Proba* const proba = &enc->proba_; in VP8EncTokenLoop() local
760 assert(proba->use_skip_proba_ == 0); in VP8EncTokenLoop()
782 FinalizeTokenProbas(proba); in VP8EncTokenLoop()
783 VP8CalculateLevelCosts(proba); // refresh cost tables for rd-opt in VP8EncTokenLoop()
808 (const uint8_t*)proba->coeffs_); in VP8EncTokenLoop()
838 (const uint8_t*)proba->coeffs_, 1); in VP8EncTokenLoop()