samsung: Compilation fixes

* Add missing headers
* Cast values to correct types

Change-Id: Iaf621c562e884daeb22f6ec700d6989ba6ba1aef
This commit is contained in:
rogersb11 2015-10-12 22:03:21 -04:00 committed by Ethan Chen
parent 822b70bd53
commit dbf394e847
4 changed files with 14 additions and 12 deletions

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

View File

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

View File

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

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