HDR: Don't register unsupported HDR bitmap input.

Minimal fix for HDR test postsubmit breakage

PiperOrigin-RevId: 529734521
This commit is contained in:
huangdarwin 2023-05-05 16:18:39 +00:00 committed by Tofunmi Adigun-Hameed
parent f28a588809
commit 38d3fb5382

View File

@ -560,7 +560,11 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
textureOutputListener);
inputSwitcher.registerInput(INPUT_TYPE_SURFACE);
if (!ColorInfo.isTransferHdr(inputColorInfo)) {
// HDR bitmaps are not supported.
inputSwitcher.registerInput(INPUT_TYPE_BITMAP);
}
inputSwitcher.setDownstreamShaderProgram(effectsShaderPrograms.get(0));
setGlObjectProviderOnShaderPrograms(effectsShaderPrograms, glObjectsProvider);