[host] app: report to the client if the frame is actually HDR

This commit is contained in:
Geoffrey McRae
2023-04-26 15:48:01 +10:00
parent e4a8424fad
commit f84165ac66
5 changed files with 47 additions and 19 deletions

View File

@@ -733,7 +733,8 @@ static CaptureResult nvfbc_waitFrame(CaptureFrame * frame,
updateDamageRects(frame);
frame->format = CAPTURE_FMT_RGBA10;
frame->format = this->grabInfo.bIsHDR ?
CAPTURE_FMT_RGBA10_HDR : CAPTURE_FMT_RGBA10_SDR;
return CAPTURE_RESULT_OK;
}