MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / eval_error_cell

Function eval_error_cell

libavcodec/elbg.c:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81static int eval_error_cell(elbg_data *elbg, int *centroid, cell *cells)
82{
83 int error=0;
84 for (; cells; cells=cells->next)
85 error += distance_limited(centroid, elbg->points + cells->index*elbg->dim, elbg->dim, INT_MAX);
86
87 return error;
88}
89
90static int get_closest_codebook(elbg_data *elbg, int index)
91{

Callers 1

try_shift_candidateFunction · 0.85

Calls 1

distance_limitedFunction · 0.85

Tested by

no test coverage detected