BitmapFactoryImageDecoder.Factory


class BitmapFactoryImageDecoder.Factory : ImageDecoder.Factory


A factory for BitmapFactoryImageDecoder instances.

Summary

Public constructors

This function is deprecated.

Use Factory instead.

This function is deprecated.

Use ExternallyLoadedImageDecoder to control how images are decoded.

Factory(context: Context!)

Creates an instance.

Public functions

BitmapFactoryImageDecoder!

Creates a new ImageDecoder.

BitmapFactoryImageDecoder.Factory!

Sets the maximum size of Bitmap instances decoded by decoders produced by this factory.

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!

This property is deprecated.

Instantiate a BitmapFactoryImageDecoder.Factory directly.

Public constructors

Factory

Factory()

Factory

Factory(bitmapDecoder: BitmapFactoryImageDecoder.BitmapDecoder!)

Factory

Factory(context: Context!)

Creates an instance.

Public functions

createImageDecoder

fun createImageDecoder(): BitmapFactoryImageDecoder!

Creates a new ImageDecoder.

setMaxOutputSize

@CanIgnoreReturnValue
fun setMaxOutputSize(maxOutputSize: Int): BitmapFactoryImageDecoder.Factory!

Sets the maximum size of Bitmap instances decoded by decoders produced by this factory.

This overrides any maximum size derived from the display via Context. Passing LENGTH_UNSET clears any max output size set.

Returns
BitmapFactoryImageDecoder.Factory!

This factory, for convenience.

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.