mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
samsung: Compilation fixes
* Add missing headers * Cast values to correct types Change-Id: Iaf621c562e884daeb22f6ec700d6989ba6ba1aef
This commit is contained in:
parent
822b70bd53
commit
dbf394e847
4 changed files with 14 additions and 12 deletions
|
@ -134,7 +134,7 @@ OMX_ERRORTYPE SEC_OSAL_LockANBHandle(
|
||||||
OMX_ERRORTYPE ret = OMX_ErrorNone;
|
OMX_ERRORTYPE ret = OMX_ErrorNone;
|
||||||
GraphicBufferMapper &mapper = GraphicBufferMapper::get();
|
GraphicBufferMapper &mapper = GraphicBufferMapper::get();
|
||||||
buffer_handle_t bufferHandle = (buffer_handle_t) handle;
|
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);
|
SEC_OSAL_Log(SEC_LOG_TRACE, "%s: handle: 0x%x", __func__, handle);
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <utils/Log.h>
|
#include <utils/Log.h>
|
||||||
|
#include <errno.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|
||||||
#include "SEC_OMX_Def.h"
|
#include "SEC_OMX_Def.h"
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include <utils/Log.h>
|
#include <utils/Log.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "JpegEncoder.h"
|
#include "JpegEncoder.h"
|
||||||
|
|
||||||
|
|
|
@ -3388,22 +3388,22 @@ done:
|
||||||
}
|
}
|
||||||
|
|
||||||
static hw_module_methods_t camera_module_methods = {
|
static hw_module_methods_t camera_module_methods = {
|
||||||
open : HAL_camera_device_open
|
.open = HAL_camera_device_open
|
||||||
};
|
};
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
struct camera_module HAL_MODULE_INFO_SYM = {
|
struct camera_module HAL_MODULE_INFO_SYM = {
|
||||||
common : {
|
.common = {
|
||||||
tag : HARDWARE_MODULE_TAG,
|
.tag = HARDWARE_MODULE_TAG,
|
||||||
version_major : 1,
|
.version_major = 1,
|
||||||
version_minor : 0,
|
.version_minor = 0,
|
||||||
id : CAMERA_HARDWARE_MODULE_ID,
|
.id = CAMERA_HARDWARE_MODULE_ID,
|
||||||
name : "orion camera HAL",
|
.name = "orion camera HAL",
|
||||||
author : "Samsung Corporation",
|
.author = "Samsung Corporation",
|
||||||
methods : &camera_module_methods,
|
.methods = &camera_module_methods,
|
||||||
},
|
},
|
||||||
get_number_of_cameras : HAL_getNumberOfCameras,
|
.get_number_of_cameras = HAL_getNumberOfCameras,
|
||||||
get_camera_info : HAL_getCameraInfo
|
.get_camera_info = HAL_getCameraInfo
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue