java.lang.Object | |
↳ | com.facebook.imagepipeline.transcoder.DownsampleUtil |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DEFAULT_SAMPLE_SIZE |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static float | determineDownsampleRatio(RotationOptions rotationOptions, ResizeOptions resizeOptions, EncodedImage encodedImage) | ||||||||||
static int |
determineSampleSize(RotationOptions rotationOptions, ResizeOptions resizeOptions, EncodedImage encodedImage, int maxBitmapSize)
Get the factor between the dimensions of the encodedImage (actual image) and the ones of the
imageRequest (requested size).
| ||||||||||
static int | determineSampleSizeJPEG(EncodedImage encodedImage, int pixelSize, int maxBitmapSizeInBytes) | ||||||||||
static int | ratioToSampleSize(float ratio) | ||||||||||
static int | ratioToSampleSizeJPEG(float ratio) | ||||||||||
static int | roundToPowerOfTwo(int sampleSize) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Get the factor between the dimensions of the encodedImage (actual image) and the ones of the imageRequest (requested size).
rotationOptions | the rotations options of the request |
---|---|
resizeOptions | the resize options of the request |
encodedImage | the encoded image with the actual dimensions |
maxBitmapSize | the maximum supported bitmap size (in pixels) when not specified in the encoded image resizeOptions. |