Skip transcoding if HDR video does not need encoding.

3b0d2c1586 made `shouldPassthrough` always return false for `enableHdrVideoEditing`:

>We force using `FrameEditor` (no passthrough) to avoid the need to select another edit operation, and use the new shaders. The `EGLContext` and `EGLSurface` also need to be set up differently for this path.

However, this was introduced before the `videoNeedsEncoding` setting was introduced in 3f615040c0. That setting should apply to HDR videos as much as SDR videos.

PiperOrigin-RevId: 471569853
This commit is contained in:
Googler 2022-09-01 17:37:30 +00:00 committed by Marc Baechinger
parent bac7d697c3
commit 94713a8ffb

View file

@ -143,9 +143,6 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
if (transformationRequest.enableRequestSdrToneMapping) {
return false;
}
if (transformationRequest.enableHdrEditing) {
return false;
}
if (transformationRequest.videoMimeType != null
&& !transformationRequest.videoMimeType.equals(inputFormat.sampleMimeType)) {
return false;