Back to Fresco

WebpSupportStatus

docs/javadoc/reference/com/facebook/common/webp/WebpSupportStatus.html

3.6.014.0 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Packages | Classes

Summary: Fields | Ctors | Methods | Inherited Methods | [Expand All]

public class

WebpSupportStatus

extends Object

| java.lang.Object | | ↳ | com.facebook.common.webp.WebpSupportStatus |

Summary

Fields
public static final boolean
public static final boolean
public static final boolean
public static WebpBitmapFactory
Public Constructors
Public Methods
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
Checks if imageHeaderBytes contains WEBP_RIFF_BYTES and WEBP_NAME_BYTES and if the header is long enough to be WebP's header.
static boolean
static WebpBitmapFactory

| [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() |

|

Fields

public static final boolean sIsExtendedWebpSupported

public static final boolean sIsSimpleWebpSupported

public static final boolean sIsWebpSupportRequired

public static WebpBitmapFactory sWebpBitmapFactory

Public Constructors

public WebpSupportStatus()

Public Methods

public static boolean isAnimatedWebpHeader(byte[] imageHeaderBytes, int offset)

public static boolean isExtendedWebpHeader(byte[] imageHeaderBytes, int offset, int headerSize)

public static boolean isExtendedWebpHeaderWithAlpha(byte[] imageHeaderBytes, int offset)

public static boolean isLosslessWebpHeader(byte[] imageHeaderBytes, int offset)

public static boolean isSimpleWebpHeader(byte[] imageHeaderBytes, int offset)

public static boolean isWebpHeader(byte[] imageHeaderBytes, int offset, int headerSize)

Checks if imageHeaderBytes contains WEBP_RIFF_BYTES and WEBP_NAME_BYTES and if the header is long enough to be WebP's header. WebP file format can be found here: https://developers.google.com/speed/webp/docs/riff_container

Parameters

| imageHeaderBytes | image header bytes |

Returns
  • true if imageHeaderBytes contains a valid webp header

public static boolean isWebpSupportedByPlatform(byte[] imageHeaderBytes, int offset, int headerSize)

public static WebpBitmapFactory loadWebpBitmapFactoryIfExists()

+Generated by Doclava. +