summaryrefslogtreecommitdiff
path: root/camera/QCameraStream.h
diff options
context:
space:
mode:
authorShuzhen Wang <shuzhenw@codeaurora.org>2015-01-27 22:36:25 -0800
committerZhijun He <zhijunhe@google.com>2015-01-28 13:01:08 -0800
commitc707b1d73e29aa8df2a6d2f666eca57e816b0f6e (patch)
tree0fe60fa9f12e68df739b3b0c850005c678aa8a9f /camera/QCameraStream.h
parent5c6d74bb8fc04cdf47ebbc07c0b645d0c1c37646 (diff)
downloadmako-c707b1d73e29aa8df2a6d2f666eca57e816b0f6e.tar.gz
Camera HAL needs to call cancel_buffer on min_undequeued_buffers preview buffers up front. That means not all preview buffers should be queued into camera driver. This change adds the support. Bug: 18630337 Change-Id: I794b0dcafa03ebfaddf4c68b66b09c74bbb206d0
Diffstat (limited to 'camera/QCameraStream.h')
-rwxr-xr-xcamera/QCameraStream.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/camera/QCameraStream.h b/camera/QCameraStream.h
index 5724dbb..d9b0de3 100755
--- a/camera/QCameraStream.h
+++ b/camera/QCameraStream.h
@@ -1,6 +1,6 @@
/*
** Copyright 2008, Google Inc.
-** Copyright (c) 2009-2012, The Linux Foundation. All rights reserved.
+** Copyright (c) 2009-2012,2015, The Linux Foundation. All rights reserved.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
@@ -218,15 +218,11 @@ public:
void *getLastQueuedFrame(void);
/*init preview buffers with display case*/
status_t initDisplayBuffers();
- /*init preview buffers without display case*/
- status_t initPreviewOnlyBuffers();
status_t processPreviewFrame(mm_camera_ch_data_buf_t *frame);
/*init preview buffers with display case*/
status_t processPreviewFrameWithDisplay(mm_camera_ch_data_buf_t *frame);
- /*init preview buffers without display case*/
- status_t processPreviewFrameWithOutDisplay(mm_camera_ch_data_buf_t *frame);
int setPreviewWindow(preview_stream_ops_t* window);
void notifyROIEvent(fd_roi_t roi);
@@ -238,10 +234,6 @@ private:
status_t getBufferFromSurface();
status_t putBufferToSurface();
- /*allocate and free buffers without display case*/
- status_t getBufferNoDisplay();
- status_t freeBufferNoDisplay();
-
void dumpFrameToFile(struct msm_frame* newFrame);
bool mFirstFrameRcvd;
@@ -254,7 +246,6 @@ private:
Mutex mDisplayLock;
preview_stream_ops_t *mPreviewWindow;
static const int kPreviewBufferCount = PREVIEW_BUFFER_COUNT;
- mm_camera_ch_data_buf_t mNotifyBuffer[16];
int8_t mNumFDRcvd;
int mVFEOutputs;
int mHFRFrameCnt;