| java.lang.Object | |
| ↳ | com.facebook.imageutils.JfifUtil |
Util for obtaining information from JPEG file.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | APP1_EXIF_MAGIC | ||||||||||
| int | MARKER_APP1 | ||||||||||
| int | MARKER_EOI | ||||||||||
| int | MARKER_ESCAPE_BYTE | ||||||||||
| int | MARKER_FIRST_BYTE | Definitions of jpeg markers as well as overall description of jpeg file format can be found here: Recommendation T.81 | |||||||||
| int | MARKER_RST0 | ||||||||||
| int | MARKER_RST7 | ||||||||||
| int | MARKER_SOFn | ||||||||||
| int | MARKER_SOI | ||||||||||
| int | MARKER_SOS | ||||||||||
| int | MARKER_TEM | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static int |
getAutoRotateAngleFromOrientation(int orientation)
Determines auto-rotate angle based on orientation information.
| ||||||||||
| static int |
getOrientation(byte[] jpeg)
Gets orientation information from jpeg byte array.
| ||||||||||
| static int |
getOrientation(InputStream is)
Get orientation information from jpeg input stream.
| ||||||||||
| static boolean |
moveToMarker(InputStream is, int markerToFind)
Reads the content of the input stream until specified marker is found.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Definitions of jpeg markers as well as overall description of jpeg file format can be found here: Recommendation T.81
Determines auto-rotate angle based on orientation information.
| orientation | orientation information, one of {1, 3, 6, 8}. |
|---|
Gets orientation information from jpeg byte array.
| jpeg | the input byte array of jpeg image |
|---|
Get orientation information from jpeg input stream.
| is | the input stream of jpeg image |
|---|
Reads the content of the input stream until specified marker is found. Marker will be consumed and the input stream will be positioned after the specified marker.
| is | the input stream to read bytes from |
|---|---|
| markerToFind | the marker we are looking for |
| IOException |
|---|