ImageHeaderParser

interface ImageHeaderParser

Interface for the ImageHeaderParser.

Types

Link copied to clipboard
enum ImageType
The format of the image data including whether or not the image may include transparent pixels.

Functions

Link copied to clipboard
abstract fun getOrientation(is: InputStream, byteArrayPool: ArrayPool): Int
Parse the orientation from the image header.
abstract fun getOrientation(byteBuffer: ByteBuffer, byteArrayPool: ArrayPool): Int
Link copied to clipboard
abstract fun getType(is: InputStream): ImageHeaderParser.ImageType
abstract fun getType(byteBuffer: ByteBuffer): ImageHeaderParser.ImageType

Properties

Link copied to clipboard
val UNKNOWN_ORIENTATION: Int
A constant indicating we were unable to parse the orientation from the image either because no exif segment containing orientation data existed, or because of an I/O error attempting to read the exif segment.

Inheritors

Link copied to clipboard
Link copied to clipboard