From 02f41cfc7bebe283323a73a34ef14601116116da Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 15 Jun 2020 18:46:08 +0200 Subject: [PATCH] codec_support/vq: calculate full cluster distortion instead of an average --- nihav-codec-support/src/vq/generic_elbg.rs | 3 --- 1 file changed, 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> Cluster { } } fn calc_dist(&mut self) { - if self.count != 0 { - self.dist = (self.dist + self.count / 2) / self.count; - } } } -- 2.39.5