HDR: Use SDR settings for gamma 2.2 in createEglSurface

PiperOrigin-RevId: 496768072
This commit is contained in:
huangdarwin 2022-12-20 23:31:21 +00:00 committed by Tianyi Feng
parent ef35170e21
commit 904253df07

View File

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