diff options
| author | 2009-09-28 16:14:58 -0700 | |
|---|---|---|
| committer | 2009-10-06 13:25:10 -0700 | |
| commit | e6a550d02ff02f465d7dbb6e862671462866f024 (patch) | |
| tree | 005e2a57c55f5c24400f604150727b9b91b61fe9 /libs/ui/Camera.cpp | |
| parent | 7854a353261dd276a7726d48677c18ef827b26eb (diff) | |
Add zoom functions and sendCommand.
b2060030
Diffstat (limited to 'libs/ui/Camera.cpp')
| -rw-r--r-- | libs/ui/Camera.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/ui/Camera.cpp b/libs/ui/Camera.cpp index 0c6d3408ab..09a36f18a1 100644 --- a/libs/ui/Camera.cpp +++ b/libs/ui/Camera.cpp @@ -278,6 +278,15 @@ String8 Camera::getParameters() const return params; } +// send command to camera driver +status_t Camera::sendCommand(int32_t cmd, int32_t arg1, int32_t arg2) +{ + LOGD("sendCommand"); + sp <ICamera> c = mCamera; + if (c == 0) return NO_INIT; + return c->sendCommand(cmd, arg1, arg2); +} + void Camera::setListener(const sp<CameraListener>& listener) { Mutex::Autolock _l(mLock); |