public class DecodeUtils
extends java.lang.Object
| Constructor and Description |
|---|
DecodeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static android.graphics.BitmapRegionDecoder |
createBitmapRegionDecoder(ThreadPool.JobContext jc,
byte[] bytes,
int offset,
int length,
boolean shareable) |
static android.graphics.BitmapRegionDecoder |
createBitmapRegionDecoder(ThreadPool.JobContext jc,
java.io.FileDescriptor fd,
boolean shareable) |
static android.graphics.BitmapRegionDecoder |
createBitmapRegionDecoder(ThreadPool.JobContext jc,
java.io.InputStream is,
boolean shareable) |
static android.graphics.BitmapRegionDecoder |
createBitmapRegionDecoder(ThreadPool.JobContext jc,
java.lang.String filePath,
boolean shareable) |
static android.graphics.Bitmap |
decode(ThreadPool.JobContext jc,
byte[] bytes,
android.graphics.BitmapFactory.Options options) |
static android.graphics.Bitmap |
decode(ThreadPool.JobContext jc,
byte[] bytes,
int offset,
int length,
android.graphics.BitmapFactory.Options options) |
static android.graphics.Bitmap |
decode(ThreadPool.JobContext jc,
java.io.FileDescriptor fd,
android.graphics.BitmapFactory.Options options) |
static void |
decodeBounds(ThreadPool.JobContext jc,
byte[] bytes,
int offset,
int length,
android.graphics.BitmapFactory.Options options) |
static void |
decodeBounds(ThreadPool.JobContext jc,
java.io.FileDescriptor fd,
android.graphics.BitmapFactory.Options options) |
static android.graphics.Bitmap |
decodeIfBigEnough(ThreadPool.JobContext jc,
byte[] data,
android.graphics.BitmapFactory.Options options,
int targetSize)
Decodes the bitmap from the given byte array if the image size is larger than the given
requirement.
|
static android.graphics.Bitmap |
decodeThumbnail(ThreadPool.JobContext jc,
java.io.FileDescriptor fd,
android.graphics.BitmapFactory.Options options,
int targetSize,
int type) |
static android.graphics.Bitmap |
decodeThumbnail(ThreadPool.JobContext jc,
java.lang.String filePath,
android.graphics.BitmapFactory.Options options,
int targetSize,
int type) |
static android.graphics.Bitmap |
decodeUsingPool(ThreadPool.JobContext jc,
byte[] data,
int offset,
int length,
android.graphics.BitmapFactory.Options options) |
static android.graphics.Bitmap |
decodeUsingPool(ThreadPool.JobContext jc,
java.io.FileDescriptor fileDescriptor,
android.graphics.BitmapFactory.Options options) |
static android.graphics.Bitmap |
ensureGLCompatibleBitmap(android.graphics.Bitmap bitmap) |
static void |
setOptionsMutable(android.graphics.BitmapFactory.Options options) |
public static void setOptionsMutable(android.graphics.BitmapFactory.Options options)
public static android.graphics.Bitmap decode(ThreadPool.JobContext jc, java.io.FileDescriptor fd, android.graphics.BitmapFactory.Options options)
public static void decodeBounds(ThreadPool.JobContext jc, java.io.FileDescriptor fd, android.graphics.BitmapFactory.Options options)
public static android.graphics.Bitmap decode(ThreadPool.JobContext jc, byte[] bytes, android.graphics.BitmapFactory.Options options)
public static android.graphics.Bitmap decode(ThreadPool.JobContext jc, byte[] bytes, int offset, int length, android.graphics.BitmapFactory.Options options)
public static void decodeBounds(ThreadPool.JobContext jc, byte[] bytes, int offset, int length, android.graphics.BitmapFactory.Options options)
public static android.graphics.Bitmap decodeThumbnail(ThreadPool.JobContext jc, java.lang.String filePath, android.graphics.BitmapFactory.Options options, int targetSize, int type)
public static android.graphics.Bitmap decodeThumbnail(ThreadPool.JobContext jc, java.io.FileDescriptor fd, android.graphics.BitmapFactory.Options options, int targetSize, int type)
public static android.graphics.Bitmap decodeIfBigEnough(ThreadPool.JobContext jc, byte[] data, android.graphics.BitmapFactory.Options options, int targetSize)
targetSize.public static android.graphics.Bitmap ensureGLCompatibleBitmap(android.graphics.Bitmap bitmap)
public static android.graphics.BitmapRegionDecoder createBitmapRegionDecoder(ThreadPool.JobContext jc, byte[] bytes, int offset, int length, boolean shareable)
public static android.graphics.BitmapRegionDecoder createBitmapRegionDecoder(ThreadPool.JobContext jc, java.lang.String filePath, boolean shareable)
public static android.graphics.BitmapRegionDecoder createBitmapRegionDecoder(ThreadPool.JobContext jc, java.io.FileDescriptor fd, boolean shareable)
public static android.graphics.BitmapRegionDecoder createBitmapRegionDecoder(ThreadPool.JobContext jc, java.io.InputStream is, boolean shareable)
public static android.graphics.Bitmap decodeUsingPool(ThreadPool.JobContext jc, byte[] data, int offset, int length, android.graphics.BitmapFactory.Options options)
public static android.graphics.Bitmap decodeUsingPool(ThreadPool.JobContext jc, java.io.FileDescriptor fileDescriptor, android.graphics.BitmapFactory.Options options)