From 36f68b8f24df906c969581b0b8e1a47f95dc03cb Mon Sep 17 00:00:00 2001 From: Wu-cheng Li Date: Mon, 28 Sep 2009 16:14:58 -0700 Subject: Add zoom functions and sendCommand. b2060030 --- libs/ui/Camera.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libs/ui/Camera.cpp') diff --git a/libs/ui/Camera.cpp b/libs/ui/Camera.cpp index 0c6d3408ab08..09a36f18a1b7 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 c = mCamera; + if (c == 0) return NO_INIT; + return c->sendCommand(cmd, arg1, arg2); +} + void Camera::setListener(const sp& listener) { Mutex::Autolock _l(mLock); -- cgit v1.2.3-59-g8ed1b