VideoDecoder

open class VideoDecoder<T> : ResourceDecoder<T, Z>

Decodes video data to Bitmaps from ParcelFileDescriptors and s.

Parameters

<T>

The type of data, currently either ParcelFileDescriptor or .

Functions

Link copied to clipboard
open fun asset(bitmapPool: BitmapPool): ResourceDecoder<AssetFileDescriptor, Bitmap>
Link copied to clipboard
open fun byteBuffer(bitmapPool: BitmapPool): ResourceDecoder<ByteBuffer, Bitmap>
Link copied to clipboard
open fun decode(    resource: T,     outWidth: Int,     outHeight: Int,     options: Options): Resource<Bitmap>
Returns a decoded resource from the given data or null if no resource could be decoded.
Link copied to clipboard
open fun handles(data: T, options: Options): Boolean
Returns true if this decoder is capable of decoding the given source with the given options, and false otherwise.
Link copied to clipboard
open fun parcel(bitmapPool: BitmapPool): ResourceDecoder<ParcelFileDescriptor, Bitmap>

Properties

Link copied to clipboard
val DEFAULT_FRAME: Long
A constant indicating we should use whatever frame we consider best, frequently not the first frame.
Link copied to clipboard
val FRAME_OPTION: Option<Integer>
An integer indicating the frame option used to retrieve a target frame.
Link copied to clipboard
val TARGET_FRAME: Option<Long>
A long indicating the time position (in microseconds) of the target frame which will be retrieved.

Inheritors

Link copied to clipboard