diff options
author | Hashcode <hashcode0f@gmail.com> | 2015-02-03 13:56:50 -0800 |
---|---|---|
committer | Hashcode <hashcode0f@gmail.com> | 2015-02-03 13:56:50 -0800 |
commit | 90007397e53d5b94763946ce2c90004d98aa7ed6 (patch) | |
tree | f3de7e4b95b3268931e42205bdce7d528adf7f55 | |
parent | e62d3a9f34e9527c5ecc014c78ee44d2833f3d47 (diff) | |
download | hardware_ti_omap4-90007397e53d5b94763946ce2c90004d98aa7ed6.zip hardware_ti_omap4-90007397e53d5b94763946ce2c90004d98aa7ed6.tar.gz hardware_ti_omap4-90007397e53d5b94763946ce2c90004d98aa7ed6.tar.bz2 |
camera: add TI_CAMERAHAL_USES_LEGACY_DOMX_DCC board flag to enable legacy DCC
-rwxr-xr-x | camera/Android.mk | 9 | ||||
-rwxr-xr-x | camera/OMXCameraAdapter/OMXCameraAdapter.cpp | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/camera/Android.mk b/camera/Android.mk index a11c728..95f19f8 100755 --- a/camera/Android.mk +++ b/camera/Android.mk @@ -109,8 +109,7 @@ TI_CAMERAHAL_OMX_SRC := \ OMXCameraAdapter/OMXFocus.cpp \ OMXCameraAdapter/OMXMetadata.cpp \ OMXCameraAdapter/OMXZoom.cpp \ - OMXCameraAdapter/OMXDccDataSave.cpp \ - OMXCameraAdapter/OMXDCC.cpp + OMXCameraAdapter/OMXDccDataSave.cpp TI_CAMERAHAL_USB_SRC := \ V4LCameraAdapter/V4LCameraAdapter.cpp \ @@ -265,6 +264,12 @@ LOCAL_STATIC_LIBRARIES := $(TI_CAMERAHAL_COMMON_STATIC_LIBRARIES) LOCAL_CFLAGS := -fno-short-enums -DCOPY_IMAGE_BUFFER $(CAMERAHAL_CFLAGS) +ifdef TI_CAMERAHAL_USES_LEGACY_DOMX_DCC +LOCAL_CFLAGS += -DUSES_LEGACY_DOMX_DCC +else +LOCAL_SRC_FILES += OMXCameraAdapter/OMXDCC.cpp +endif + LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw LOCAL_MODULE:= camera.$(TARGET_BOARD_PLATFORM) LOCAL_MODULE_TAGS:= optional diff --git a/camera/OMXCameraAdapter/OMXCameraAdapter.cpp b/camera/OMXCameraAdapter/OMXCameraAdapter.cpp index afe5e80..ce0c117 100755 --- a/camera/OMXCameraAdapter/OMXCameraAdapter.cpp +++ b/camera/OMXCameraAdapter/OMXCameraAdapter.cpp @@ -23,7 +23,9 @@ #include "CameraHal.h" #include "OMXCameraAdapter.h" +#ifndef USES_LEGACY_DOMX_DCC #include "OMXDCC.h" +#endif #include "ErrorUtils.h" #include "TICameraParameters.h" #include <signal.h> @@ -4458,8 +4460,10 @@ extern "C" status_t OMXCameraAdapter_Capabilities( goto EXIT; } +#ifndef USES_LEGACY_DOMX_DCC DCCHandler dcc_handler; dcc_handler.loadDCC(handler.componentRef()); +#endif // Continue selecting sensor and then querying OMX Camera for it's capabilities // When sensor select returns an error, we know to break and stop |