VideoBitmapDecoder

open class VideoBitmapDecoder : VideoDecoder<T>

An com.bumptech.glide.load.ResourceDecoder that can decode a thumbnail frame from a android.os.ParcelFileDescriptor containing a video.

Deprecated

Use parcel instead. This class may be removed and VideoDecoder may become final in a future version of Glide.

See also

android.media.MediaMetadataRetriever

Constructors

Link copied to clipboard
open fun VideoBitmapDecoder(context: Context)
Link copied to clipboard
open fun VideoBitmapDecoder(bitmapPool: BitmapPool)

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>
abstract fun decode(    source: T,     width: Int,     height: Int,     options: Options): Resource<Z>
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
abstract fun handles(source: 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.