aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-codec-support/src
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2020-06-15 18:46:08 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2020-06-15 18:46:08 +0200
commit02f41cfc7bebe283323a73a34ef14601116116da (patch)
treef62cc0cf4789557e626ad7e5a30d053282cf8848 /nihav-codec-support/src
parent4347bba10cf40229706ee48a8a868a35c82cd4c0 (diff)
downloadnihav-02f41cfc7bebe283323a73a34ef14601116116da.tar.gz
codec_support/vq: calculate full cluster distortion instead of an average
Diffstat (limited to 'nihav-codec-support/src')
-rw-r--r--nihav-codec-support/src/vq/generic_elbg.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/nihav-codec-support/src/vq/generic_elbg.rs b/nihav-codec-support/src/vq/generic_elbg.rs
index 3c3e3c0..01feaa8 100644
--- a/nihav-codec-support/src/vq/generic_elbg.rs
+++ b/nihav-codec-support/src/vq/generic_elbg.rs
@@ -56,9 +56,6 @@ impl<T: VQElement, TS: VQElementSum<T>> Cluster<T, TS> {
}
}
fn calc_dist(&mut self) {
- if self.count != 0 {
- self.dist = (self.dist + self.count / 2) / self.count;
- }
}
}