ExternallyLoadedImageDecoder.Factory


class ExternallyLoadedImageDecoder.Factory : ImageDecoder.Factory


A ImageDecoder.Factory for ExternallyLoadedImageDecoder instances.

Summary

Public constructors

Creates the factory.

Public functions

ExternallyLoadedImageDecoder!

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
const ImageDecoder.Factory!

Default implementation of an image decoder factory.

Public constructors

Factory

Factory(bitmapResolver: ExternallyLoadedImageDecoder.BitmapResolver!)

Creates the factory.

Parameters
bitmapResolver: ExternallyLoadedImageDecoder.BitmapResolver!

The BitmapResolver to resolve the ExternalImageRequest to a Bitmap.

Public functions

createImageDecoder

fun createImageDecoder(): ExternallyLoadedImageDecoder!

Creates a new ImageDecoder.

supportsFormat

@RendererCapabilities.Capabilities
fun supportsFormat(format: Format!): Int

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.