[host] all: tell the client if HDR PQ is in use or not

This commit is contained in:
Geoffrey McRae
2023-10-27 01:11:57 +11:00
parent 2f36aaff5c
commit b41840b010
4 changed files with 17 additions and 15 deletions

View File

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