From bfa33aae4f54c0020a0568b16a3acb7b30b6ca3d Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Mon, 20 Dec 2010 11:51:31 -0800 Subject: Add camera service support for SurfaceTexture. This change enables the use of a SurfaceTexture in place of a Surface as the destination of camera preview frames. Change-Id: Ic70d404c8fe261e9d5da6f1de93d6babb5b191cb --- include/camera/Camera.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/camera/Camera.h') diff --git a/include/camera/Camera.h b/include/camera/Camera.h index c95f31e..e5f7e62 100644 --- a/include/camera/Camera.h +++ b/include/camera/Camera.h @@ -19,6 +19,7 @@ #include #include +#include namespace android { @@ -175,6 +176,9 @@ public: // pass the buffered Surface to the camera service status_t setPreviewDisplay(const sp& surface); + // pass the buffered ISurfaceTexture to the camera service + status_t setPreviewTexture(const sp& surfaceTexture); + // start preview mode, must call setPreviewDisplay first status_t startPreview(); -- cgit v1.1