diff options
author | Yin-Chia Yeh <yinchiayeh@google.com> | 2015-02-24 15:51:43 -0800 |
---|---|---|
committer | Yin-Chia Yeh <yinchiayeh@google.com> | 2015-07-16 16:19:05 -0700 |
commit | 355d9c6b74cd22a88fc7d1c9ba2e928ba566c69e (patch) | |
tree | bc32a65fff0ded381544c769d66e694c284adfe8 /services/camera/libcameraservice/api1/Camera2Client.h | |
parent | 11addc1d922efa0bf12e261481bba11024c7c7ab (diff) | |
download | frameworks_av-355d9c6b74cd22a88fc7d1c9ba2e928ba566c69e.zip frameworks_av-355d9c6b74cd22a88fc7d1c9ba2e928ba566c69e.tar.gz frameworks_av-355d9c6b74cd22a88fc7d1c9ba2e928ba566c69e.tar.bz2 |
Camera2Client: handle slower jpeg stream sensor
If largest jpeg stream cannot sustain 30 FPS, don't
create jpeg stream until takePicture is called and remove
it after still capture is done.
Also, disable video snapshot for such sensors so video snapshot
won't slow down video recording.
Bug: 22231605
Change-Id: I2b34d2537c224694ae10f2006b5a46be45a1b1a6
Diffstat (limited to 'services/camera/libcameraservice/api1/Camera2Client.h')
-rw-r--r-- | services/camera/libcameraservice/api1/Camera2Client.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/services/camera/libcameraservice/api1/Camera2Client.h b/services/camera/libcameraservice/api1/Camera2Client.h index c288313..d50bf63 100644 --- a/services/camera/libcameraservice/api1/Camera2Client.h +++ b/services/camera/libcameraservice/api1/Camera2Client.h @@ -129,6 +129,9 @@ public: status_t stopStream(); + // For the slowJpegMode to create jpeg stream when precapture sequence is done + status_t createJpegStreamL(camera2::Parameters ¶ms); + static size_t calculateBufferSize(int width, int height, int format, int stride); @@ -145,6 +148,9 @@ public: static const char* kAutofocusLabel; static const char* kTakepictureLabel; + // Used with stream IDs + static const int NO_STREAM = -1; + private: /** ICamera interface-related private members */ typedef camera2::Parameters Parameters; @@ -177,9 +183,6 @@ private: void setPreviewCallbackFlagL(Parameters ¶ms, int flag); status_t updateRequests(Parameters ¶ms); - // Used with stream IDs - static const int NO_STREAM = -1; - template <typename ProcessorT> status_t updateProcessorStream(sp<ProcessorT> processor, Parameters params); template <typename ProcessorT, |