| java.lang.Object | |
| ↳ | com.facebook.imagepipeline.transcoder.JpegTranscoderUtils |
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | DEFAULT_JPEG_QUALITY | ||||||||||
| int | MAX_QUALITY | ||||||||||
| int | MAX_SCALE_NUMERATOR | ||||||||||
| int | MIN_QUALITY | ||||||||||
| int | MIN_SCALE_NUMERATOR | ||||||||||
| int | SCALE_DENOMINATOR | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public static final ImmutableList<Integer> | INVERTED_EXIF_ORIENTATIONS | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| JpegTranscoderUtils() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static int |
calculateDownsampleNumerator(int downsampleRatio)
This method calculate the ratio in case the downsampling was enabled
| ||||||||||
| static float | determineResizeRatio(ResizeOptions resizeOptions, int width, int height) | ||||||||||
| static int |
getForceRotatedInvertedExifOrientation(RotationOptions rotationOptions, EncodedImage encodedImage)
Get an inverted exif orientation (2, 4, 5, 7) but adjusted to take the force rotation angle
into consideration
| ||||||||||
| static int | getRotationAngle(RotationOptions rotationOptions, EncodedImage encodedImage) | ||||||||||
| static int | getSoftwareNumerator(RotationOptions rotationOptions, ResizeOptions resizeOptions, EncodedImage encodedImage, boolean resizingEnabled) | ||||||||||
| static Matrix |
getTransformationMatrix(EncodedImage encodedImage, RotationOptions rotationOptions)
Compute the transformation matrix needed to rotate the image.
| ||||||||||
| static boolean | isExifOrientationAllowed(int exifOrientation) | ||||||||||
| static boolean | isRotationAngleAllowed(int degrees) | ||||||||||
| static int | roundNumerator(float maxRatio, float roundUpFraction) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
This method calculate the ratio in case the downsampling was enabled
| downsampleRatio | The ratio from downsampling |
|---|
Get an inverted exif orientation (2, 4, 5, 7) but adjusted to take the force rotation angle into consideration
| IllegalArgumentException | if encoded image passed doesn't have an inverted EXIF orientation |
|---|
Compute the transformation matrix needed to rotate the image. If no transformation is needed, it returns null.
| encodedImage | The EncodedImage used when computing the matrix. |
|---|---|
| rotationOptions | The RotationOptions used when computing the matrix |