BitmapFactoryImageDecoder.BitmapDecoder


@VisibleForTesting(otherwise = 2)
public interface BitmapFactoryImageDecoder.BitmapDecoder


A functional interface for turning byte arrays into bitmaps.

Summary

Public methods

abstract Bitmap
decode(byte[] data, int length)

Decodes data into a Bitmap.

Public methods

decode

abstract Bitmap decode(byte[] data, int length)

Decodes data into a Bitmap.

Parameters
byte[] data

An array holding the data to be decoded, starting at position 0.

int length

The length of the input to be decoded.

Returns
Bitmap

The decoded Bitmap.

Throws
androidx.media3.exoplayer.image.ImageDecoderException

If a decoding error occurs.