commonMain.ag.granular.tiff.compression.RawCompression.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tiffany-jvm Show documentation
Show all versions of tiffany-jvm Show documentation
A library for parsing Tagged Image File Format (Tiff) files
The newest version!
package ag.granular.tiff.compression
import ag.granular.io.ByteOrder
/**
* Raw / no compression
*/
class RawCompression : CompressionDecoder,
CompressionEncoder {
/**
* {@inheritDoc}
*/
override fun decode(bytes: ByteArray, byteOrder: ByteOrder): ByteArray {
return bytes
}
/**
* {@inheritDoc}
*/
override fun rowEncoding(): Boolean {
return false
}
/**
* {@inheritDoc}
*/
override fun encode(bytes: ByteArray, byteOrder: ByteOrder): ByteArray {
return bytes
}
}