From d465c37beab2b5dc68f277ed3b1885312c9f01dd Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Tue, 3 Oct 2023 11:27:46 +0200 Subject: [PATCH] fix: Remove `dng` PixelFormat --- package/ios/Parsers/PixelFormat.swift | 5 ----- package/src/PixelFormat.ts | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/package/ios/Parsers/PixelFormat.swift b/package/ios/Parsers/PixelFormat.swift index e1e2af1..d0f2baf 100644 --- a/package/ios/Parsers/PixelFormat.swift +++ b/package/ios/Parsers/PixelFormat.swift @@ -12,7 +12,6 @@ import Foundation enum PixelFormat { case yuv case rgb - case dng case native case unknown @@ -22,8 +21,6 @@ enum PixelFormat { return "yuv" case .rgb: return "rgb" - case .dng: - return "dng" case .native: return "native" case .unknown: @@ -37,8 +34,6 @@ enum PixelFormat { self = .yuv case "rgb": self = .rgb - case "dng": - self = .dng case "native": self = .native case "unknown": diff --git a/package/src/PixelFormat.ts b/package/src/PixelFormat.ts index 780fdd3..325bb16 100644 --- a/package/src/PixelFormat.ts +++ b/package/src/PixelFormat.ts @@ -8,8 +8,7 @@ * * - `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) - * - `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. * - `unknown`: Frame has unknown/unsupported pixel-format. */ -export type PixelFormat = 'yuv' | 'rgb' | 'dng' | 'native' | 'unknown' +export type PixelFormat = 'yuv' | 'rgb' | 'native' | 'unknown'