docs/doc/reference/com/google/android/exoplayer2/decoder/DecoderReuseEvaluation.html
Package com.google.android.exoplayer2.decoder
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classDecoderReuseEvaluationextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
The result of an evaluation to determine whether a decoder can be reused for a new input format.
Nested Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static interface | DecoderReuseEvaluation.DecoderDiscardReasons |
Deprecated.
Possible reasons why reuse is not possible.
|
| static interface | DecoderReuseEvaluation.DecoderReuseResult |
Deprecated.
Possible outcomes of the evaluation. |
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| String | decoderName |
Deprecated.
The name of the decoder.
|
| static int | DISCARD_REASON_APP_OVERRIDE |
Deprecated.
Decoder reuse is disabled by overriding behavior in application code.
|
| static int | DISCARD_REASON_AUDIO_BYPASS_POSSIBLE |
Deprecated.
The audio bypass mode is possible.
|
| static int | DISCARD_REASON_AUDIO_CHANNEL_COUNT_CHANGED |
Deprecated.
The audio channel count is changing.
|
| static int | DISCARD_REASON_AUDIO_ENCODING_CHANGED |
Deprecated.
The audio encoding is changing.
|
| static int | DISCARD_REASON_AUDIO_SAMPLE_RATE_CHANGED |
Deprecated.
The audio sample rate is changing.
|
| static int | DISCARD_REASON_DRM_SESSION_CHANGED |
Deprecated.
The DRM session is changing.
|
| static int | DISCARD_REASON_INITIALIZATION_DATA_CHANGED |
Deprecated.
The format initialization data is changing.
|
| static int | DISCARD_REASON_MAX_INPUT_SIZE_EXCEEDED |
Deprecated.
The new format may exceed the decoder's configured maximum sample size, in bytes.
|
| static int | DISCARD_REASON_MIME_TYPE_CHANGED |
Deprecated.
The sample MIME type is changing.
|
| static int | DISCARD_REASON_OPERATING_RATE_CHANGED |
Deprecated.
The codec's operating rate is changing.
|
| static int | DISCARD_REASON_REUSE_NOT_IMPLEMENTED |
Deprecated.
Decoder reuse is not implemented.
|
| static int | DISCARD_REASON_VIDEO_COLOR_INFO_CHANGED |
Deprecated.
The video ColorInfo is changing.
|
| static int | DISCARD_REASON_VIDEO_MAX_RESOLUTION_EXCEEDED |
Deprecated.
The new format may exceed the decoder's configured maximum resolution.
|
| static int | DISCARD_REASON_VIDEO_RESOLUTION_CHANGED |
Deprecated.
The video resolution is changing.
|
| static int | DISCARD_REASON_VIDEO_ROTATION_CHANGED |
Deprecated.
The video rotation is changing.
|
| static int | DISCARD_REASON_WORKAROUND |
Deprecated.
Decoder reuse is disabled by a workaround.
|
| @com.google.android.exoplayer2.decoder.DecoderReuseEvaluation.DecoderDiscardReasons int | discardReasons |
Deprecated.
Reasons why the decoder cannot be reused.
|
| Format | newFormat |
Deprecated.
The new Format being evaluated.
|
| Format | oldFormat |
Deprecated.
The Format for which the decoder was previously configured.
|
| @com.google.android.exoplayer2.decoder.DecoderReuseEvaluation.DecoderReuseResult int | result |
Deprecated.
The result of the evaluation.
|
| static int | REUSE_RESULT_NO |
Deprecated.
The decoder cannot be reused.
|
| static int | REUSE_RESULT_YES_WITH_FLUSH |
Deprecated.
The decoder can be reused, but must be flushed.
|
| static int | REUSE_RESULT_YES_WITH_RECONFIGURATION |
Deprecated.
The decoder can be reused.
|
| static int | REUSE_RESULT_YES_WITHOUT_RECONFIGURATION |
Deprecated.
The decoder can be kept. |
Constructors | Constructor | Description |
| --- | --- |
| DecoderReuseEvaluation(String decoderName, Format oldFormat, Format newFormat, @com.google.android.exoplayer2.decoder.DecoderReuseEvaluation.DecoderReuseResult int result, @com.google.android.exoplayer2.decoder.DecoderReuseEvaluation.DecoderDiscardReasons int discardReasons) |
Deprecated.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | equals(Object obj) |
Deprecated.
|
| int | hashCode() |
Deprecated.
|
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
public static final int REUSE_RESULT_NO
Deprecated.
The decoder cannot be reused. See Also:Constant Field Values
-
public static final int REUSE_RESULT_YES_WITH_FLUSH
Deprecated.
The decoder can be reused, but must be flushed. See Also:Constant Field Values
-
public static final int REUSE_RESULT_YES_WITH_RECONFIGURATION
Deprecated.
The decoder can be reused. It does not need to be flushed, but must be reconfigured by prefixing the next input buffer with the new format's configuration data. See Also:Constant Field Values
-
public static final int REUSE_RESULT_YES_WITHOUT_RECONFIGURATION
Deprecated.
The decoder can be kept. It does not need to be flushed and no reconfiguration is required. See Also:Constant Field Values
-
public static final int DISCARD_REASON_REUSE_NOT_IMPLEMENTED
Deprecated.
Decoder reuse is not implemented. See Also:Constant Field Values
-
public static final int DISCARD_REASON_WORKAROUND
Deprecated.
Decoder reuse is disabled by a workaround. See Also:Constant Field Values
-
public static final int DISCARD_REASON_APP_OVERRIDE
Deprecated.
Decoder reuse is disabled by overriding behavior in application code. See Also:Constant Field Values
-
public static final int DISCARD_REASON_MIME_TYPE_CHANGED
Deprecated.
The sample MIME type is changing. See Also:Constant Field Values
-
public static final int DISCARD_REASON_OPERATING_RATE_CHANGED
Deprecated.
The codec's operating rate is changing. See Also:Constant Field Values
-
public static final int DISCARD_REASON_INITIALIZATION_DATA_CHANGED
Deprecated.
The format initialization data is changing. See Also:Constant Field Values
-
public static final int DISCARD_REASON_MAX_INPUT_SIZE_EXCEEDED
Deprecated.
The new format may exceed the decoder's configured maximum sample size, in bytes. See Also:Constant Field Values
-
public static final int DISCARD_REASON_DRM_SESSION_CHANGED
Deprecated.
The DRM session is changing. See Also:Constant Field Values
-
public static final int DISCARD_REASON_VIDEO_MAX_RESOLUTION_EXCEEDED
Deprecated.
The new format may exceed the decoder's configured maximum resolution. See Also:Constant Field Values
-
public static final int DISCARD_REASON_VIDEO_RESOLUTION_CHANGED
Deprecated.
The video resolution is changing. See Also:Constant Field Values
-
public static final int DISCARD_REASON_VIDEO_ROTATION_CHANGED
Deprecated.
The video rotation is changing. See Also:Constant Field Values
-
public static final int DISCARD_REASON_VIDEO_COLOR_INFO_CHANGED
Deprecated.
The video ColorInfo is changing.
See Also:Constant Field Values
-
public static final int DISCARD_REASON_AUDIO_CHANNEL_COUNT_CHANGED
Deprecated.
The audio channel count is changing. See Also:Constant Field Values
-
public static final int DISCARD_REASON_AUDIO_SAMPLE_RATE_CHANGED
Deprecated.
The audio sample rate is changing. See Also:Constant Field Values
-
public static final int DISCARD_REASON_AUDIO_ENCODING_CHANGED
Deprecated.
The audio encoding is changing. See Also:Constant Field Values
-
public static final int DISCARD_REASON_AUDIO_BYPASS_POSSIBLE
Deprecated.
The audio bypass mode is possible. See Also:Constant Field Values
-
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")decoderName
Deprecated.
The name of the decoder.
-
public final[Format](../Format.html "class in com.google.android.exoplayer2")oldFormat
Deprecated.
The Format for which the decoder was previously configured.
-
public final[Format](../Format.html "class in com.google.android.exoplayer2")newFormat
Deprecated.
The new Format being evaluated.
-
public final @com.google.android.exoplayer2.decoder.DecoderReuseEvaluation.DecoderReuseResult int result
Deprecated.
The result of the evaluation.
-
public final @com.google.android.exoplayer2.decoder.DecoderReuseEvaluation.DecoderDiscardReasons int discardReasons
Deprecated.
Reasons why the decoder cannot be reused. Always 0 if reuse is possible. May also be {code 0} if reuse is not possible for an unspecified reason.
-
public DecoderReuseEvaluation([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")decoderName,[Format](../Format.html "class in com.google.android.exoplayer2")oldFormat,[Format](../Format.html "class in com.google.android.exoplayer2")newFormat,
@com.google.android.exoplayer2.decoder.DecoderReuseEvaluation.DecoderReuseResult int result,
@com.google.android.exoplayer2.decoder.DecoderReuseEvaluation.DecoderDiscardReasons int discardReasons)
Deprecated.
Parameters:decoderName - The name of the decoder.oldFormat - The Format for which the decoder was previously configured.newFormat - The new Format being evaluated.result - The result of the evaluation.discardReasons - One or more reasons why the decoder cannot be reused, or 0 if reuse is possible.
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)
Deprecated.
Overrides:equals in class Object
-
public int hashCode()
Deprecated.
Overrides:hashCode in class Object