DefaultImageHeaderParser

class DefaultImageHeaderParser : ImageHeaderParser

A class for parsing the exif orientation and other data from an image header.

Functions

Link copied to clipboard
open fun getOrientation(is: InputStream, byteArrayPool: ArrayPool): Int
Parse the orientation from the image header.
open fun getOrientation(byteBuffer: ByteBuffer, byteArrayPool: ArrayPool): Int
Link copied to clipboard
open fun getType(is: InputStream): ImageHeaderParser.ImageType
open 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.