All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mil.nga.tiff.compression.CompressionEncoder Maven / Gradle / Ivy

The newest version!
package mil.nga.tiff.compression;

import java.nio.ByteOrder;

/**
 * Compression encoder interface. Encode either on a per row or block basis
 * 
 * @author osbornb
 */
public interface CompressionEncoder {

	/**
	 * True to encode on a per row basis, false to encode on a per block / strip
	 * basis
	 * 
	 * @return true for row encoding
	 */
	public boolean rowEncoding();

	/**
	 * Encode the bytes
	 * 
	 * @param bytes
	 *            bytes to encode
	 * @param byteOrder
	 *            byte order
	 * @return encoded block of bytes
	 */
	public byte[] encode(byte[] bytes, ByteOrder byteOrder);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy