feat: Support 10-bit Video HDR (#1827)

* feat: Select 10-bit YUV HDR format if HDR is enabled

* fix: Remove video EDR setting in favor of new 10-bit video HDR

* Format Swift
This commit is contained in:
Marc Rousavy
2023-09-21 16:30:05 +02:00
committed by GitHub
parent cf4882b152
commit 9809075507
5 changed files with 71 additions and 42 deletions

View File

@@ -50,7 +50,7 @@ extension AVCaptureDevice.Format {
"minISO": minISO,
"fieldOfView": videoFieldOfView,
"maxZoom": videoMaxZoomFactor,
"supportsVideoHDR": isVideoHDRSupported,
"supportsVideoHDR": availablePixelFormats.contains(kCVPixelFormatType_420YpCbCr10BiPlanarFullRange),
"supportsPhotoHDR": false,
"minFps": minFrameRate,
"maxFps": maxFrameRate,