diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:43 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:43 -0800 |
commit | e09fd9e819c23dc90bca68375645e15544861330 (patch) | |
tree | 9a9fdadd1301625f875a3c126c986c79e3363ac4 /include/ui/ICamera.h | |
parent | 7c1b96a165f970a09ed239bb4fb3f1b0d8f2a407 (diff) | |
download | frameworks_native-e09fd9e819c23dc90bca68375645e15544861330.zip frameworks_native-e09fd9e819c23dc90bca68375645e15544861330.tar.gz frameworks_native-e09fd9e819c23dc90bca68375645e15544861330.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'include/ui/ICamera.h')
-rw-r--r-- | include/ui/ICamera.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/ui/ICamera.h b/include/ui/ICamera.h index 6aa3940..99c0d86 100644 --- a/include/ui/ICamera.h +++ b/include/ui/ICamera.h @@ -20,13 +20,15 @@ #include <utils/RefBase.h> #include <utils/IInterface.h> #include <utils/Parcel.h> - #include <ui/ISurface.h> #include <utils/IMemory.h> #include <utils/String8.h> +#include <ui/Camera.h> namespace android { +class ICameraClient; + class ICamera: public IInterface { public: @@ -34,11 +36,15 @@ public: virtual void disconnect() = 0; + // connect new client with existing camera remote + virtual status_t connect(const sp<ICameraClient>& client) = 0; + // pass the buffered ISurface to the camera service virtual status_t setPreviewDisplay(const sp<ISurface>& surface) = 0; - - // tell the service whether to callback with each preview frame - virtual void setHasFrameCallback(bool installed) = 0; + + // set the frame callback flag to affect how the received frames from + // preview are handled. + virtual void setFrameCallbackFlag(int frame_callback_flag) = 0; // start preview mode, must call setPreviewDisplay first virtual status_t startPreview() = 0; |