diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-10-14 20:17:44 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-10-25 15:02:44 +0800 |
commit | d55f7e56b9761227f0a310b34d9016fde91613d6 (patch) | |
tree | 8b20f666b14e4e01ec0b208fe8e75e5881db03e7 /services/camera/libcameraservice/CameraService.h | |
parent | 197eee425c813e35144b2e52f7282b17a57289a5 (diff) | |
download | frameworks_base-d55f7e56b9761227f0a310b34d9016fde91613d6.zip frameworks_base-d55f7e56b9761227f0a310b34d9016fde91613d6.tar.gz frameworks_base-d55f7e56b9761227f0a310b34d9016fde91613d6.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.h | 4 |
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 |