mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
HDR: Use SDR settings for gamma 2.2 in createEglSurface
PiperOrigin-RevId: 496768072
This commit is contained in:
parent
ef35170e21
commit
904253df07
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue