Class MediaCodecAdapter.Configuration
- java.lang.Object
-
- com.google.android.exoplayer2.mediacodec.MediaCodecAdapter.Configuration
-
- Enclosing interface:
- MediaCodecAdapter
public static final class MediaCodecAdapter.Configuration extends Object
Configuration parameters for aMediaCodecAdapter.
-
-
Field Summary
Fields Modifier and Type Field Description MediaCodecInfocodecInfoInformation about theMediaCodecbeing configured.MediaCryptocryptoFor DRM protected playbacks, aMediaCryptoto use for decryption.intflagsSpecify CONFIGURE_FLAG_ENCODE to configure the component as an encoder.FormatformatTheFormatfor which the codec is being configured.MediaFormatmediaFormatTheMediaFormatfor which the codec is being configured.SurfacesurfaceFor video playbacks, the output where the object will render the decoded frames.
-
Constructor Summary
Constructors Constructor Description Configuration(MediaCodecInfo codecInfo, MediaFormat mediaFormat, Format format, Surface surface, MediaCrypto crypto, int flags)
-
-
-
Field Detail
-
codecInfo
public final MediaCodecInfo codecInfo
Information about theMediaCodecbeing configured.
-
mediaFormat
public final MediaFormat mediaFormat
TheMediaFormatfor which the codec is being configured.
-
surface
@Nullable public final Surface surface
For video playbacks, the output where the object will render the decoded frames.
-
crypto
@Nullable public final MediaCrypto crypto
For DRM protected playbacks, aMediaCryptoto use for decryption.
-
flags
public final int flags
Specify CONFIGURE_FLAG_ENCODE to configure the component as an encoder.
-
-
Constructor Detail
-
Configuration
public Configuration(MediaCodecInfo codecInfo, MediaFormat mediaFormat, Format format, @Nullable Surface surface, @Nullable MediaCrypto crypto, int flags)
-
-