ret = MEDIACODEC_ERROR_INVALID_PARAMETER;
msg = "MEDIACODEC_ERROR_INVALID_PARAMETER";
break;
+//LCOV_EXCL_START
case MC_PERMISSION_DENIED:
ret = MEDIACODEC_ERROR_PERMISSION_DENIED;
msg = "MEDIACODEC_ERROR_PERMISSION_DENIED";
ret = MEDIACODEC_ERROR_INVALID_STATE;
msg = "MEDIACODEC_ERROR_INVALID_STATE";
break;
+//LCOV_EXCL_STOP
case MC_NOT_SUPPORTED:
ret = MEDIACODEC_ERROR_NOT_SUPPORTED_ON_DEVICE;
msg = "MEDIACODEC_ERROR_NOT_SUPPORTED_ON_DEVICE";
break;
+//LCOV_EXCL_START
case MC_ERROR:
case MC_INTERNAL_ERROR:
case MC_HW_ERROR:
ret = MEDIACODEC_ERROR_INTERNAL;
msg = "MEDIACODEC_ERROR_INTERNAL";
break;
+//LCOV_EXCL_STOP
}
+
LOGD("[%s] %s(0x%08x) : core fw error(0x%x)", func_name, msg, ret, code);
return ret;
}
ret = mc_create(&handle->mc_handle);
if (ret != MEDIACODEC_ERROR_NONE) {
+//LCOV_EXCL_START
LOGE("MEDIACODEC_ERROR_INVALID_OPERATION(0x%08x)", MEDIACODEC_ERROR_INVALID_OPERATION); //LCOV_EXCL_LINE
handle->state = MEDIACODEC_STATE_NONE;
g_free(handle->mc_handle);
g_free(handle);
handle = NULL;
return MEDIACODEC_ERROR_INVALID_OPERATION;
+//LCOV_EXCL_STOP
} else {
*mediacodec = (mediacodec_h)handle;
handle->state = MEDIACODEC_STATE_IDLE;
#ifdef RM_COMMON
ret = mediacodec_resource_create(handle);
if (ret != MEDIACODEC_ERROR_NONE) {
+//LCOV_EXCL_START
handle->state = MEDIACODEC_STATE_NONE;
if (mc_destroy(handle->mc_handle) != MEDIACODEC_ERROR_NONE) {
LOGE("MEDIACODEC_ERROR_INVALID_OPERATION(0x%08x)", MEDIACODEC_ERROR_INVALID_OPERATION);
}
g_free(handle);
return __convert_error_code(ret, (char *)__FUNCTION__);
+//LCOV_EXCL_STOP
}
#endif
if (ret != MEDIACODEC_ERROR_NONE) {
return __convert_error_code(ret, (char *)__FUNCTION__);
}
-//LCOV_EXCL_STOP
}
+//LCOV_EXCL_STOP
#endif
ret = mc_prepare(handle->mc_handle);