samsung: Compilation fixes

* Add missing headers
* Cast values to correct types

Change-Id: Iaf621c562e884daeb22f6ec700d6989ba6ba1aef
tirimbino
rogersb11 9 years ago committed by Ethan Chen
parent 822b70bd53
commit dbf394e847
  1. 2
      exynos/multimedia/openmax/osal/SEC_OSAL_Android.cpp
  2. 1
      exynos/multimedia/utils/csc/exynos4/csc_fimc.cpp
  3. 1
      exynos3/s5pc110/libs3cjpeg/JpegEncoder.cpp
  4. 22
      exynos4/hal/libcamera/SecCameraHWInterface.cpp

@ -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);

@ -28,6 +28,7 @@
*/
#include <utils/Log.h>
#include <errno.h>
#include <dlfcn.h>
#include "SEC_OMX_Def.h"

@ -26,6 +26,7 @@
#include <utils/Log.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <string.h>
#include "JpegEncoder.h"

@ -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
};
}

Loading…
Cancel
Save