mirror of
https://github.com/androidx/media.git
synced 2025-05-13 02:29:52 +08:00
Remove TransformationRequest.Builder deprecated methods
TransformationRequest.Builder will become package private. PiperOrigin-RevId: 543987255
This commit is contained in:
parent
8cecb93570
commit
a632118875
@ -100,6 +100,12 @@
|
|||||||
tests and Compose UI tests. This fixes a bug where playback advances
|
tests and Compose UI tests. This fixes a bug where playback advances
|
||||||
non-deterministically during Espresso or Compose view interactions.
|
non-deterministically during Espresso or Compose view interactions.
|
||||||
* Remove deprecated symbols:
|
* Remove deprecated symbols:
|
||||||
|
* Remove
|
||||||
|
`TransformationRequest.Builder.setEnableRequestSdrToneMapping(boolean)`
|
||||||
|
and
|
||||||
|
`TransformationRequest.Builder.experimental_setEnableHdrEditing(boolean)`.
|
||||||
|
Use `Composition.Builder.setHdrMode(int)` and pass the `Composition` to
|
||||||
|
`Transformer.start(Composition, String)` instead.
|
||||||
|
|
||||||
## 1.1
|
## 1.1
|
||||||
|
|
||||||
|
@ -154,35 +154,6 @@ public final class TransformationRequest {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated This method is now a no-op if {@code false}, and sets {@code
|
|
||||||
* setHdrMode(HDR_MODE_TONE_MAP_HDR_TO_SDR_USING_MEDIACODEC)} if {@code true}. Use {@link
|
|
||||||
* #setHdrMode} with {@link #HDR_MODE_TONE_MAP_HDR_TO_SDR_USING_MEDIACODEC} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
@CanIgnoreReturnValue
|
|
||||||
public Builder setEnableRequestSdrToneMapping(boolean enableRequestSdrToneMapping) {
|
|
||||||
if (enableRequestSdrToneMapping) {
|
|
||||||
return setHdrMode(HDR_MODE_TONE_MAP_HDR_TO_SDR_USING_MEDIACODEC);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated This method is now a no-op if {@code false}, and sets {@code
|
|
||||||
* setHdrMode(HDR_MODE_KEEP_HDR)} if {@code true}. {@code
|
|
||||||
* experimental_setEnableHdrEditing(true)} is now the default behavior. Use {@link
|
|
||||||
* #setHdrMode} with link {@link #HDR_MODE_KEEP_HDR} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
@CanIgnoreReturnValue
|
|
||||||
public Builder experimental_setEnableHdrEditing(boolean enableHdrEditing) {
|
|
||||||
if (enableHdrEditing) {
|
|
||||||
return setHdrMode(HDR_MODE_KEEP_HDR);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@CanIgnoreReturnValue
|
@CanIgnoreReturnValue
|
||||||
// TODO(b/255953153): remove this method once fallback has been refactored.
|
// TODO(b/255953153): remove this method once fallback has been refactored.
|
||||||
/* package */ Builder setResolution(int outputHeight) {
|
/* package */ Builder setResolution(int outputHeight) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user