Commit 772f5790 by huangdarwin Committed by Tofunmi Adigun-Hameed

HDR: Don't register unsupported HDR bitmap input.

Minimal fix for HDR test postsubmit breakage

PiperOrigin-RevId: 529734521
parent c032f806
...@@ -558,7 +558,11 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor { ...@@ -558,7 +558,11 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
textureOutputListener); textureOutputListener);
inputSwitcher.registerInput(INPUT_TYPE_SURFACE); inputSwitcher.registerInput(INPUT_TYPE_SURFACE);
if (!ColorInfo.isTransferHdr(inputColorInfo)) {
// HDR bitmaps are not supported.
inputSwitcher.registerInput(INPUT_TYPE_BITMAP); inputSwitcher.registerInput(INPUT_TYPE_BITMAP);
}
inputSwitcher.setDownstreamShaderProgram(effectsShaderPrograms.get(0)); inputSwitcher.setDownstreamShaderProgram(effectsShaderPrograms.get(0));
setGlObjectProviderOnShaderPrograms(effectsShaderPrograms, glObjectsProvider); setGlObjectProviderOnShaderPrograms(effectsShaderPrograms, glObjectsProvider);
......
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