static guint g_cam_dev_state_changed_cb_subscribe_id;
+//LCOV_EXCL_START
static void __global(void *data, struct wl_registry *registry,
uint32_t name, const char *interface, uint32_t version)
{
return ret;
}
+//LCOV_EXCL_STOP
static void __camera_update_api_waiting(camera_cb_info_s *cb_info, int api, int value)
case MM_PIXEL_FORMAT_NV12T:
*out_format = TBM_FORMAT_NV12;
break;
+//LCOV_EXCL_START
case MM_PIXEL_FORMAT_NV16:
*out_format = TBM_FORMAT_NV16;
break;
default:
LOGE("invalid in_format %d", in_format);
return CAMERA_ERROR_INVALID_PARAMETER;
+//LCOV_EXCL_STOP
}
return CAMERA_ERROR_NONE;
case MM_PIXEL_FORMAT_NV12T:
*mimetype = MEDIA_FORMAT_NV12;
break;
+//LCOV_EXCL_START
case MM_PIXEL_FORMAT_NV16:
*mimetype = MEDIA_FORMAT_NV16;
break;
default:
LOGE("invalid in_format %d", in_format);
return CAMERA_ERROR_INVALID_PARAMETER;
+//LCOV_EXCL_STOP
}
return CAMERA_ERROR_NONE;
frame->num_of_planes = stream->num_planes;
if (num_buffer_key == 0) {
+//LCOV_EXCL_START
/* non-zero copy */
if (!data_bo_handle || !data_bo_handle->ptr) {
LOGE("NULL pointer");
break;
}
}
+//LCOV_EXCL_STOP
} else {
/* zero copy */
switch (stream->num_planes) {
+//LCOV_EXCL_START
case 1:
frame->data.single_plane.yuv = buffer_bo_handle[0].ptr;
frame->data.single_plane.size = stream->data.yuv420.length_yuv;
total_size = stream->data.yuv420.length_yuv;
break;
+//LCOV_EXCL_STOP
case 2:
frame->data.double_plane.y = buffer_bo_handle[0].ptr;
if (stream->num_planes == (unsigned int)num_buffer_key)
stream->data.yuv420sp.length_uv;
break;
case 3:
+//LCOV_EXCL_START
frame->data.triple_plane.y = buffer_bo_handle[0].ptr;
if (stream->num_planes == (unsigned int)num_buffer_key) {
frame->data.triple_plane.u = buffer_bo_handle[1].ptr;
stream->data.yuv420p.length_u + \
stream->data.yuv420p.length_v;
break;
+//LCOV_EXCL_STOP
default:
break;
}
tsurf_info.planes[1].offset = tsurf_info.planes[0].size;
tsurf_info.size = tsurf_info.planes[0].size + tsurf_info.planes[1].size;
break;
+//LCOV_EXCL_START
case TBM_FORMAT_YUV420:
case TBM_FORMAT_YVU420:
tsurf_info.planes[0].size = stream->stride[0] * stream->elevation[0];
break;
default:
break;
+//LCOV_EXCL_STOP
}
tsurf = tbm_surface_internal_create_with_bos(&tsurf_info, buffer_bo, num_buffer_key);
} else if (mp_data->data_bo) {
+//LCOV_EXCL_START
switch (bo_format) {
case TBM_FORMAT_NV12:
case TBM_FORMAT_NV21:
}
tsurf = tbm_surface_internal_create_with_bos(&tsurf_info, &mp_data->data_bo, 1);
+//LCOV_EXCL_STOP
}
/*LOGD("tbm surface %p", tsurf);*/
}
LOGW("evas renderer is not supported");
#endif /* TIZEN_FEATURE_EVAS_RENDERER */
}
-
+//LCOV_EXCL_START
/* call media packet callback */
if (cb_info->user_cb[MUSE_CAMERA_EVENT_TYPE_MEDIA_PACKET_PREVIEW]) {
ret = _camera_media_packet_data_create(tbm_key, num_buffer_key, bo, buffer_bo, data_bo, &mp_data);
g_mutex_unlock(&cb_info->evas_mutex);
}
#endif /* TIZEN_FEATURE_EVAS_RENDERER */
-
+//LCOV_EXCL_STOP
/* send message for preview callback return */
if (!CHECK_PREVIEW_CB(cb_info, PREVIEW_CB_TYPE_EVAS))
_camera_msg_send(MUSE_CAMERA_API_PREVIEW_CB_RETURN, cb_info, NULL, 0);
}
}
break;
+//LCOV_EXCL_START
case MUSE_CAMERA_EVENT_TYPE_HDR_PROGRESS:
{
int percent = 0;
(camera_state_e)current_state, cb_info->user_data[event]);
}
break;
+//LCOV_EXCL_STOP
case MUSE_CAMERA_EVENT_TYPE_FOREACH_SUPPORTED_PREVIEW_RESOLUTION:
/* fall through */
case MUSE_CAMERA_EVENT_TYPE_FOREACH_SUPPORTED_CAPTURE_RESOLUTION:
/* fall through */
case MUSE_CAMERA_EVENT_TYPE_FOREACH_SUPPORTED_STREAM_ROTATION:
/* fall through */
+//LCOV_EXCL_START
case MUSE_CAMERA_EVENT_TYPE_FOREACH_SUPPORTED_THEATER_MODE:
/* fall through */
case MUSE_CAMERA_EVENT_TYPE_FOREACH_SUPPORTED_PTZ_TYPE:
LOGW("stop foreach callback for event %d", event);
}
break;
+//LCOV_EXCL_STOP
case MUSE_CAMERA_EVENT_TYPE_CAPTURE:
{
camera_image_data_s *rImage = NULL;
cb_info->is_server_connected = TRUE;
return cb_info;
-
+//LCOV_EXCL_START
ErrorExit:
if (cb_info) {
__destroy_msg_handler_thread(&cb_info->msg_handler_info);
}
return NULL;
+//LCOV_EXCL_STOP
}
static void _camera_client_callback_destroy(camera_cb_info_s *cb_info)
return;
}
-
+//LCOV_EXCL_START
int _camera_start_evas_rendering(camera_h camera)
{
int ret = CAMERA_ERROR_NONE;
return ret;
}
-
+//LCOV_EXCL_STOP
int _camera_independent_request(int api, int device_type, const char *key, int *value)
{
}
return ret;
-
+//LCOV_EXCL_START
ErrorExit:
if (bufmgr) {
tbm_bufmgr_deinit(bufmgr);
LOGE("camera create error : 0x%x", ret);
return ret;
+//LCOV_EXCL_STOP
}
LOGD("Enter");
+//LCOV_EXCL_START
if (CHECK_PREVIEW_CB(pc->cb_info, PREVIEW_CB_TYPE_EVAS)) {
ret = camera_get_state(camera, ¤t_state);
if (ret != CAMERA_ERROR_NONE) {
return ret;
}
}
-
+//LCOV_EXCL_STOP
/* send stop preview message */
_camera_msg_send(api, pc->cb_info, &ret, CAMERA_CB_TIMEOUT);
if (type == CAMERA_DISPLAY_TYPE_NONE) {
set_display_handle = 0;
LOGD("display type NONE");
+//LCOV_EXCL_START
} else {
obj = (Evas_Object *)display;
object_type = evas_object_type_get(obj);
return CAMERA_ERROR_INVALID_PARAMETER;
}
}
-
+//LCOV_EXCL_STOP
pc->display_handle = (intptr_t)set_display_handle;
if (type == CAMERA_DISPLAY_TYPE_OVERLAY) {
LOGE("NULL handle");
return CAMERA_ERROR_INVALID_PARAMETER;
}
-
+//LCOV_EXCL_START
#ifdef TIZEN_FEATURE_EVAS_RENDERER
if (CHECK_PREVIEW_CB(pc->cb_info, PREVIEW_CB_TYPE_EVAS)) {
g_mutex_lock(&pc->cb_info->evas_mutex);
}
}
#endif /* TIZEN_FEATURE_EVAS_RENDERER */
-
+//LCOV_EXCL_STOP
CAMERA_MSG_PARAM_SET(param, INT, set_rotation);
_camera_msg_send_param1(MUSE_CAMERA_API_SET_DISPLAY_ROTATION, pc->cb_info, &ret, ¶m, CAMERA_CB_TIMEOUT);
LOGE("NULL handle");
return CAMERA_ERROR_INVALID_PARAMETER;
}
-
+//LCOV_EXCL_START
#ifdef TIZEN_FEATURE_EVAS_RENDERER
if (CHECK_PREVIEW_CB(pc->cb_info, PREVIEW_CB_TYPE_EVAS)) {
g_mutex_lock(&pc->cb_info->evas_mutex);
}
}
#endif /* TIZEN_FEATURE_EVAS_RENDERER */
-
+//LCOV_EXCL_STOP
CAMERA_MSG_PARAM_SET(param, INT, set_flip);
_camera_msg_send_param1(MUSE_CAMERA_API_SET_DISPLAY_FLIP, pc->cb_info, &ret, ¶m, CAMERA_CB_TIMEOUT);
LOGE("NULL handle");
return CAMERA_ERROR_INVALID_PARAMETER;
}
-
+//LCOV_EXCL_START
#ifdef TIZEN_FEATURE_EVAS_RENDERER
if (CHECK_PREVIEW_CB(pc->cb_info, PREVIEW_CB_TYPE_EVAS)) {
g_mutex_lock(&pc->cb_info->evas_mutex);
}
}
#endif /* TIZEN_FEATURE_EVAS_RENDERER */
-
+//LCOV_EXCL_STOP
CAMERA_MSG_PARAM_SET(param, INT, set_visible);
_camera_msg_send_param1(MUSE_CAMERA_API_SET_DISPLAY_VISIBLE, pc->cb_info, &ret, ¶m, CAMERA_CB_TIMEOUT);
LOGE("NULL handle");
return CAMERA_ERROR_INVALID_PARAMETER;
}
-
+//LCOV_EXCL_START
#ifdef TIZEN_FEATURE_EVAS_RENDERER
if (CHECK_PREVIEW_CB(pc->cb_info, PREVIEW_CB_TYPE_EVAS)) {
g_mutex_lock(&pc->cb_info->evas_mutex);
}
}
#endif /* TIZEN_FEATURE_EVAS_RENDERER */
-
+//LCOV_EXCL_STOP
CAMERA_MSG_PARAM_SET(param, INT, set_mode);
_camera_msg_send_param1(MUSE_CAMERA_API_SET_DISPLAY_MODE, pc->cb_info, &ret, ¶m, CAMERA_CB_TIMEOUT);
}
LOGD("Enter");
-
+//LCOV_EXCL_START
#ifdef TIZEN_FEATURE_EVAS_RENDERER
if (CHECK_PREVIEW_CB(pc->cb_info, PREVIEW_CB_TYPE_EVAS)) {
g_mutex_lock(&pc->cb_info->evas_mutex);
}
}
#endif /* TIZEN_FEATURE_EVAS_RENDERER */
-
+//LCOV_EXCL_STOP
length = sizeof(set_display_roi_area) / sizeof(int) + \
(sizeof(set_display_roi_area) % sizeof(int) ? 1 : 0);