projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
codec_support/vq: calculate full cluster distortion instead of an average
[nihav.git]
/
nihav-codec-support
/
src
/
vq
/
generic_elbg.rs
diff --git
a/nihav-codec-support/src/vq/generic_elbg.rs
b/nihav-codec-support/src/vq/generic_elbg.rs
index 3c3e3c075f480043b3834e88e24ba6eb7bbc89fc..01feaa852084c7cbc30c95de74337de62883d87a 100644
(file)
--- 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;
- }
}
}