samsung: Compilation fixes
authorrogersb11 <brettrogers11@gmail.com>
Tue, 13 Oct 2015 02:03:21 +0000 (22:03 -0400)
committerEthan Chen <intervigil@gmail.com>
Mon, 9 Nov 2015 22:07:55 +0000 (14:07 -0800)
* Add missing headers
* Cast values to correct types

Change-Id: Iaf621c562e884daeb22f6ec700d6989ba6ba1aef

exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp
exynos/multimedia/utils/csc/exynos4/csc_fimc.cpp
exynos3/s5pc110/libs3cjpeg/JpegEncoder.cpp
exynos4/hal/libcamera/SecCameraHWInterface.cpp

index 1f0231a14f8f3a0d308a6da636a88982cf51e072..40cfd2b590cb6b2ecad41da9b53c28afa99d1066 100644 (file)
@@ -134,7 +134,7 @@ OMX_ERRORTYPE SEC_OSAL_LockANBHandle(
     OMX_ERRORTYPE ret = OMX_ErrorNone;
     GraphicBufferMapper &mapper = GraphicBufferMapper::get();
     buffer_handle_t bufferHandle = (buffer_handle_t) handle;
-    Rect bounds(width, height);
+    Rect bounds((uint32_t)width, (uint32_t)height);
 
     SEC_OSAL_Log(SEC_LOG_TRACE, "%s: handle: 0x%x", __func__, handle);
 
index a8e6b67ac86a033e2129d45072a20592c4e55d19..18ecebf5bfbefbb3d6df9edb17dccf5f343da747 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 #include <utils/Log.h>
+#include <errno.h>
 #include <dlfcn.h>
 
 #include "SEC_OMX_Def.h"
index 96cee3d9ad8ddfa98c474f996c8a57f5505cdd54..d6d779ab443abfeb76ee08be72a2c32a4bf02466 100644 (file)
@@ -26,6 +26,7 @@
 #include <utils/Log.h>
 #include <sys/mman.h>
 #include <fcntl.h>
+#include <string.h>
 
 #include "JpegEncoder.h"
 
index b7077eba3bfe6a104357acb35624947c68599492..a30c989a324af200394fe5565ab927088a3481f0 100644 (file)
@@ -3388,22 +3388,22 @@ done:
 }
 
 static hw_module_methods_t camera_module_methods = {
-            open : HAL_camera_device_open
+            .open = HAL_camera_device_open
 };
 
 extern "C" {
     struct camera_module HAL_MODULE_INFO_SYM = {
-      common : {
-          tag           : HARDWARE_MODULE_TAG,
-          version_major : 1,
-          version_minor : 0,
-          id            : CAMERA_HARDWARE_MODULE_ID,
-          name          : "orion camera HAL",
-          author        : "Samsung Corporation",
-          methods       : &camera_module_methods,
+      .common = {
+          .tag           = HARDWARE_MODULE_TAG,
+          .version_major = 1,
+          .version_minor = 0,
+          .id            = CAMERA_HARDWARE_MODULE_ID,
+          .name          = "orion camera HAL",
+          .author        = "Samsung Corporation",
+          .methods       = &camera_module_methods,
       },
-      get_number_of_cameras : HAL_getNumberOfCameras,
-      get_camera_info       : HAL_getCameraInfo
+      .get_number_of_cameras = HAL_getNumberOfCameras,
+      .get_camera_info       = HAL_getCameraInfo
     };
 }