mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 23:27:26 +01:00
37 lines
2 KiB
Diff
37 lines
2 KiB
Diff
--- RNCamera.m 1985-10-26 04:15:00.000000000 -0400
|
|
+++ RNCamera.m 2020-11-15 20:37:09.000000000 -0500
|
|
@@ -603,7 +603,7 @@
|
|
if (self.whiteBalance != RNCameraWhiteBalanceAuto) {
|
|
RCTLogWarn(@"%s: locked whitebalance mode ist note supported. Fallback to continuous auto white balance mode", __func__);
|
|
}
|
|
- [device setWhiteBalanceMode:AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance];
|
|
+// [device setWhiteBalanceMode:AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance];
|
|
} else {
|
|
AVCaptureWhiteBalanceTemperatureAndTintValues temperatureAndTint = {
|
|
.temperature = [RNCameraUtils temperatureForWhiteBalance:self.whiteBalance],
|
|
@@ -626,7 +626,7 @@
|
|
[self lockDevice:device andApplySettings:^{
|
|
if (![device isWhiteBalanceModeSupported:AVCaptureWhiteBalanceModeLocked]) {
|
|
RCTLogWarn(@"%s: locked whitebalance mode ist note supported. Fallback to continuous auto white balance mode", __func__);
|
|
- [device setWhiteBalanceMode:AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance];
|
|
+// [device setWhiteBalanceMode:AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance];
|
|
} else {
|
|
AVCaptureWhiteBalanceTemperatureAndTintValues temperatureAndTint = {
|
|
.temperature = self.customWhiteBalanceSettings.temperature,
|
|
@@ -1282,7 +1282,7 @@
|
|
return;
|
|
}
|
|
|
|
-
|
|
+ #if !TARGET_OS_MACCATALYST
|
|
AVCaptureStillImageOutput *stillImageOutput = [[AVCaptureStillImageOutput alloc] init];
|
|
if ([self.session canAddOutput:stillImageOutput]) {
|
|
stillImageOutput.outputSettings = @{AVVideoCodecKey : AVVideoCodecJPEG};
|
|
@@ -1291,6 +1291,7 @@
|
|
self.stillImageOutput = stillImageOutput;
|
|
}
|
|
|
|
+#endif
|
|
// If AVCaptureVideoDataOutput is not required because of Google Vision
|
|
// (see comment in -record), we go ahead and add the AVCaptureMovieFileOutput
|
|
// to avoid an exposure rack on some devices that can cause the first few
|