public interface

ImageDecoder.Factory

 androidx.media3.exoplayer.image.ImageDecoder.Factory

Subclasses:

BitmapFactoryImageDecoder.Factory, ExternallyLoadedImageDecoder.Factory

Overview

A factory for image decoders.

Summary

Fields
public static final ImageDecoder.FactoryDEFAULT

Default implementation of an image decoder factory.

Methods
public ImageDecodercreateImageDecoder()

Creates a new ImageDecoder.

public intsupportsFormat(Format format)

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

Fields

public static final ImageDecoder.Factory DEFAULT

Default implementation of an image decoder factory.

Methods

public int supportsFormat(Format format)

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

Parameters:

format: The Format.

Returns:

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

public ImageDecoder createImageDecoder()

Creates a new ImageDecoder.