BitmapFactoryImageDecoder.Factory


public final class BitmapFactoryImageDecoder.Factory implements ImageDecoder.Factory


A factory for BitmapFactoryImageDecoder instances.

Summary

Public constructors

Creates an instance using a BitmapFactory implementation of BitmapDecoder.

Creates an instance.

Public methods

BitmapFactoryImageDecoder

Creates a new ImageDecoder.

int

Returns the highest Capabilities of the factory's decoders for the given .

Inherited Constants

From androidx.media3.exoplayer.image.ImageDecoder.Factory
static final ImageDecoder.Factory

Default implementation of an image decoder factory.

Public constructors

Factory

public Factory()

Creates an instance using a BitmapFactory implementation of BitmapDecoder.

Factory

public Factory(BitmapFactoryImageDecoder.BitmapDecoder bitmapDecoder)

Creates an instance.

Parameters
BitmapFactoryImageDecoder.BitmapDecoder bitmapDecoder

The BitmapDecoder used to turn a byte arrays into a bitmap.

Public methods

createImageDecoder

public BitmapFactoryImageDecoder createImageDecoder()

Creates a new ImageDecoder.

supportsFormat

@RendererCapabilities.Capabilities
public int supportsFormat(Format format)

Returns the highest Capabilities of the factory's decoders for the given .

Parameters
Format format

The Format.

Returns
int

The Capabilities of the decoders the factory can instantiate for this format.