java.lang.Object |
↳ |
com.facebook.imagepipeline.platform.ArtDecoder |
Class Overview
Bitmap decoder for ART VM (Lollipop and up).
Summary
Public Constructors |
|
ArtDecoder(BitmapPool bitmapPool, int maxNumThreads, SynchronizedPool decodeBuffers)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
com.facebook.imagepipeline.platform.PlatformDecoder
|
Public Constructors
public
ArtDecoder
(BitmapPool bitmapPool, int maxNumThreads, SynchronizedPool decodeBuffers)
Public Methods
public
CloseableReference<Bitmap>
decodeFromEncodedImage
(EncodedImage encodedImage, Bitmap.Config bitmapConfig, Rect regionToDecode)
Creates a bitmap from encoded bytes.
Parameters
encodedImage |
the encoded image with a reference to the encoded bytes |
bitmapConfig |
the android.graphics.Bitmap.Config used to create the decoded
Bitmap |
regionToDecode |
optional image region to decode or null to decode the whole image |
Throws
OutOfMemoryError
| if the Bitmap cannot be allocated
|
public
CloseableReference<Bitmap>
decodeJPEGFromEncodedImage
(EncodedImage encodedImage, Bitmap.Config bitmapConfig, Rect regionToDecode, int length)
Creates a bitmap from encoded JPEG bytes. Supports a partial JPEG image.
Parameters
encodedImage |
the encoded image with reference to the encoded bytes |
bitmapConfig |
the android.graphics.Bitmap.Config used to create the decoded
Bitmap |
regionToDecode |
optional image region to decode or null to decode the whole image |
length |
the number of encoded bytes in the buffer |
Throws
OutOfMemoryError
| if the Bitmap cannot be allocated
|
Protected Methods
protected
CloseableReference<Bitmap>
decodeStaticImageFromStream
(InputStream inputStream, BitmapFactory.Options options, Rect regionToDecode)