image.size = frame->length;
image.width = frame->width;
image.height = frame->height;
- image.format = frame->format;
+ image.format = (camera_pixel_format_e)frame->format;
ret = mm_camcorder_get_attributes(handle->mm_handle, NULL,
"captured-exif-raw-data", &exif, &exif_size,
thumb.size = thumbnail->length;
thumb.width = thumbnail->width;
thumb.height = thumbnail->height;
- thumb.format = thumbnail->format;
+ thumb.format = (camera_pixel_format_e)thumbnail->format;
}
ret = mm_camcorder_get_attributes(handle->mm_handle, NULL,
postview.size = scrnl->length;
postview.width = scrnl->width;
postview.height = scrnl->height;
- postview.format = scrnl->format;
+ postview.format = (camera_pixel_format_e)scrnl->format;
}
if (handle->is_capture_completed) {
CAM_LOG_INFO("device[%d], is_network[%d]", device, is_network);
- info.videodev_type = device;
+ info.videodev_type = (enum MMVideoDeviceType)device;
info.reserved[0] = (int)is_network;
handle = (camera_s *)g_malloc0(sizeof(camera_s));
muse_camera_handle_s *muse_camera = NULL;
muse_camera_api_e api = MUSE_CAMERA_API_ATTR_GET_GEOTAG;
muse_camera_api_class_e class = MUSE_CAMERA_API_CLASS_IMMEDIATE;
- double get_value[3] = {0.0, 0.0, 0.0};
+ double get_value[] = {0.0, 0.0, 0.0};
char *send_msg = NULL;
- int msg_array_size = 0;
+ int array_length = (G_N_ELEMENTS(get_value) * sizeof(get_value[0])) / sizeof(int);
MUSE_CAMERA_GET_AND_CHECK_HANDLE(module, MUSE_CAMERA_ERROR_NONE);
ret = legacy_camera_attr_get_geotag(muse_camera->camera_handle, &get_value[0], &get_value[1], &get_value[2]);
if (ret == CAMERA_ERROR_NONE) {
- msg_array_size = sizeof(get_value) / sizeof(int) + (sizeof(get_value) % sizeof(int) ? 1 : 0);
-
send_msg = muse_core_msg_new(api,
MUSE_TYPE_INT, PARAM_API_CLASS, class,
MUSE_TYPE_INT, PARAM_RET, ret,
MUSE_TYPE_INT, PARAM_GET_TYPE, MUSE_CAMERA_GET_TYPE_ARRAY,
- MUSE_TYPE_ARRAY, "get_value", msg_array_size, get_value,
+ MUSE_TYPE_ARRAY, "get_value", array_length, get_value,
0);
__camera_dispatcher_send_msg(module, send_msg, NULL);