mirror of
https://github.com/androidx/media.git
synced 2025-05-12 10:09:55 +08:00
HDR: Require transcoding when forceInterpretHdrVideoAsSdr is set.
PiperOrigin-RevId: 487786326
This commit is contained in:
parent
fab66d972e
commit
b6d49ec59b
@ -237,6 +237,9 @@ import com.google.common.collect.ImmutableList;
|
|||||||
if (transformationRequest.enableRequestSdrToneMapping) {
|
if (transformationRequest.enableRequestSdrToneMapping) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (transformationRequest.forceInterpretHdrVideoAsSdr) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (transformationRequest.videoMimeType != null
|
if (transformationRequest.videoMimeType != null
|
||||||
&& !transformationRequest.videoMimeType.equals(inputFormat.sampleMimeType)) {
|
&& !transformationRequest.videoMimeType.equals(inputFormat.sampleMimeType)) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user