summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Repinski <repinski23@gmail.com>2015-01-07 12:03:47 -0600
committerZiyan <jaraidaniel@gmail.com>2015-04-11 20:24:52 +0200
commitc9ee5c0371fb6ca892f80f1725100ad03c8a2a2c (patch)
tree8a01966ffd461e6e630ad733c284e1d32776c577
parentc5f4358c48d6e50b2affb3ad6c2c0f59546f5b04 (diff)
downloaddevice_samsung_tuna-c9ee5c0371fb6ca892f80f1725100ad03c8a2a2c.zip
device_samsung_tuna-c9ee5c0371fb6ca892f80f1725100ad03c8a2a2c.tar.gz
device_samsung_tuna-c9ee5c0371fb6ca892f80f1725100ad03c8a2a2c.tar.bz2
Fix camera build, rename libtiutils.
My local make of camera.tuna didn't pick up on a few changes I made to the makefile. Renaming libtiutils as other devices use a libtiutils_custom as well, but ours isn't a 1:1 match with theirs.
-rw-r--r--camera/Android.mk7
-rw-r--r--camera/OMXCameraAdapter/OMXCameraAdapter.cpp4
-rw-r--r--camera/OMXCameraAdapter/OMXCapabilities.cpp24
-rwxr-xr-xdevice.mk2
-rw-r--r--libtiutils/Android.mk2
5 files changed, 26 insertions, 13 deletions
diff --git a/camera/Android.mk b/camera/Android.mk
index 08e0e1b..4bc4d35 100644
--- a/camera/Android.mk
+++ b/camera/Android.mk
@@ -1,5 +1,10 @@
LOCAL_PATH:= $(call my-dir)
+TI_CAMERAHAL_DEBUG_ENABLED := true
+TI_CAMERAHAL_VERBOSE_DEBUG_ENABLED := true
+TI_CAMERAHAL_DEBUG_FUNCTION_NAMES := true
+TI_CAMERAHAL_DONT_USE_RAW_IMAGE_SAVING := true
+
OMAP4_CAMERA_HAL_USES:= OMX
#OMAP4_CAMERA_HAL_USES:= USB
#OMAP4_CAMERA_HAL_USES:= ALL
@@ -96,7 +101,7 @@ TI_CAMERAHAL_COMMON_SHARED_LIBRARIES := \
libbinder \
libutils \
libcutils \
- libtiutils_custom \
+ libtiutils_$(TARGET_BOOTLOADER_BOARD_NAME) \
libcamera_client \
libgui \
libion_ti \
diff --git a/camera/OMXCameraAdapter/OMXCameraAdapter.cpp b/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
index ea7c890..ac5ec47 100644
--- a/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
+++ b/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
@@ -411,11 +411,15 @@ OMXCameraAdapter::OMXCameraPortParameters *OMXCameraAdapter::getPortParams(Camer
ret = &mCameraAdapterParameters.mCameraPortParams[mCameraAdapterParameters.mImagePortIndex];
break;
case CameraFrame::RAW_FRAME:
+#ifdef CAMERAHAL_USE_RAW_IMAGE_SAVING
if (mRawCapture) {
ret = &mCameraAdapterParameters.mCameraPortParams[mCameraAdapterParameters.mVideoPortIndex];
} else {
+#endif
ret = &mCameraAdapterParameters.mCameraPortParams[mCameraAdapterParameters.mImagePortIndex];
+#ifdef CAMERAHAL_USE_RAW_IMAGE_SAVING
}
+#endif
break;
case CameraFrame::PREVIEW_FRAME_SYNC:
case CameraFrame::SNAPSHOT_FRAME:
diff --git a/camera/OMXCameraAdapter/OMXCapabilities.cpp b/camera/OMXCameraAdapter/OMXCapabilities.cpp
index 646e964..79b90b3 100644
--- a/camera/OMXCameraAdapter/OMXCapabilities.cpp
+++ b/camera/OMXCameraAdapter/OMXCapabilities.cpp
@@ -2292,7 +2292,9 @@ bool OMXCameraAdapter::_dumpOmxTiCap(const int sensorId, const OMX_TI_CAPTYPE &
CAMHAL_LOGD("tPreviewResRange.nHeightMin = %d", int(caps.tPreviewResRange.nHeightMin));
CAMHAL_LOGD("tPreviewResRange.nWidthMax = %d", int(caps.tPreviewResRange.nWidthMax));
CAMHAL_LOGD("tPreviewResRange.nHeightMax = %d", int(caps.tPreviewResRange.nHeightMax));
+#ifndef OMAP_TUNA
CAMHAL_LOGD("tPreviewResRange.nMaxResInPixels = %d", int(caps.tPreviewResRange.nMaxResInPixels));
+#endif
#ifndef OMAP_TUNA
CAMHAL_LOGD("");
@@ -2308,14 +2310,18 @@ bool OMXCameraAdapter::_dumpOmxTiCap(const int sensorId, const OMX_TI_CAPTYPE &
CAMHAL_LOGD("tImageResRange.nHeightMin = %d", int(caps.tImageResRange.nHeightMin));
CAMHAL_LOGD("tImageResRange.nWidthMax = %d", int(caps.tImageResRange.nWidthMax));
CAMHAL_LOGD("tImageResRange.nHeightMax = %d", int(caps.tImageResRange.nHeightMax));
+#ifndef OMAP_TUNA
CAMHAL_LOGD("tImageResRange.nMaxResInPixels = %d", int(caps.tImageResRange.nMaxResInPixels));
+#endif
CAMHAL_LOGD("");
CAMHAL_LOGD("tThumbResRange.nWidthMin = %d", int(caps.tThumbResRange.nWidthMin));
CAMHAL_LOGD("tThumbResRange.nHeightMin = %d", int(caps.tThumbResRange.nHeightMin));
CAMHAL_LOGD("tThumbResRange.nWidthMax = %d", int(caps.tThumbResRange.nWidthMax));
CAMHAL_LOGD("tThumbResRange.nHeightMax = %d", int(caps.tThumbResRange.nHeightMax));
+#ifndef OMAP_TUNA
CAMHAL_LOGD("tThumbResRange.nMaxResInPixels = %d", int(caps.tThumbResRange.nMaxResInPixels));
+#endif
CAMHAL_LOGD("");
CAMHAL_LOGD("ulWhiteBalanceCount = %d", int(caps.ulWhiteBalanceCount));
@@ -2390,9 +2396,11 @@ bool OMXCameraAdapter::_dumpOmxTiCap(const int sensorId, const OMX_TI_CAPTYPE &
CAMHAL_LOGD("");
CAMHAL_LOGD("tSenMounting.nSenId = %d", int(caps.tSenMounting.nSenId));
CAMHAL_LOGD("tSenMounting.nRotation = %d", int(caps.tSenMounting.nRotation));
+#ifndef OMAP_TUNA
CAMHAL_LOGD("tSenMounting.bMirror = %d", int(caps.tSenMounting.bMirror));
CAMHAL_LOGD("tSenMounting.bFlip = %d", int(caps.tSenMounting.bFlip));
CAMHAL_LOGD("tSenMounting.eFacing = %d", int(caps.tSenMounting.eFacing));
+#endif
#ifndef OMAP_TUNA
CAMHAL_LOGD("");
@@ -2409,8 +2417,8 @@ bool OMXCameraAdapter::_dumpOmxTiCap(const int sensorId, const OMX_TI_CAPTYPE &
CAMHAL_LOGD("");
#ifndef OMAP_TUNA
CAMHAL_LOGD("bGbceSupported = %d", int(caps.bGbceSupported));
-#endif
CAMHAL_LOGD("bRawJpegSupported = %d", int(caps.bRawJpegSupported));
+#endif
#ifndef OMAP_TUNA
CAMHAL_LOGD("");
@@ -2429,9 +2437,7 @@ bool OMXCameraAdapter::_dumpOmxTiCap(const int sensorId, const OMX_TI_CAPTYPE &
#ifndef OMAP_TUNA
CAMHAL_LOGD("bAELockSupported = %d", int(caps.bAELockSupported));
CAMHAL_LOGD("bAWBLockSupported = %d", int(caps.bAWBLockSupported));
-#endif
CAMHAL_LOGD("bAFLockSupported = %d", int(caps.bAFLockSupported));
-#ifndef OMAP_TUNA
CAMHAL_LOGD("nFocalLength = %d", int(caps.nFocalLength));
#endif
@@ -2447,28 +2453,23 @@ bool OMXCameraAdapter::_dumpOmxTiCap(const int sensorId, const OMX_TI_CAPTYPE &
CAMHAL_LOGD(" eCapFrameLayout[%2d] = %d", i, int(caps.eCapFrameLayout[i]));
#endif
- CAMHAL_LOGD("");
#ifndef OMAP_TUNA
+ CAMHAL_LOGD("");
CAMHAL_LOGD("bVideoNoiseFilterSupported = %d", int(caps.bVideoNoiseFilterSupported ));
CAMHAL_LOGD("bVideoStabilizationSupported = %d", int(caps.bVideoStabilizationSupported ));
-#endif
CAMHAL_LOGD("bStillCapDuringVideoSupported = %d", int(caps.bStillCapDuringVideoSupported ));
-#ifndef OMAP_TUNA
CAMHAL_LOGD("bMechanicalMisalignmentSupported = %d", int(caps.bMechanicalMisalignmentSupported));
-#endif
CAMHAL_LOGD("bFacePrioritySupported = %d", int(caps.bFacePrioritySupported ));
CAMHAL_LOGD("bRegionPrioritySupported = %d", int(caps.bRegionPrioritySupported ));
-#ifndef OMAP_TUNA
CAMHAL_LOGD("bGlbceSupported = %d", int(caps.bGlbceSupported));
#endif
- CAMHAL_LOGD("");
#ifndef OMAP_TUNA
+ CAMHAL_LOGD("");
CAMHAL_LOGD("nManualConvMin = %d", int(caps.nManualConvMin ));
CAMHAL_LOGD("nManualConvMax = %d", int(caps.nManualConvMax ));
CAMHAL_LOGD("nManualExpMin = %d", int(caps.nManualExpMin ));
CAMHAL_LOGD("nManualExpMax = %d", int(caps.nManualExpMax ));
-#endif
CAMHAL_LOGD("nBrightnessMin = %d", int(caps.nBrightnessMin ));
CAMHAL_LOGD("nBrightnessMax = %d", int(caps.nBrightnessMax ));
CAMHAL_LOGD("nContrastMin = %d", int(caps.nContrastMin ));
@@ -2477,6 +2478,7 @@ bool OMXCameraAdapter::_dumpOmxTiCap(const int sensorId, const OMX_TI_CAPTYPE &
CAMHAL_LOGD("nSharpnessMax = %d", int(caps.nSharpnessMax ));
CAMHAL_LOGD("nSaturationMin = %d", int(caps.nSaturationMin ));
CAMHAL_LOGD("nSaturationMax = %d", int(caps.nSaturationMax ));
+#endif
CAMHAL_LOGD("");
CAMHAL_LOGD("------------------- end of dump -------------------");
@@ -2547,7 +2549,9 @@ status_t OMXCameraAdapter::getCaps(const int sensorId, CameraProperties::Propert
}
CAMHAL_LOGDB("sen mount id=%u", (unsigned int)caps->tSenMounting.nSenId);
+#ifndef OMAP_TUNA
CAMHAL_LOGDB("facing id=%u", (unsigned int)caps->tSenMounting.eFacing);
+#endif
EXIT:
if (bufferlist) {
diff --git a/device.mk b/device.mk
index 036089c..a6bd39f 100755
--- a/device.mk
+++ b/device.mk
@@ -236,7 +236,7 @@ PRODUCT_PACKAGES += \
libOMX.TI.DUCATI1.MISC.SAMPLE \
libstagefrighthw \
libI420colorconvert \
- libtiutils_custom
+ libtiutils_$(TARGET_BOOTLOADER_BOARD_NAME)
# Needed for gralloc
PRODUCT_PACKAGES += \
diff --git a/libtiutils/Android.mk b/libtiutils/Android.mk
index 533b481..68bfdb8 100644
--- a/libtiutils/Android.mk
+++ b/libtiutils/Android.mk
@@ -39,7 +39,7 @@ ifdef TI_UTILS_MESSAGE_QUEUE_DEBUG_FUNCTION_NAMES
LOCAL_CFLAGS += -DTI_UTILS_FUNCTION_LOGGER_ENABLE
endif
-LOCAL_MODULE:= libtiutils_custom
+LOCAL_MODULE:= libtiutils_$(TARGET_BOOTLOADER_BOARD_NAME)
LOCAL_MODULE_TAGS:= optional
include $(BUILD_SHARED_LIBRARY)