Lines Matching refs:proba

60   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()
95 VP8Proba* const proba = &enc->proba_; in ResetTokenStats() local
96 memset(proba->stats_, 0, sizeof(proba->stats_)); in ResetTokenStats()
176 static int BranchCost(int nb, int total, int proba) { in BranchCost() argument
177 return nb * VP8BitCost(1, proba) + (total - nb) * VP8BitCost(0, proba); in BranchCost()
180 static int FinalizeTokenProbas(VP8Proba* const proba) { in FinalizeTokenProbas() argument
188 const proba_t stats = proba->stats_[t][b][c][p]; in FinalizeTokenProbas()
202 proba->coeffs_[t][b][c][p] = new_p; in FinalizeTokenProbas()
206 proba->coeffs_[t][b][c][p] = old_p; in FinalizeTokenProbas()
212 proba->dirty_ = has_changed; in FinalizeTokenProbas()
915 VP8Proba* const proba = &enc->proba_; in VP8EncTokenLoop() local
923 assert(proba->use_skip_proba_ == 0); in VP8EncTokenLoop()
938 FinalizeTokenProbas(proba); in VP8EncTokenLoop()
939 VP8CalculateLevelCosts(proba); // refresh cost tables for rd-opt in VP8EncTokenLoop()
958 FinalizeTokenProbas(proba); in VP8EncTokenLoop()
960 (const uint8_t*)proba->coeffs_, 1); in VP8EncTokenLoop()