ExperimentalFrameExtractor.Configuration.Builder


class ExperimentalFrameExtractor.Configuration.Builder


A builder for Configuration instances.

Summary

Public constructors

Creates a new instance with default values.

Public functions

ExperimentalFrameExtractor.Configuration!

Builds a new Configuration instance.

ExperimentalFrameExtractor.Configuration.Builder!

Sets whether HDR bitmap should be extracted from HDR videos.

ExperimentalFrameExtractor.Configuration.Builder!

Sets the selector of MediaCodec instances.

ExperimentalFrameExtractor.Configuration.Builder!

Sets the parameters that control how seek operations are performed.

Public constructors

Builder

Builder()

Creates a new instance with default values.

Public functions

build

fun build(): ExperimentalFrameExtractor.Configuration!

Builds a new Configuration instance.

setExtractHdrFrames

@CanIgnoreReturnValue
@RequiresApi(value = 34)
fun setExtractHdrFrames(extractHdrFrames: Boolean): ExperimentalFrameExtractor.Configuration.Builder!

Sets whether HDR bitmap should be extracted from HDR videos.

When set to false, extracted HDR frames will be tone-mapped to BT709.

When set to true, extracted HDR frames will have RGBA_1010102 and BT2020_HLG. Extracting HDR frames is only supported on API 34+.

This flag has no effect when the input is SDR.

Defaults to false.

Parameters
extractHdrFrames: Boolean

Whether HDR frames should be returned.

setMediaCodecSelector

@CanIgnoreReturnValue
fun setMediaCodecSelector(mediaCodecSelector: MediaCodecSelector!): ExperimentalFrameExtractor.Configuration.Builder!

Sets the selector of MediaCodec instances. Defaults to PREFER_SOFTWARE.

Parameters
mediaCodecSelector: MediaCodecSelector!

The MediaCodecSelector.

setSeekParameters

@CanIgnoreReturnValue
fun setSeekParameters(seekParameters: SeekParameters!): ExperimentalFrameExtractor.Configuration.Builder!

Sets the parameters that control how seek operations are performed. Defaults to DEFAULT.

Parameters
seekParameters: SeekParameters!

The SeekParameters.