diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/camera/CameraParameters.h | 19 | ||||
-rw-r--r-- | include/surfaceflinger/ISurfaceComposer.h | 12 | ||||
-rw-r--r-- | include/surfaceflinger/SurfaceComposerClient.h | 1 |
3 files changed, 22 insertions, 10 deletions
diff --git a/include/camera/CameraParameters.h b/include/camera/CameraParameters.h index a520a6a..cd2c0a3 100644 --- a/include/camera/CameraParameters.h +++ b/include/camera/CameraParameters.h @@ -504,6 +504,25 @@ public: // Example value: "true" or "false". Read only. static const char KEY_VIDEO_SNAPSHOT_SUPPORTED[]; + // The state of the video stabilization. If set to true, both the + // preview stream and the recorded video stream are stabilized by + // the camera. Only valid to set if KEY_VIDEO_STABILIZATION_SUPPORTED is + // set to true. + // + // The value of this key can be changed any time the camera is + // open. If preview or recording is active, it is acceptable for + // there to be a slight video glitch when video stabilization is + // toggled on and off. + // + // This only stabilizes video streams (between-frames stabilization), and + // has no effect on still image capture. + static const char KEY_VIDEO_STABILIZATION[]; + + // Returns true if video stabilization is supported. That is, applications + // can set KEY_VIDEO_STABILIZATION to true and have a stabilized preview + // stream and record stabilized videos. + static const char KEY_VIDEO_STABILIZATION_SUPPORTED[]; + // Value for KEY_ZOOM_SUPPORTED or KEY_SMOOTH_ZOOM_SUPPORTED. static const char TRUE[]; static const char FALSE[]; diff --git a/include/surfaceflinger/ISurfaceComposer.h b/include/surfaceflinger/ISurfaceComposer.h index e0f4cf9..ea022a6 100644 --- a/include/surfaceflinger/ISurfaceComposer.h +++ b/include/surfaceflinger/ISurfaceComposer.h @@ -80,6 +80,7 @@ public: eOrientation90 = 1, eOrientation180 = 2, eOrientation270 = 3, + eOrientationUnchanged = 4, eOrientationSwapMask = 0x01 }; @@ -101,15 +102,8 @@ public: virtual sp<IMemoryHeap> getCblk() const = 0; /* open/close transactions. requires ACCESS_SURFACE_FLINGER permission */ - virtual void setTransactionState(const Vector<ComposerState>& state) = 0; - - /* [un]freeze display. requires ACCESS_SURFACE_FLINGER permission */ - virtual status_t freezeDisplay(DisplayID dpy, uint32_t flags) = 0; - virtual status_t unfreezeDisplay(DisplayID dpy, uint32_t flags) = 0; - - /* Set display orientation. requires ACCESS_SURFACE_FLINGER permission - * No flags are currently defined. Set flags to 0. */ - virtual int setOrientation(DisplayID dpy, int orientation, uint32_t flags) = 0; + virtual void setTransactionState(const Vector<ComposerState>& state, + int orientation) = 0; /* signal that we're done booting. * Requires ACCESS_SURFACE_FLINGER permission diff --git a/include/surfaceflinger/SurfaceComposerClient.h b/include/surfaceflinger/SurfaceComposerClient.h index ace0735..14e5b23 100644 --- a/include/surfaceflinger/SurfaceComposerClient.h +++ b/include/surfaceflinger/SurfaceComposerClient.h @@ -195,4 +195,3 @@ public: }; // namespace android #endif // ANDROID_SF_SURFACE_COMPOSER_CLIENT_H - |