diff options
author | Daniel Levin <dendy@ti.com> | 2012-05-31 11:22:16 +0300 |
---|---|---|
committer | Daniel Levin <dendy@ti.com> | 2012-07-25 08:56:45 -0500 |
commit | f998f57b85b1a6eda8ea1c4b511199eb2d122a9f (patch) | |
tree | 9079a0baa12bb29b2b3d260ad00ac3810f869dd9 /camera/inc/CameraProperties.h | |
parent | bf05c17fc0d1daf5129781373e34e9d67bf02f2e (diff) | |
download | hardware_ti_omap4-f998f57b85b1a6eda8ea1c4b511199eb2d122a9f.zip hardware_ti_omap4-f998f57b85b1a6eda8ea1c4b511199eb2d122a9f.tar.gz hardware_ti_omap4-f998f57b85b1a6eda8ea1c4b511199eb2d122a9f.tar.bz2 |
CameraHAL: Portability changes
1. Moved common definitions to Global.h header:
- CAMHAL_LOG* macros (also added CAMHAL_LOGI and CAMHAL_LOGW)
- CAMHAL_ASSERT* macros
- CAMHAL_UNUSED macro
2. Renamed NV12_resize.c to NV12_resize.cpp
3. Added common math functions into UtilsGlobal.h header:
- min(a, b) - returns min of a and b
- max(a, b) - returns max of a and b
- bound(min, a, max) - return nearest value to a in scope [min..max]
- floor(a) - round a to lower integer
- round(a) - round a to nearest integer
4. Portability:
- Fixed LOG* macros to use appropriate CAMHAL_LOG* wrappers.
- Reworked the Android.mk to include proper directories depending
on current pastry.
Change-Id: I6fbd1ee02d8af2195b91cc357ddcf554fe77f495
Signed-off-by: Daniel Levin <dendy@ti.com>
Diffstat (limited to 'camera/inc/CameraProperties.h')
-rw-r--r-- | camera/inc/CameraProperties.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/camera/inc/CameraProperties.h b/camera/inc/CameraProperties.h index dcfc2c7..4763b10 100644 --- a/camera/inc/CameraProperties.h +++ b/camera/inc/CameraProperties.h @@ -30,6 +30,8 @@ #include <ctype.h> #include "cutils/properties.h" +#include "Common.h" + namespace android { #define MAX_CAMERAS_SUPPORTED 3 |