@Implements(value=android.graphics.ImageDecoder.class, isInAndroidSdk=false, minSdk=28) public class ShadowImageDecoder extends Object
Constructor and Description |
---|
ShadowImageDecoder() |
Modifier and Type | Method and Description |
---|---|
protected static void |
nClose(long nativePtr) |
protected static ImageDecoder |
nCreate(byte[] data,
int offset,
int length,
ImageDecoder.Source src) |
protected static ImageDecoder |
nCreate(ByteBuffer buffer,
int position,
int limit,
ImageDecoder.Source src) |
protected static ImageDecoder |
nCreate(FileDescriptor fd,
ImageDecoder.Source src) |
protected static ImageDecoder |
nCreate(InputStream is,
byte[] storage,
ImageDecoder.Source source) |
protected static ImageDecoder |
nCreate(long asset,
ImageDecoder.Source source) |
protected static Bitmap |
nDecodeBitmap(long nativePtr,
ImageDecoder decoder,
boolean doPostProcess,
int width,
int height,
Rect cropRect,
boolean mutable,
int allocator,
boolean unpremulRequired,
boolean conserveMemory,
boolean decodeAsAlphaMask,
ColorSpace desiredColorSpace) |
protected static ColorSpace |
nGetColorSpace(long nativePtr) |
protected static String |
nGetMimeType(long nativePtr) |
protected static void |
nGetPadding(long nativePtr,
Rect outRect) |
protected static Size |
nGetSampledSize(long nativePtr,
int sampleSize) |
@Implementation protected static ImageDecoder nCreate(long asset, ImageDecoder.Source source) throws IOException
IOException
@Implementation protected static ImageDecoder nCreate(ByteBuffer buffer, int position, int limit, ImageDecoder.Source src) throws IOException
IOException
@Implementation protected static ImageDecoder nCreate(byte[] data, int offset, int length, ImageDecoder.Source src) throws IOException
IOException
@Implementation protected static ImageDecoder nCreate(InputStream is, byte[] storage, ImageDecoder.Source source)
@Implementation protected static ImageDecoder nCreate(FileDescriptor fd, ImageDecoder.Source src) throws IOException
IOException
@Implementation(maxSdk=28) protected static Bitmap nDecodeBitmap(long nativePtr, ImageDecoder decoder, boolean doPostProcess, int width, int height, Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, ColorSpace desiredColorSpace) throws IOException
IOException
@Implementation protected static Size nGetSampledSize(long nativePtr, int sampleSize)
@Implementation protected static void nGetPadding(long nativePtr, Rect outRect)
@Implementation protected static void nClose(long nativePtr)
@Implementation protected static String nGetMimeType(long nativePtr)
@Implementation protected static ColorSpace nGetColorSpace(long nativePtr)