[client] egl: add support to map HDR to SDR

This commit is contained in:
Geoffrey McRae
2023-04-26 16:26:33 +10:00
parent 99333a03c1
commit ad43969c1a
5 changed files with 127 additions and 2 deletions

View File

@@ -631,6 +631,7 @@ int main_frameThread(void * unused)
lgrFormat.frameHeight = frame->frameHeight;
lgrFormat.stride = frame->stride;
lgrFormat.pitch = frame->pitch;
lgrFormat.hdr = frame->flags & FRAME_FLAG_HDR;
if (frame->flags & FRAME_FLAG_TRUNCATED)
{
@@ -695,11 +696,12 @@ int main_frameThread(void * unused)
g_state.formatValid = true;
formatVer = frame->formatVer;
DEBUG_INFO("Format: %s %ux%u stride:%u pitch:%u rotation:%d",
DEBUG_INFO("Format: %s %ux%u stride:%u pitch:%u rotation:%d hdr:%d",
FrameTypeStr[frame->type],
frame->frameWidth, frame->frameHeight,
frame->stride, frame->pitch,
frame->rotation);
frame->rotation,
frame->flags & FRAME_FLAG_HDR ? 1 : 0);
LG_LOCK(g_state.lgrLock);
if (!RENDERER(onFrameFormat, lgrFormat))