public interface ImageHeaderParser
Modifier and Type | Interface and Description |
---|---|
static class |
ImageHeaderParser.ImageType
The format of the image data including whether or not the image may include transparent
pixels.
|
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_ORIENTATION
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.
|
Modifier and Type | Method and Description |
---|---|
int |
getOrientation(ByteBuffer byteBuffer,
ArrayPool byteArrayPool) |
int |
getOrientation(InputStream is,
ArrayPool byteArrayPool)
Parse the orientation from the image header.
|
ImageHeaderParser.ImageType |
getType(ByteBuffer byteBuffer) |
ImageHeaderParser.ImageType |
getType(InputStream is) |
static final int UNKNOWN_ORIENTATION
@NonNull ImageHeaderParser.ImageType getType(@NonNull InputStream is) throws IOException
IOException
@NonNull ImageHeaderParser.ImageType getType(@NonNull ByteBuffer byteBuffer) throws IOException
IOException
int getOrientation(@NonNull InputStream is, @NonNull ArrayPool byteArrayPool) throws IOException
IOException
int getOrientation(@NonNull ByteBuffer byteBuffer, @NonNull ArrayPool byteArrayPool) throws IOException
IOException