mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Skip transcoding if HDR video does not need encoding.
3b0d2c1586made `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 commit94713a8ffb)
This commit is contained in:
parent
4d4af37637
commit
61374d1698
1 changed files with 0 additions and 3 deletions
|
|
@ -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…
Reference in a new issue