public class

WebpBitmapFactoryImpl

extends Object
implements WebpBitmapFactory
java.lang.Object
   ↳ com.facebook.webpsupport.WebpBitmapFactoryImpl

Summary

Fields
public static final boolean IN_BITMAP_SUPPORTED
Public Constructors
WebpBitmapFactoryImpl()
Public Methods
Bitmap decodeByteArray(byte[] array, int offset, int length, BitmapFactory.Options opts)
Bitmap decodeFile(String pathName, BitmapFactory.Options opts)
Bitmap decodeFileDescriptor(FileDescriptor fd, Rect outPadding, BitmapFactory.Options opts)
Bitmap decodeStream(InputStream inputStream, Rect outPadding, BitmapFactory.Options opts)
static Bitmap hookDecodeByteArray(byte[] array, int offset, int length, BitmapFactory.Options opts)
static Bitmap hookDecodeByteArray(byte[] array, int offset, int length)
static Bitmap hookDecodeFile(String pathName, BitmapFactory.Options opts)
static Bitmap hookDecodeFile(String pathName)
static Bitmap hookDecodeFileDescriptor(FileDescriptor fd)
static Bitmap hookDecodeFileDescriptor(FileDescriptor fd, Rect outPadding, BitmapFactory.Options opts)
static Bitmap hookDecodeResource(Resources res, int id, BitmapFactory.Options opts)
static Bitmap hookDecodeResource(Resources res, int id)
static Bitmap hookDecodeResourceStream(Resources res, TypedValue value, InputStream is, Rect pad, BitmapFactory.Options opts)
static Bitmap hookDecodeStream(InputStream inputStream)
static Bitmap hookDecodeStream(InputStream inputStream, Rect outPadding, BitmapFactory.Options opts)
void setBitmapCreator(BitmapCreator bitmapCreator)
Set the object which should create the bg Bitmap
void setWebpErrorLogger(WebpBitmapFactory.WebpErrorLogger webpErrorLogger)
Register the given listener as observer of error
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.common.webp.WebpBitmapFactory

Fields

public static final boolean IN_BITMAP_SUPPORTED

Public Constructors

public WebpBitmapFactoryImpl ()

Public Methods

public Bitmap decodeByteArray (byte[] array, int offset, int length, BitmapFactory.Options opts)

public Bitmap decodeFile (String pathName, BitmapFactory.Options opts)

public Bitmap decodeFileDescriptor (FileDescriptor fd, Rect outPadding, BitmapFactory.Options opts)

public Bitmap decodeStream (InputStream inputStream, Rect outPadding, BitmapFactory.Options opts)

public static Bitmap hookDecodeByteArray (byte[] array, int offset, int length, BitmapFactory.Options opts)

public static Bitmap hookDecodeByteArray (byte[] array, int offset, int length)

public static Bitmap hookDecodeFile (String pathName, BitmapFactory.Options opts)

public static Bitmap hookDecodeFile (String pathName)

public static Bitmap hookDecodeFileDescriptor (FileDescriptor fd)

public static Bitmap hookDecodeFileDescriptor (FileDescriptor fd, Rect outPadding, BitmapFactory.Options opts)

public static Bitmap hookDecodeResource (Resources res, int id, BitmapFactory.Options opts)

public static Bitmap hookDecodeResource (Resources res, int id)

public static Bitmap hookDecodeResourceStream (Resources res, TypedValue value, InputStream is, Rect pad, BitmapFactory.Options opts)

public static Bitmap hookDecodeStream (InputStream inputStream)

public static Bitmap hookDecodeStream (InputStream inputStream, Rect outPadding, BitmapFactory.Options opts)

public void setBitmapCreator (BitmapCreator bitmapCreator)

Set the object which should create the bg Bitmap

Parameters
bitmapCreator The BitmapCreator implementation

public void setWebpErrorLogger (WebpBitmapFactory.WebpErrorLogger webpErrorLogger)

Register the given listener as observer of error

Parameters
webpErrorLogger The WebpErrorLogger in order to observe webp errors