summaryrefslogtreecommitdiffstats
path: root/camera/inc
diff options
context:
space:
mode:
authorSundar Raman <a0393242@ti.com>2012-09-25 13:21:40 -0500
committerDaniel Levin <dendy@ti.com>2012-11-26 18:54:50 +0200
commitcbcdbd60cc74bc248120a5a1563d08fd5f395994 (patch)
tree36e60ff1829a88e53fda2c9a3eeaff8b71cacecb /camera/inc
parent2d0df2e4e2334ba80a026a6fed3d26d0e4b720e1 (diff)
parente65834d4109ef3a831c38bfa98003b8e6e2de98c (diff)
downloadhardware_ti_omap4-cbcdbd60cc74bc248120a5a1563d08fd5f395994.zip
hardware_ti_omap4-cbcdbd60cc74bc248120a5a1563d08fd5f395994.tar.gz
hardware_ti_omap4-cbcdbd60cc74bc248120a5a1563d08fd5f395994.tar.bz2
Merge "CameraHal: Camera Capabilities query update" into d-jb-release
Change-Id: I0760b135e56d22fc02e49d1344af734e0dcf81be
Diffstat (limited to 'camera/inc')
-rw-r--r--camera/inc/OMXCameraAdapter/OMXDCC.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/camera/inc/OMXCameraAdapter/OMXDCC.h b/camera/inc/OMXCameraAdapter/OMXDCC.h
new file mode 100644
index 0000000..c75a24d
--- /dev/null
+++ b/camera/inc/OMXCameraAdapter/OMXDCC.h
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) Texas Instruments - http://www.ti.com/
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef OMX_DCC_H
+#define OMX_DCC_H
+
+namespace Ti {
+namespace Camera {
+
+class DCCHandler
+{
+public:
+
+ status_t loadDCC(OMX_HANDLETYPE hComponent);
+
+private:
+
+ OMX_ERRORTYPE initDCC(OMX_HANDLETYPE hComponent);
+ OMX_ERRORTYPE sendDCCBufPtr(OMX_HANDLETYPE hComponent, CameraBuffer *dccBuffer);
+ size_t readDCCdir(OMX_PTR buffer, const android::Vector<android::String8 *> &dirPaths);
+
+private:
+
+ static android::String8 DCCPath;
+ static bool mDCCLoaded;
+};
+
+} // namespace Camera
+} // namespace Ti
+
+#endif // OMX_DCC_H