You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ios/CameraError.swift
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,7 @@ enum FormatError {
112
112
case invalidFps(fps:Int)
113
113
case invalidHdr
114
114
case invalidFormat
115
+
case invalidColorSpace(colorSpace:String)
115
116
case invalidPreset(preset:String)
116
117
117
118
varcode:String{
@@ -124,6 +125,8 @@ enum FormatError {
124
125
return"invalid-hdr"
125
126
case.invalidPreset:
126
127
return"invalid-preset"
128
+
case.invalidColorSpace:
129
+
return"invalid-color-space"
127
130
}
128
131
}
129
132
@@ -135,6 +138,8 @@ enum FormatError {
135
138
return"The given FPS were not valid for the currently selected format. Make sure you select a format which `frameRateRanges` includes \(fps) FPS!"
136
139
case.invalidHdr:
137
140
return"The currently selected format does not support HDR capture! Make sure you select a format which `frameRateRanges` includes `supportsPhotoHDR`!"
141
+
caselet.invalidColorSpace(colorSpace):
142
+
return"The currently selected format does not support the colorSpace \"\(colorSpace)\"! Make sure you select a format which `colorSpaces` includes \"\(colorSpace)\"!"
138
143
caselet.invalidPreset(preset):
139
144
return"The preset \"\(preset)\" is not available for the current camera device."
0 commit comments