summaryrefslogtreecommitdiffstats
path: root/camera/BufferSourceAdapter.cpp
diff options
context:
space:
mode:
authorTyler Luu <tluu@ti.com>2012-06-21 11:01:09 -0500
committerDaniel Levin <dendy@ti.com>2012-11-26 20:03:35 +0200
commitc143e22be6a85a75d247fea47c4aba577fb0002d (patch)
tree653dc6799473871ef682afe1686540a6b0166530 /camera/BufferSourceAdapter.cpp
parent1ab75b00b552802f470fc9a7174af05212b90f4c (diff)
downloadhardware_ti_omap4-c143e22be6a85a75d247fea47c4aba577fb0002d.tar.gz
hardware_ti_omap4-c143e22be6a85a75d247fea47c4aba577fb0002d.tar.bz2
hardware_ti_omap4-c143e22be6a85a75d247fea47c4aba577fb0002d.zip
CameraHal: Add support for matching tap in/out surface by name
- API has changed so applications need to specify the name of the tap in/out surfaces they want to use for a particular shot/reprocess call. Depends on frameworks/av change I7c8c17cf: http://review.omapzoom.org/#/c/28898/ Depends on hardware/libhardware change I859c6e87: http://review.omapzoom.org/#/c/28141/ Change-Id: I785286be77970679f8d9cc8bfd9befe4a63191ac Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
Diffstat (limited to 'camera/BufferSourceAdapter.cpp')
-rw-r--r--camera/BufferSourceAdapter.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/camera/BufferSourceAdapter.cpp b/camera/BufferSourceAdapter.cpp
index 3b0d480..214d4ed 100644
--- a/camera/BufferSourceAdapter.cpp
+++ b/camera/BufferSourceAdapter.cpp
@@ -210,6 +210,19 @@ int BufferSourceAdapter::setPreviewWindow(preview_stream_ops_t *source)
return NO_ERROR;
}
+bool BufferSourceAdapter::match(const char * str) {
+ char id1[OP_STR_SIZE];
+ status_t ret;
+
+ ret = extendedOps()->get_id(mBufferSource, id1, sizeof(id1));
+
+ if (ret != 0) {
+ CAMHAL_LOGE("Surface::getId returned error %d", ret);
+ }
+
+ return strcmp(id1, str) == 0;
+}
+
int BufferSourceAdapter::setFrameProvider(FrameNotifier *frameProvider)
{
LOG_FUNCTION_NAME;