perf: Use lossy
compressed YUV buffers if available (#2195)
This commit is contained in:
@@ -33,7 +33,7 @@ extension AVCaptureDevice.Format {
|
||||
let hdrFormats = [
|
||||
kCVPixelFormatType_420YpCbCr10BiPlanarFullRange,
|
||||
kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange,
|
||||
kCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarVideoRange,
|
||||
kCVPixelFormatType_Lossy_420YpCbCr10PackedBiPlanarVideoRange,
|
||||
]
|
||||
return hdrFormats.contains(pixelFormat)
|
||||
}
|
||||
|
Reference in New Issue
Block a user