mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[host] all: tell the client if HDR PQ is in use or not
This commit is contained in:
@@ -802,7 +802,7 @@ next_output:
|
||||
// we convert to HDR10 to save bandwidth
|
||||
case DXGI_FORMAT_R16G16B16A16_FLOAT:
|
||||
this->dxgiFormat = DXGI_FORMAT_R10G10B10A2_UNORM;
|
||||
this->format = CAPTURE_FMT_RGBA10_HDR;
|
||||
this->format = CAPTURE_FMT_RGBA10;
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -1607,6 +1607,8 @@ static CaptureResult dxgi_waitFrame(CaptureFrame * frame, const size_t maxFrameS
|
||||
frame->pitch = this->pitch;
|
||||
frame->stride = this->stride;
|
||||
frame->format = this->format;
|
||||
frame->hdr = this->hdr;
|
||||
frame->hdrPQ = false;
|
||||
frame->rotation = this->rotation;
|
||||
|
||||
frame->damageRectsCount = tex->damageRectsCount;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user