Commit 9c411992 by tofunmi Committed by Marc Baechinger

Change output color transfers when rendering Frame To Debug Surface

PiperOrigin-RevId: 522010318
parent 2f654d5a
...@@ -527,16 +527,12 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull; ...@@ -527,16 +527,12 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
.maybeRenderToSurfaceView( .maybeRenderToSurfaceView(
() -> { () -> {
GlUtil.clearOutputFrame(); GlUtil.clearOutputFrame();
if (enableColorTransfers) { @C.ColorTransfer
defaultShaderProgram.drawFrame(inputTexture.texId, presentationTimeUs); int configuredColorTransfer = defaultShaderProgram.getOutputColorTransfer();
} else { defaultShaderProgram.setOutputColorTransfer(
@C.ColorTransfer debugSurfaceViewWrapper.outputColorTransfer);
int configuredColorTransfer = defaultShaderProgram.getOutputColorTransfer(); defaultShaderProgram.drawFrame(inputTexture.texId, presentationTimeUs);
defaultShaderProgram.setOutputColorTransfer( defaultShaderProgram.setOutputColorTransfer(configuredColorTransfer);
debugSurfaceViewWrapper.outputColorTransfer);
defaultShaderProgram.drawFrame(inputTexture.texId, presentationTimeUs);
defaultShaderProgram.setOutputColorTransfer(configuredColorTransfer);
}
}, },
glObjectsProvider); glObjectsProvider);
} catch (VideoFrameProcessingException | GlUtil.GlException e) { } catch (VideoFrameProcessingException | GlUtil.GlException e) {
......
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