HDR: Don't register unsupported HDR bitmap input.
Minimal fix for HDR test postsubmit breakage PiperOrigin-RevId: 529734521
This commit is contained in:
parent
f28a588809
commit
38d3fb5382
@ -560,7 +560,11 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
|
||||
textureOutputListener);
|
||||
|
||||
inputSwitcher.registerInput(INPUT_TYPE_SURFACE);
|
||||
inputSwitcher.registerInput(INPUT_TYPE_BITMAP);
|
||||
if (!ColorInfo.isTransferHdr(inputColorInfo)) {
|
||||
// HDR bitmaps are not supported.
|
||||
inputSwitcher.registerInput(INPUT_TYPE_BITMAP);
|
||||
}
|
||||
|
||||
inputSwitcher.setDownstreamShaderProgram(effectsShaderPrograms.get(0));
|
||||
|
||||
setGlObjectProviderOnShaderPrograms(effectsShaderPrograms, glObjectsProvider);
|
||||
|
Loading…
x
Reference in New Issue
Block a user