Lines Matching refs:cost
18 #include "cost.h"
37 CostArray* cost;
55 // Reset the statistics about: number of skips, token proba, level cost,...
72 // Returns the bit-cost for coding the skip probability.
84 size += 8 * 256; // cost of signaling the skip_proba_ itself.
141 // Return the total bit-cost for coding the probability updates.
185 res->cost = enc->proba_.level_cost_[coeff_type];
208 const uint16_t *t = res->cost[VP8EncBands[n]][ctx];
209 int cost;
211 cost = VP8BitCost(res->last >= 0, p[0]);
213 return cost;
217 cost += VP8LevelCost(t, v);
220 t = res->cost[VP8EncBands[n]][0];
224 t = res->cost[VP8EncBands[n]][1];
227 t = res->cost[VP8EncBands[n]][2];
230 cost += VP8BitCost(n <= res->last, p[0]);
233 return cost;