From 45318aa65345e3bb3260975f637d099aa15eb5bb Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 26 Apr 2023 15:55:26 +1000 Subject: [PATCH] [host] nvfbc: bump the format version when HDR status changes --- host/platform/Windows/capture/NVFBC/src/nvfbc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/host/platform/Windows/capture/NVFBC/src/nvfbc.c b/host/platform/Windows/capture/NVFBC/src/nvfbc.c index f7b2ac5c..09eba33f 100644 --- a/host/platform/Windows/capture/NVFBC/src/nvfbc.c +++ b/host/platform/Windows/capture/NVFBC/src/nvfbc.c @@ -81,6 +81,7 @@ struct iface unsigned int formatVer; unsigned int grabWidth, grabHeight, grabStride; unsigned int shmStride; + bool isHDR; uint8_t * frameBuffer; uint8_t * diffMap; @@ -707,6 +708,7 @@ static CaptureResult nvfbc_waitFrame(CaptureFrame * frame, this->grabInfo.dwWidth != this->grabWidth || this->grabInfo.dwHeight != this->grabHeight || this->grabInfo.dwBufferWidth != this->grabStride || + this->grabInfo.bIsHDR != this->isHDR || this->resChanged) { this->grabWidth = this->grabInfo.dwWidth;