summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/CameraService.h
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-10-14 20:17:44 +0800
committerWu-cheng Li <wuchengli@google.com>2010-10-25 15:02:44 +0800
commite09591eff55fdff1868b32c3e046c62f800330fc (patch)
treea426ffeb610452b7020a7805f7a8a729b36f5b17 /services/camera/libcameraservice/CameraService.h
parent9065ce6207730f55566eb3b78f9b487b1a4502b6 (diff)
downloadframeworks_av-e09591eff55fdff1868b32c3e046c62f800330fc.zip
frameworks_av-e09591eff55fdff1868b32c3e046c62f800330fc.tar.gz
frameworks_av-e09591eff55fdff1868b32c3e046c62f800330fc.tar.bz2
Mirror the camera preview if the camera is front-facing.
bug:3095272 Change-Id: Ib1c1d1edc06a33e9d4d2dcb42bc1dd2c25b1310c
Diffstat (limited to 'services/camera/libcameraservice/CameraService.h')
-rw-r--r--services/camera/libcameraservice/CameraService.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/camera/libcameraservice/CameraService.h b/services/camera/libcameraservice/CameraService.h
index b5b85bc..60e0d04 100644
--- a/services/camera/libcameraservice/CameraService.h
+++ b/services/camera/libcameraservice/CameraService.h
@@ -117,6 +117,7 @@ private:
const sp<ICameraClient>& cameraClient,
const sp<CameraHardwareInterface>& hardware,
int cameraId,
+ int cameraFacing,
int clientPid);
~Client();
@@ -165,6 +166,8 @@ private:
const sp<IMemoryHeap>& heap,
size_t offset, size_t size);
+ int getOrientation(int orientation, bool mirror);
+
// these are initialized in the constructor.
sp<CameraService> mCameraService; // immutable after constructor
sp<ICameraClient> mCameraClient;
@@ -180,7 +183,6 @@ private:
int mOrientation; // Current display orientation
// True if display orientation has been changed. This is only used in overlay.
int mOrientationChanged;
- int mPreviewWindowFlag;
bool mPlayShutterSound;
// Ensures atomicity among the public methods