Commit 904253df by huangdarwin Committed by Tianyi Feng

HDR: Use SDR settings for gamma 2.2 in createEglSurface

PiperOrigin-RevId: 496768072
parent ef35170e
...@@ -292,7 +292,7 @@ public final class GlUtil { ...@@ -292,7 +292,7 @@ public final class GlUtil {
throws GlException { throws GlException {
int[] configAttributes; int[] configAttributes;
int[] windowAttributes; int[] windowAttributes;
if (colorTransfer == C.COLOR_TRANSFER_SDR) { if (colorTransfer == C.COLOR_TRANSFER_SDR || colorTransfer == C.COLOR_TRANSFER_GAMMA_2_2) {
configAttributes = EGL_CONFIG_ATTRIBUTES_RGBA_8888; configAttributes = EGL_CONFIG_ATTRIBUTES_RGBA_8888;
windowAttributes = EGL_WINDOW_SURFACE_ATTRIBUTES_NONE; windowAttributes = EGL_WINDOW_SURFACE_ATTRIBUTES_NONE;
} else if (colorTransfer == C.COLOR_TRANSFER_ST2084) { } else if (colorTransfer == C.COLOR_TRANSFER_ST2084) {
......
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