mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Remove deprecated RendererSupport.FormatSupport
IntDef & constants
Use `C.FormatSupport` and associated constants instead. PiperOrigin-RevId: 637890304
This commit is contained in:
parent
496bc2b058
commit
3d8b5811b4
@ -224,6 +224,11 @@
|
|||||||
`AudioRendererEventListener.onAudioInputFormatChanged(Format)`,
|
`AudioRendererEventListener.onAudioInputFormatChanged(Format)`,
|
||||||
`VideoRendererEventListener.onVideoInputFormatChanged(Format)`. Use the
|
`VideoRendererEventListener.onVideoInputFormatChanged(Format)`. Use the
|
||||||
overloads that take a `DecoderReuseEvaluation` instead.
|
overloads that take a `DecoderReuseEvaluation` instead.
|
||||||
|
* Remove `RendererSupport.FormatSupport` IntDef and `FORMAT_HANDLED`,
|
||||||
|
`FORMAT_EXCEEDS_CAPABILITIES`, `FORMAT_UNSUPPORTED_DRM`,
|
||||||
|
`FORMAT_UNSUPPORTED_SUBTYPE`, `FORMAT_UNSUPPORTED_TYPE` constants. Use
|
||||||
|
the equivalent IntDef and constants in `androidx.media3.common.C`
|
||||||
|
instead (e.g. `C.FORMAT_HANDLED`).
|
||||||
|
|
||||||
## 1.4
|
## 1.4
|
||||||
|
|
||||||
|
@ -44,51 +44,9 @@ public interface RendererCapabilities {
|
|||||||
void onRendererCapabilitiesChanged(Renderer renderer);
|
void onRendererCapabilitiesChanged(Renderer renderer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link C.FormatSupport} instead.
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
@Documented
|
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
|
||||||
@Target(TYPE_USE)
|
|
||||||
@IntDef({
|
|
||||||
FORMAT_HANDLED,
|
|
||||||
FORMAT_EXCEEDS_CAPABILITIES,
|
|
||||||
FORMAT_UNSUPPORTED_DRM,
|
|
||||||
FORMAT_UNSUPPORTED_SUBTYPE,
|
|
||||||
FORMAT_UNSUPPORTED_TYPE
|
|
||||||
})
|
|
||||||
@Deprecated
|
|
||||||
@interface FormatSupport {}
|
|
||||||
|
|
||||||
/** A mask to apply to {@link Capabilities} to obtain the {@link C.FormatSupport} only. */
|
/** A mask to apply to {@link Capabilities} to obtain the {@link C.FormatSupport} only. */
|
||||||
int FORMAT_SUPPORT_MASK = 0b111;
|
int FORMAT_SUPPORT_MASK = 0b111;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link C#FORMAT_HANDLED} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated int FORMAT_HANDLED = C.FORMAT_HANDLED;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link C#FORMAT_EXCEEDS_CAPABILITIES} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated int FORMAT_EXCEEDS_CAPABILITIES = C.FORMAT_EXCEEDS_CAPABILITIES;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link C#FORMAT_UNSUPPORTED_DRM} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated int FORMAT_UNSUPPORTED_DRM = C.FORMAT_UNSUPPORTED_DRM;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link C#FORMAT_UNSUPPORTED_SUBTYPE} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated int FORMAT_UNSUPPORTED_SUBTYPE = C.FORMAT_UNSUPPORTED_SUBTYPE;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link C#FORMAT_UNSUPPORTED_TYPE} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated int FORMAT_UNSUPPORTED_TYPE = C.FORMAT_UNSUPPORTED_TYPE;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Level of renderer support for adaptive format switches. One of {@link #ADAPTIVE_SEAMLESS},
|
* Level of renderer support for adaptive format switches. One of {@link #ADAPTIVE_SEAMLESS},
|
||||||
* {@link #ADAPTIVE_NOT_SEAMLESS} or {@link #ADAPTIVE_NOT_SUPPORTED}.
|
* {@link #ADAPTIVE_NOT_SEAMLESS} or {@link #ADAPTIVE_NOT_SUPPORTED}.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user