Searched refs:PopulationCost (Results 1 – 2 of 2) sorted by relevance
/external/opencv3/3rdparty/libwebp/enc/ |
D | histogram.c | 191 static double PopulationCost(const int* const population, int length) { in PopulationCost() function 204 return PopulationCost(p->literal_, VP8LHistogramNumCodes(p)) in VP8LHistogramEstimateBits() 205 + PopulationCost(p->red_, 256) in VP8LHistogramEstimateBits() 206 + PopulationCost(p->blue_, 256) in VP8LHistogramEstimateBits() 207 + PopulationCost(p->alpha_, 256) in VP8LHistogramEstimateBits() 208 + PopulationCost(p->distance_, NUM_DISTANCE_CODES) in VP8LHistogramEstimateBits() 267 cost += PopulationCost(out->literal_, VP8LHistogramNumCodes(out)); in HistogramAddEval() 272 cost += PopulationCost(out->red_, 256); in HistogramAddEval() 276 cost += PopulationCost(out->blue_, 256); in HistogramAddEval() 282 cost += PopulationCost(out->distance_, NUM_DISTANCE_CODES); in HistogramAddEval() [all …]
|
/external/webp/src/enc/ |
D | histogram.c | 226 static double PopulationCost(const uint32_t* const population, int length, in PopulationCost() function 252 PopulationCost( in VP8LHistogramEstimateBits() 254 + PopulationCost(p->red_, NUM_LITERAL_CODES, NULL) in VP8LHistogramEstimateBits() 255 + PopulationCost(p->blue_, NUM_LITERAL_CODES, NULL) in VP8LHistogramEstimateBits() 256 + PopulationCost(p->alpha_, NUM_LITERAL_CODES, NULL) in VP8LHistogramEstimateBits() 257 + PopulationCost(p->distance_, NUM_DISTANCE_CODES, NULL) in VP8LHistogramEstimateBits() 368 PopulationCost(h->alpha_, NUM_LITERAL_CODES, &alpha_sym); in UpdateHistogramCost() 370 PopulationCost(h->distance_, NUM_DISTANCE_CODES, NULL) + in UpdateHistogramCost() 373 h->literal_cost_ = PopulationCost(h->literal_, num_codes, NULL) + in UpdateHistogramCost() 376 h->red_cost_ = PopulationCost(h->red_, NUM_LITERAL_CODES, &red_sym); in UpdateHistogramCost() [all …]
|