Class ShadowImageDecoder


  • @Implements(value=android.graphics.ImageDecoder.class,
                isInAndroidSdk=false,
                minSdk=28)
    public class ShadowImageDecoder
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static android.graphics.ImageDecoder ImageDecoder_nCreateAsset​(long asset_ptr, android.graphics.ImageDecoder.Source source)  
      protected static android.graphics.ImageDecoder ImageDecoder_nCreateByteArray​(byte[] byteArray, int offset, int length, android.graphics.ImageDecoder.Source source)  
      protected static android.graphics.ImageDecoder ImageDecoder_nCreateByteBuffer​(java.nio.ByteBuffer jbyteBuffer, int initialPosition, int limit, android.graphics.ImageDecoder.Source source)  
      protected static android.graphics.ImageDecoder ImageDecoder_nCreateFd​(java.io.FileDescriptor fileDescriptor, android.graphics.ImageDecoder.Source source)  
      protected static android.graphics.ImageDecoder ImageDecoder_nCreateInputStream​(java.io.InputStream is, byte[] storage, android.graphics.ImageDecoder.Source source)  
      protected static android.graphics.Bitmap ImageDecoder_nDecodeBitmap​(long nativePtr, android.graphics.ImageDecoder decoder, boolean doPostProcess, int width, int height, android.graphics.Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, android.graphics.ColorSpace desiredColorSpace)  
      protected static void nClose​(long nativePtr)  
      protected static android.graphics.ImageDecoder nCreate​(byte[] data, int offset, int length, android.graphics.ImageDecoder.Source src)  
      protected static android.graphics.ImageDecoder nCreate​(long asset, android.graphics.ImageDecoder.Source source)  
      protected static android.graphics.ImageDecoder nCreate​(java.io.FileDescriptor fd, android.graphics.ImageDecoder.Source src)  
      protected static android.graphics.ImageDecoder nCreate​(java.io.InputStream is, byte[] storage, android.graphics.ImageDecoder.Source source)  
      protected static android.graphics.ImageDecoder nCreate​(java.nio.ByteBuffer buffer, int position, int limit, android.graphics.ImageDecoder.Source src)  
      protected static android.graphics.Bitmap nDecodeBitmap​(long nativePtr, android.graphics.ImageDecoder decoder, boolean doPostProcess, int width, int height, android.graphics.Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, long desiredColorSpace, boolean extended)  
      protected static android.graphics.Bitmap nDecodeBitmap​(long nativePtr, android.graphics.ImageDecoder decoder, boolean doPostProcess, int width, int height, android.graphics.Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, android.graphics.ColorSpace desiredColorSpace)  
      protected static android.graphics.ColorSpace nGetColorSpace​(long nativePtr)  
      protected static java.lang.String nGetMimeType​(long nativePtr)  
      protected static void nGetPadding​(long nativePtr, android.graphics.Rect outRect)  
      protected static android.util.Size nGetSampledSize​(long nativePtr, int sampleSize)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowImageDecoder

        public ShadowImageDecoder()
    • Method Detail

      • ImageDecoder_nCreateFd

        protected static android.graphics.ImageDecoder ImageDecoder_nCreateFd​(java.io.FileDescriptor fileDescriptor,
                                                                              android.graphics.ImageDecoder.Source source)
      • ImageDecoder_nCreateInputStream

        protected static android.graphics.ImageDecoder ImageDecoder_nCreateInputStream​(java.io.InputStream is,
                                                                                       byte[] storage,
                                                                                       android.graphics.ImageDecoder.Source source)
      • ImageDecoder_nCreateAsset

        protected static android.graphics.ImageDecoder ImageDecoder_nCreateAsset​(long asset_ptr,
                                                                                 android.graphics.ImageDecoder.Source source)
                                                                          throws android.graphics.ImageDecoder.DecodeException
        Throws:
        android.graphics.ImageDecoder.DecodeException
      • ImageDecoder_nCreateByteBuffer

        protected static android.graphics.ImageDecoder ImageDecoder_nCreateByteBuffer​(java.nio.ByteBuffer jbyteBuffer,
                                                                                      int initialPosition,
                                                                                      int limit,
                                                                                      android.graphics.ImageDecoder.Source source)
                                                                               throws android.graphics.ImageDecoder.DecodeException
        Throws:
        android.graphics.ImageDecoder.DecodeException
      • ImageDecoder_nCreateByteArray

        protected static android.graphics.ImageDecoder ImageDecoder_nCreateByteArray​(byte[] byteArray,
                                                                                     int offset,
                                                                                     int length,
                                                                                     android.graphics.ImageDecoder.Source source)
      • ImageDecoder_nDecodeBitmap

        protected static android.graphics.Bitmap ImageDecoder_nDecodeBitmap​(long nativePtr,
                                                                            android.graphics.ImageDecoder decoder,
                                                                            boolean doPostProcess,
                                                                            int width,
                                                                            int height,
                                                                            android.graphics.Rect cropRect,
                                                                            boolean mutable,
                                                                            int allocator,
                                                                            boolean unpremulRequired,
                                                                            boolean conserveMemory,
                                                                            boolean decodeAsAlphaMask,
                                                                            android.graphics.ColorSpace desiredColorSpace)
                                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • nCreate

        @Implementation
        protected static android.graphics.ImageDecoder nCreate​(long asset,
                                                               android.graphics.ImageDecoder.Source source)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • nCreate

        @Implementation
        protected static android.graphics.ImageDecoder nCreate​(java.nio.ByteBuffer buffer,
                                                               int position,
                                                               int limit,
                                                               android.graphics.ImageDecoder.Source src)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • nCreate

        @Implementation
        protected static android.graphics.ImageDecoder nCreate​(byte[] data,
                                                               int offset,
                                                               int length,
                                                               android.graphics.ImageDecoder.Source src)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • nCreate

        @Implementation
        protected static android.graphics.ImageDecoder nCreate​(java.io.InputStream is,
                                                               byte[] storage,
                                                               android.graphics.ImageDecoder.Source source)
      • nCreate

        @Implementation
        protected static android.graphics.ImageDecoder nCreate​(java.io.FileDescriptor fd,
                                                               android.graphics.ImageDecoder.Source src)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • nDecodeBitmap

        @Implementation(maxSdk=28)
        protected static android.graphics.Bitmap nDecodeBitmap​(long nativePtr,
                                                               android.graphics.ImageDecoder decoder,
                                                               boolean doPostProcess,
                                                               int width,
                                                               int height,
                                                               android.graphics.Rect cropRect,
                                                               boolean mutable,
                                                               int allocator,
                                                               boolean unpremulRequired,
                                                               boolean conserveMemory,
                                                               boolean decodeAsAlphaMask,
                                                               android.graphics.ColorSpace desiredColorSpace)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • nDecodeBitmap

        @Implementation(minSdk=29)
        protected static android.graphics.Bitmap nDecodeBitmap​(long nativePtr,
                                                               android.graphics.ImageDecoder decoder,
                                                               boolean doPostProcess,
                                                               int width,
                                                               int height,
                                                               android.graphics.Rect cropRect,
                                                               boolean mutable,
                                                               int allocator,
                                                               boolean unpremulRequired,
                                                               boolean conserveMemory,
                                                               boolean decodeAsAlphaMask,
                                                               long desiredColorSpace,
                                                               boolean extended)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • nGetSampledSize

        @Implementation
        protected static android.util.Size nGetSampledSize​(long nativePtr,
                                                           int sampleSize)
      • nGetPadding

        @Implementation
        protected static void nGetPadding​(long nativePtr,
                                          android.graphics.Rect outRect)
      • nClose

        @Implementation
        protected static void nClose​(long nativePtr)
      • nGetMimeType

        @Implementation
        protected static java.lang.String nGetMimeType​(long nativePtr)
      • nGetColorSpace

        @Implementation
        protected static android.graphics.ColorSpace nGetColorSpace​(long nativePtr)