Commit 2fcda321 by tofunmi Committed by Tofunmi Adigun-Hameed

Disable texture input when input is HDR

Verified by running all the tests in mh (excluding the analysis tests) on a pixel 7 pro

PiperOrigin-RevId: 530655237
parent 454c5a24
...@@ -570,12 +570,12 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor { ...@@ -570,12 +570,12 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
inputSwitcher.registerInput(INPUT_TYPE_SURFACE); inputSwitcher.registerInput(INPUT_TYPE_SURFACE);
if (!ColorInfo.isTransferHdr(inputColorInfo)) { if (!ColorInfo.isTransferHdr(inputColorInfo)) {
// HDR bitmaps are not supported. // HDR bitmap or texture input is not supported.
inputSwitcher.registerInput(INPUT_TYPE_BITMAP); inputSwitcher.registerInput(INPUT_TYPE_BITMAP);
} if (inputColorInfo.colorTransfer != C.COLOR_TRANSFER_SRGB) {
if (inputColorInfo.colorTransfer != C.COLOR_TRANSFER_SRGB) { // Image and textureId concatenation not supported.
// Image and textureId concatenation not supported. inputSwitcher.registerInput(INPUT_TYPE_TEXTURE_ID);
inputSwitcher.registerInput(INPUT_TYPE_TEXTURE_ID); }
} }
inputSwitcher.setDownstreamShaderProgram(effectsShaderPrograms.get(0)); inputSwitcher.setDownstreamShaderProgram(effectsShaderPrograms.get(0));
......
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