mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
HDR: Require transcoding when forceInterpretHdrVideoAsSdr is set.
PiperOrigin-RevId: 487786326
This commit is contained in:
parent
1eb8a6b36e
commit
681de4e763
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue