Commit 681de4e7 by huangdarwin Committed by Ian Baker

HDR: Require transcoding when forceInterpretHdrVideoAsSdr is set.

PiperOrigin-RevId: 487786326
parent 1eb8a6b3
...@@ -237,6 +237,9 @@ import com.google.common.collect.ImmutableList; ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment