Back to Fresco

DefaultImageFormatChecker

docs/javadoc/reference/com/facebook/imageformat/DefaultImageFormatChecker.html

3.6.012.1 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Packages | Classes

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

public class

DefaultImageFormatChecker

extends Object
implements ImageFormat.FormatChecker

| java.lang.Object | | ↳ | com.facebook.imageformat.DefaultImageFormatChecker |

Class Overview

Default image format checker that is able to determine all DefaultImageFormats.

Summary

Public Constructors
Public Methods
final ImageFormat
Tries to match imageHeaderByte and headerSize against every known image format.
int
Get the number of header bytes the format checker requires

| [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.imageformat.ImageFormat.FormatChecker

| abstract ImageFormat | determineFormat(byte[] headerBytes, int headerSize) Returns an ImageFormat if the checker is able to determine the format or null otherwise. | | abstract int | getHeaderSize() Get the number of header bytes the format checker requires |

|

Public Constructors

public DefaultImageFormatChecker()

Public Methods

public final ImageFormat determineFormat(byte[] headerBytes, int headerSize)

Tries to match imageHeaderByte and headerSize against every known image format. If any match succeeds, corresponding ImageFormat is returned.

Parameters

| headerBytes | the header bytes to check | | headerSize | the available header size |

Returns
  • ImageFormat for given imageHeaderBytes or UNKNOWN if no such type could be recognized

public int getHeaderSize()

Get the number of header bytes the format checker requires

Returns
  • the number of header bytes needed

+Generated by Doclava. +