* "0": service request will be performed in sync way. It means that user can get the result as soon as the request is completed.
* "1": service request will be performed in async way. It mean that user is needed to create a new thread to get the result
* because it will be returned as soon as the service request is done so user has to wait for the result within its own thread context.
- * Examples: singleo_service_create("service=auto_zoom, input=camera, camera_id=0, fbs=30, async=0")
+ * Examples: singleo_service_create("service=auto_zoom, input=camera, camera_id=0, fbs=30, async=0", &handle)
*
* @since_tizen 9.0
*
/**
* @internal
- * @brief Adds a given image file name to the service as a input
+ * @brief Adds a given image file name to the service as a input.
*
* @since_tizen 9.0
* @remarks With this function, user can add input image file to the the service before invoking the service.
/**
* @internal
- * @brief Adds a given image data to the service as a input
+ * @brief Adds a given image data to the service as a input.
*
* @since_tizen 9.0
* @remarks With this function, user can add input image data to the the service before invoking the service.
/**
* @internal
- * @brief Adds a given raw data to the service as a input
+ * @brief Adds a given raw data to the service as a input.
*
* @since_tizen 9.0
* @remarks With this function, user can add input raw data to the the service before invoking the service.
* @retval #SINGLEO_SERVICE_ERROR_ERROR_INVALID_OPERATION Invalid operation
*
* @pre Create a source handle by calling singleo_service_create()
- * @pre Perform a requested service by
- * calling singleo_service_perform(),
- * singleo_service_perform_with_file(),
- * singleo_service_perform_with_image_data(),
- * or singleo_service_perform_with_raw_data()
+ * @pre Perform a requested service by calling singleo_service_perform()
*/
int singleo_service_get_result_cnt(singleo_service_h handle, unsigned int *cnt);
* @retval #SINGLEO_SERVICE_ERROR_ERROR_INVALID_OPERATION Invalid operation
*
* @pre Create a source handle by calling singleo_service_create()
- * @pre Perform a requested service by
- * calling singleo_service_perform(),
- * singleo_service_perform_with_file(),
- * singleo_service_perform_with_image_data(),
- * or singleo_service_perform_with_raw_data()
+ * @pre Perform a requested service by calling singleo_service_perform()
* @pre Get a number of results by calling singleo_service_get_result_cnt()
*/
int singleo_service_get_result_int(singleo_service_h handle, unsigned int idx, const char *key, unsigned int *value);
* @retval #SINGLEO_SERVICE_ERROR_ERROR_INVALID_OPERATION Invalid operation
*
* @pre Create a source handle by calling singleo_service_create()
- * @pre Perform a requested service by
- * calling singleo_service_perform(),
- * singleo_service_perform_with_file(),
- * singleo_service_perform_with_image_data(),
- * or singleo_service_perform_with_raw_data()
- * @pre Get a number of results by calling singleo_service_get_result_cnt()
+ * @pre Perform a requested service by calling singleo_service_perform()
*/
int singleo_service_get_result_str(singleo_service_h handle, unsigned int idx, const char *key, char **value);
* @retval #SINGLEO_SERVICE_ERROR_ERROR_INVALID_OPERATION Invalid operation
*
* @pre Create a source handle by calling singleo_service_create()
- * @pre Perform a requested service by
- * calling singleo_service_perform(),
- * singleo_service_perform_with_file(),
- * singleo_service_perform_with_image_data(),
- * or singleo_service_perform_with_raw_data()
- * @pre Get a number of results by calling singleo_service_get_result_cnt()
+ * @pre Perform a requested service by calling singleo_service_perform()
*/
int singleo_service_get_result_ptr(singleo_service_h handle, unsigned int idx, const char *key, unsigned char **ptr);
if (service_handle)
delete service_handle;
+ SINGLEO_LOGE("%s", e.what());
return e.getError();
}
input_data._file_name = file_name;
context->_service_handle->add_input(input_data);
} catch (const BaseException &e) {
+ SINGLEO_LOGE("%s", e.what());
return e.getError();
}
input_data.byte_per_pixel = byte_per_pixel;
context->_service_handle->add_input(input_data);
} catch (const BaseException &e) {
+ SINGLEO_LOGE("%s", e.what());
return e.getError();
}
input_data.size_in_bytes = buffer_size_in_bytes;
context->_service_handle->add_input(input_data);
} catch (const BaseException &e) {
+ SINGLEO_LOGE("%s", e.what());
return e.getError();
}
else
context->_service_handle->performAsync();
} catch (const BaseException &e) {
+ SINGLEO_LOGE("%s", e.what());
return e.getError();
}
auto context = static_cast<Context *>(handle);
context->_service_handle->getResultCnt(cnt);
} catch (const BaseException &e) {
+ SINGLEO_LOGE("%s", e.what());
return e.getError();
}
auto context = static_cast<Context *>(handle);
context->_service_handle->getResultInt(idx, key, value);
} catch (const BaseException &e) {
+ SINGLEO_LOGE("%s", e.what());
return e.getError();
}
auto context = static_cast<Context *>(handle);
context->_service_handle->registerUserCallback(user_cb, user_data);
} catch (const BaseException &e) {
+ SINGLEO_LOGE("%s", e.what());
return e.getError();
}
auto context = static_cast<Context *>(handle);
context->_service_handle->unregisterUserCallback();
} catch (const BaseException &e) {
+ SINGLEO_LOGE("%s", e.what());
return e.getError();
}