fix: Remove dng PixelFormat

This commit is contained in:
Marc Rousavy 2023-10-03 11:27:46 +02:00
parent 12c2987b85
commit d465c37bea
2 changed files with 1 additions and 7 deletions

View File

@ -12,7 +12,6 @@ import Foundation
enum PixelFormat { enum PixelFormat {
case yuv case yuv
case rgb case rgb
case dng
case native case native
case unknown case unknown
@ -22,8 +21,6 @@ enum PixelFormat {
return "yuv" return "yuv"
case .rgb: case .rgb:
return "rgb" return "rgb"
case .dng:
return "dng"
case .native: case .native:
return "native" return "native"
case .unknown: case .unknown:
@ -37,8 +34,6 @@ enum PixelFormat {
self = .yuv self = .yuv
case "rgb": case "rgb":
self = .rgb self = .rgb
case "dng":
self = .dng
case "native": case "native":
self = .native self = .native
case "unknown": case "unknown":

View File

@ -8,8 +8,7 @@
* *
* - `yuv`: Frame is in YUV pixel-format (Y'CbCr 4:2:0 or NV21, 8-bit) * - `yuv`: Frame is in YUV pixel-format (Y'CbCr 4:2:0 or NV21, 8-bit)
* - `rgb`: Frame is in RGB pixel-format (RGB or RGBA, 8-bit) * - `rgb`: Frame is in RGB pixel-format (RGB or RGBA, 8-bit)
* - `dng`: Frame is in a depth-data pixel format (DNG)
* - `native`: Frame is in the Camera's native Hardware Buffer format (PRIVATE). This is the most efficient Format. * - `native`: Frame is in the Camera's native Hardware Buffer format (PRIVATE). This is the most efficient Format.
* - `unknown`: Frame has unknown/unsupported pixel-format. * - `unknown`: Frame has unknown/unsupported pixel-format.
*/ */
export type PixelFormat = 'yuv' | 'rgb' | 'dng' | 'native' | 'unknown' export type PixelFormat = 'yuv' | 'rgb' | 'native' | 'unknown'