@Implements(value=android.graphics.ImageDecoder.class, isInAndroidSdk=false, minSdk=28) public class ShadowImageDecoder extends Object
Constructor | Description |
---|---|
ShadowImageDecoder() |
Modifier and Type | Method | Description |
---|---|---|
protected static ImageDecoder |
ImageDecoder_nCreateAsset(long asset_ptr,
ImageDecoder.Source source) |
|
protected static ImageDecoder |
ImageDecoder_nCreateByteArray(byte[] byteArray,
int offset,
int length,
ImageDecoder.Source source) |
|
protected static ImageDecoder |
ImageDecoder_nCreateByteBuffer(ByteBuffer jbyteBuffer,
int initialPosition,
int limit,
ImageDecoder.Source source) |
|
protected static ImageDecoder |
ImageDecoder_nCreateFd(FileDescriptor fileDescriptor,
ImageDecoder.Source source) |
|
protected static ImageDecoder |
ImageDecoder_nCreateInputStream(InputStream is,
byte[] storage,
ImageDecoder.Source source) |
|
protected static Bitmap |
ImageDecoder_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 void |
nClose(long nativePtr) |
|
protected static ImageDecoder |
nCreate(byte[] data,
int offset,
int length,
ImageDecoder.Source src) |
|
protected static ImageDecoder |
nCreate(long asset,
ImageDecoder.Source source) |
|
protected static ImageDecoder |
nCreate(FileDescriptor fd,
ImageDecoder.Source src) |
|
protected static ImageDecoder |
nCreate(InputStream is,
byte[] storage,
ImageDecoder.Source source) |
|
protected static ImageDecoder |
nCreate(ByteBuffer buffer,
int position,
int limit,
ImageDecoder.Source src) |
|
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,
long desiredColorSpace,
boolean extended) |
|
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) |
protected static ImageDecoder ImageDecoder_nCreateFd(FileDescriptor fileDescriptor, ImageDecoder.Source source)
protected static ImageDecoder ImageDecoder_nCreateInputStream(InputStream is, byte[] storage, ImageDecoder.Source source)
protected static ImageDecoder ImageDecoder_nCreateAsset(long asset_ptr, ImageDecoder.Source source) throws ImageDecoder.DecodeException
ImageDecoder.DecodeException
protected static ImageDecoder ImageDecoder_nCreateByteBuffer(ByteBuffer jbyteBuffer, int initialPosition, int limit, ImageDecoder.Source source) throws ImageDecoder.DecodeException
ImageDecoder.DecodeException
protected static ImageDecoder ImageDecoder_nCreateByteArray(byte[] byteArray, int offset, int length, ImageDecoder.Source source)
protected static Bitmap ImageDecoder_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 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(minSdk=29) 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, long desiredColorSpace, boolean extended) 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)