projects
/
imagesqueeze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated copyright. Prefer HTTPS in documentation. Switched to LGPLv3 or later.
[imagesqueeze.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
imagesqueeze
/
codec
/
ColorStats.java
diff --git
a/src/main/java/eu/svjatoslav/imagesqueeze/codec/ColorStats.java
b/src/main/java/eu/svjatoslav/imagesqueeze/codec/ColorStats.java
index
8d206cf
..
3ffb83d
100755
(executable)
--- a/
src/main/java/eu/svjatoslav/imagesqueeze/codec/ColorStats.java
+++ b/
src/main/java/eu/svjatoslav/imagesqueeze/codec/ColorStats.java
@@
-1,43
+1,42
@@
/*
/*
- * Imagesqueeze - Image codec optimized for photos.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
+ * Imagesqueeze - Image codec. Copyright ©2012-2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ *
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
- * modify it under the terms of version
2 of the GNU
General Public License
- * as published by the Free Software Foundation.
+ * modify it under the terms of version
3 of the GNU Lesser
General Public License
+ *
or later
as published by the Free Software Foundation.
*/
package eu.svjatoslav.imagesqueeze.codec;
*/
package eu.svjatoslav.imagesqueeze.codec;
-
public
class ColorStats {
+class ColorStats {
-
int ySum;
-
int uSum;
-
int vSum;
+ int ySum;
+ int uSum;
+ int vSum;
-
int pixelCount;
+ int pixelCount;
-
public ColorStats() {
-
reset();
-
}
+ public ColorStats() {
+ reset();
+ }
-
public int getAverageU() {
-
return uSum / pixelCount;
-
}
+ public int getAverageU() {
+ return uSum / pixelCount;
+ }
-
public int getAverageV() {
-
return vSum / pixelCount;
-
}
+ public int getAverageV() {
+ return vSum / pixelCount;
+ }
-
public int getAverageY() {
-
return ySum / pixelCount;
-
}
+ public int getAverageY() {
+ return ySum / pixelCount;
+ }
-
public void reset() {
-
ySum = 0;
-
uSum = 0;
-
vSum = 0;
-
pixelCount = 0;
-
}
+ public void reset() {
+ ySum = 0;
+ uSum = 0;
+ vSum = 0;
+ pixelCount = 0;
+ }
}
}