1 package eu.svjatoslav.imagesqueeze.codec;
4 * Class to hold image metadata.
5 * Like image dimensions, header version, compression quality, etc..
8 import java.io.IOException;
11 public class ImageMetaData {
18 public void load(BitInputStream inputStream) throws IOException{
20 version = inputStream.readBits(16);
21 width = inputStream.readIntegerCompressed8();
22 height = inputStream.readIntegerCompressed8();
26 public void save(BitOutputStream outputStream) throws IOException{
28 outputStream.storeBits(version, 16);
29 outputStream.storeIntegerCompressed8(width);
30 outputStream.storeIntegerCompressed8(height);