OSDN Git Service

Camera2: Increase max timeout for the precapture sequence.
authorEino-Ville Talvala <etalvala@google.com>
Wed, 19 Sep 2012 23:12:18 +0000 (16:12 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Wed, 19 Sep 2012 23:12:18 +0000 (16:12 -0700)
Increase maximum duration of the precapture sequence (final metering +
preflash + redeye reduction) to 2 seconds before timing out.

Change-Id: Ie1de4e96d46599eb53e1def9052b211e684f1fbc

services/camera/libcameraservice/camera2/CaptureSequencer.h

index c5c5654..474bdac 100644 (file)
@@ -92,7 +92,7 @@ class CaptureSequencer:
      */
     static const nsecs_t kWaitDuration = 100000000; // 100 ms
     static const int kMaxTimeoutsForPrecaptureStart = 2; // 200 ms
-    static const int kMaxTimeoutsForPrecaptureEnd = 10;  // 1 sec
+    static const int kMaxTimeoutsForPrecaptureEnd = 20;  // 2 sec
     static const int kMaxTimeoutsForCaptureEnd    = 40;  // 4 sec
 
     wp<Camera2Client> mClient;