AVCaptureDevice isLowLightBoostSupported always returns false on 5S iOS7.1 (for automaticallyEnablesLowLightBoostWhenAvailable)

I'm trying to enable AVCaptureDevice automaticallyEnablesLowLightBoostWhenAvailable in an iOS camera application, but I'm completely unable to make AVCaptureDevice isLowLightBoostSupported return true.

Question: Is there anything that needs to be done to turn on low-light acceleration beyond the blocking limits for configuration? Is there any known reason why isLowLightBoostSupported will always return false (for all devices) in a fully updated, modern system?

I am testing 5S with iOS 7.1.

For simplicity in this matter, I have ported the changes to the Apple AVCam testing application. The difference in AVCam is this:

diff --git a/AVCam/AVCam/AVCamViewController.m b/AVCam/AVCam/AVCamViewController.m
index 84a2c77..4e15fc4 100644
--- a/AVCam/AVCam/AVCamViewController.m
+++ b/AVCam/AVCam/AVCamViewController.m
@@ -175,6 +175,18 @@ static void * SessionRunningAndDeviceAuthorizedContext = &SessionRunningAndDevic
            [session addOutput:stillImageOutput];
            [self setStillImageOutput:stillImageOutput];
        }
+
+        if ([videoDevice respondsToSelector:@selector(isLowLightBoostSupported)]) {
+            if ([videoDevice lockForConfiguration:nil]) {
+                if (videoDevice.isLowLightBoostSupported) {
+                    videoDevice.automaticallyEnablesLowLightBoostWhenAvailable = YES;
+                    NSLog(@"was supported");
+                } else {
+                    NSLog(@"was not supported");
+                }
+                [videoDevice unlockForConfiguration];
+            }
+        }
    });
 }

AVCam github .

SO, . , :

AVCaptureSession sessionPreset AVCaptureSessionPresetHigh, AVCaptureSessionPresetPhoto AVCaptureSessionPresetLow isLowLightBoostSupported.

, - , !:)

+4
1

, , 5S . Apple , , , / 5S, , , .

, , , . , (iPhone 5), (iPhone 5S).

, iPod Touches iPads, . , iPhone 5c , iPhone 5, .

+2

Source: https://habr.com/ru/post/1532345/


All Articles