ImageHeaderParserUtils

class ImageHeaderParserUtils

Utilities for the ImageHeaderParser.

Functions

Link copied to clipboard
open fun getOrientation(    parsers: List<ImageHeaderParser>,     parcelFileDescriptorRewinder: ParcelFileDescriptorRewinder,     byteArrayPool: ArrayPool): Int

open fun getOrientation(    parsers: List<ImageHeaderParser>,     is: InputStream,     byteArrayPool: ArrayPool): Int
Returns the orientation for the given InputStream.
open fun getOrientation(    parsers: List<ImageHeaderParser>,     buffer: ByteBuffer,     arrayPool: ArrayPool): Int
Returns the result from the first of parsers that returns something other than UNKNOWN_ORIENTATION.
Link copied to clipboard
open fun getType(parsers: List<ImageHeaderParser>, buffer: ByteBuffer): ImageHeaderParser.ImageType
Returns the ImageType for the given ByteBuffer.
open fun getType(    parsers: List<ImageHeaderParser>,     parcelFileDescriptorRewinder: ParcelFileDescriptorRewinder,     byteArrayPool: ArrayPool): ImageHeaderParser.ImageType

open fun getType(    parsers: List<ImageHeaderParser>,     is: InputStream,     byteArrayPool: ArrayPool): ImageHeaderParser.ImageType
Returns the ImageType for the given InputStream.