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 in3f615040c0
. That setting should apply to HDR videos as much as SDR videos. PiperOrigin-RevId: 471569853 (cherry picked from commit bc88f8be54b5c666d9ad591c04ac9faa4457454a)
This commit is contained in:
parent
62ed45b505
commit
15f8e361b6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user