BitmapFactoryImageDecoder.Factory


class BitmapFactoryImageDecoder.Factory : ImageDecoder.Factory


A factory for BitmapFactoryImageDecoder instances.

Summary

Public constructors

Creates an instance using a BitmapFactory implementation of BitmapDecoder.

Creates an instance.

Public functions

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

Default implementation of an image decoder factory.

Public constructors

Factory

Factory()

Creates an instance using a BitmapFactory implementation of BitmapDecoder.

Factory

Factory(bitmapDecoder: BitmapFactoryImageDecoder.BitmapDecoder!)

Creates an instance.

Parameters
bitmapDecoder: BitmapFactoryImageDecoder.BitmapDecoder!

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

Public functions

createImageDecoder

fun createImageDecoder(): BitmapFactoryImageDecoder!

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.