Changed license to CC0
[imagesqueeze.git] / src / main / java / eu / svjatoslav / imagesqueeze / codec / ImageMetaData.java
index 49e9000..1c0fc7b 100755 (executable)
@@ -1,12 +1,7 @@
 /*
- * Imagesqueeze - Image codec optimized for photos.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
- * 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.
+ * Image codec. Author: Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * This project is released under Creative Commons Zero (CC0) license.
  */
-
 package eu.svjatoslav.imagesqueeze.codec;
 
 /**
@@ -14,27 +9,27 @@ package eu.svjatoslav.imagesqueeze.codec;
  * Like image dimensions, header version, compression quality, etc..
  */
 
-import java.io.IOException;
-
 import eu.svjatoslav.commons.data.BitInputStream;
 import eu.svjatoslav.commons.data.BitOutputStream;
 
+import java.io.IOException;
+
 public class ImageMetaData {
 
-       int version;
-       int width;
-       int height;
-
-       public void load(final BitInputStream inputStream) throws IOException {
-               version = inputStream.readBits(16);
-               width = ImageDecoder.readIntegerCompressed8(inputStream);
-               height = ImageDecoder.readIntegerCompressed8(inputStream);
-       }
-
-       public void save(final BitOutputStream outputStream) throws IOException {
-               outputStream.storeBits(version, 16);
-               ImageEncoder.storeIntegerCompressed8(outputStream, width);
-               ImageEncoder.storeIntegerCompressed8(outputStream, height);
-       }
+    int version;
+    int width;
+    int height;
+
+    public void load(final BitInputStream inputStream) throws IOException {
+        version = inputStream.readBits(16);
+        width = ImageDecoder.readIntegerCompressed8(inputStream);
+        height = ImageDecoder.readIntegerCompressed8(inputStream);
+    }
+
+    public void save(final BitOutputStream outputStream) throws IOException {
+        outputStream.storeBits(version, 16);
+        ImageEncoder.storeIntegerCompressed8(outputStream, width);
+        ImageEncoder.storeIntegerCompressed8(outputStream, height);
+    }
 
 }