diff --git a/src/main/java/bdv/server/CellHandler.java b/src/main/java/bdv/server/CellHandler.java index bdda70bb88f330c72414781fa0ca2dfaf05562e7..b4ee26860b975445ba938da11b613a8eefe01418 100644 --- a/src/main/java/bdv/server/CellHandler.java +++ b/src/main/java/bdv/server/CellHandler.java @@ -164,6 +164,15 @@ public class CellHandler extends ContextHandler @SuppressWarnings( "unchecked" ) final short[] data = ( ( VolatileCell< VolatileShortArray > ) cell ).getData().getCurrentStorageArray(); + + /* + * NOTE(Moravec): This is possible place, where to compress data. Image data are inside data array, but we access only part of the image. + * if (compressionEnabled) + * { + * data = compress(data); + * } + * */ + final byte[] buf = new byte[ 2 * data.length ]; for ( int i = 0, j = 0; i < data.length; i++ ) {