Change \\n to \n for proper new line.
Change-Id: I2b14f23adbfd14803bd0ba4b856be1ddaab3f671
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
int image_load(const char *file_path, mv_source_h source)
{
if (NULL == file_path || NULL == source) {
- FPRINTF("[Line : %d][%s] File path or source is NULL\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] File path or source is NULL\n", __LINE__, API_NAMESPACE);
return MEDIA_VISION_ERROR_INVALID_PARAMETER;
}
int ret = image_util_decode_create(&hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_create Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_create Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
ret = image_util_decode_set_input_path(hDecoder, file_path);
if (IMAGE_UTIL_ERROR_NONE != ret) {
ret = image_util_decode_destroy(hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
- FPRINTF("[Line : %d][%s] image_util_decode_set_input_path Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_set_input_path Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
ret = image_util_decode_set_colorspace(hDecoder, IMAGE_UTIL_COLORSPACE_RGB888);
if (IMAGE_UTIL_ERROR_NONE != ret) {
ret = image_util_decode_destroy(hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
- FPRINTF("[Line : %d][%s] image_util_decode_set_colorspace Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_set_colorspace Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
ret = image_util_decode_set_output_buffer(hDecoder, &data_buffer);
if (IMAGE_UTIL_ERROR_NONE != ret) {
ret = image_util_decode_destroy(hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
- FPRINTF("[Line : %d][%s] image_util_decode_set_output_buffer Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_set_output_buffer Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
}
ret = image_util_decode_destroy(hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
- FPRINTF("[Line : %d][%s] image_util_decode_run Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_run Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
}
ret = image_util_decode_destroy(hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
- FPRINTF("[Line : %d][%s] Error occured when clearing the source\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Error occured when clearing the source\n", __LINE__, API_NAMESPACE);
return ret;
}
}
ret = image_util_decode_destroy(hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
- FPRINTF("[Line : %d][%s] Error occured when filling the source by buffer\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Error occured when filling the source by buffer\n", __LINE__, API_NAMESPACE);
return ret;
}
}
ret = image_util_decode_destroy(hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
#define PATHLEN 1024
-#define START_TEST_INFERENCE \
- { \
- FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
- if (g_bMismatch) { \
- FPRINTF("[Line : %d][%s]Featuer mismatch for media-vision so leaving " \
- "test\\n", \
- __LINE__, API_NAMESPACE); \
- return 1; \
- } \
- if (g_bIsVisionInferenceFeatureSupported == false) { \
- FPRINTF("[Line : %d][%s] Face Inference feature is not supported and " \
- "api also returned not supported so leaving test\\n", \
- __LINE__, API_NAMESPACE); \
- return 0; \
- } \
- if (g_bMediavisionInferenceModelCreation == false) { \
- FPRINTF("[Line : %d][%s] Precondition of media-vision failed so " \
- "leaving test\\n", \
- __LINE__, API_NAMESPACE); \
- return 1; \
- } \
+#define START_TEST_INFERENCE \
+ { \
+ FPRINTF("[Line : %d][%s] Starting test : %s\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
+ if (g_bMismatch) { \
+ FPRINTF("[Line : %d][%s]Featuer mismatch for media-vision so leaving " \
+ "test\n", \
+ __LINE__, API_NAMESPACE); \
+ return 1; \
+ } \
+ if (g_bIsVisionInferenceFeatureSupported == false) { \
+ FPRINTF("[Line : %d][%s] Face Inference feature is not supported and " \
+ "api also returned not supported so leaving test\n", \
+ __LINE__, API_NAMESPACE); \
+ return 0; \
+ } \
+ if (g_bMediavisionInferenceModelCreation == false) { \
+ FPRINTF("[Line : %d][%s] Precondition of media-vision failed so " \
+ "leaving test\n", \
+ __LINE__, API_NAMESPACE); \
+ return 1; \
+ } \
}
-#define START_TEST \
- { \
- FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
+#define START_TEST \
+ { \
+ FPRINTF("[Line : %d][%s] Starting test : %s\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
}
-#define START_TEST_FACE_RECOGNITION \
- { \
- FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
- if (g_bMismatch) { \
- FPRINTF("[Line : %d][%s] mv_face_recognition_model_create and " \
- "TCTCheckSystemInfoFeatureSupported returned different feature " \
- "for media-vision so leaving test\\n", \
- __LINE__, API_NAMESPACE); \
- return 1; \
- } \
- if (g_bIsFaceRecognitionFeatureSupported == false) { \
- FPRINTF("[Line : %d][%s] Face recognition feature is not supported and " \
- "api also returned not supported so leaving test\\n", \
- __LINE__, API_NAMESPACE); \
- return 0; \
- } \
- if (g_bMediavisionFaceRecognitionModelCreation == false) { \
- FPRINTF("[Line : %d][%s] Precondition of media-vision failed so " \
- "leaving test\\n", \
- __LINE__, API_NAMESPACE); \
- return 1; \
- } \
+#define START_TEST_FACE_RECOGNITION \
+ { \
+ FPRINTF("[Line : %d][%s] Starting test : %s\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
+ if (g_bMismatch) { \
+ FPRINTF("[Line : %d][%s] mv_face_recognition_model_create and " \
+ "TCTCheckSystemInfoFeatureSupported returned different feature " \
+ "for media-vision so leaving test\n", \
+ __LINE__, API_NAMESPACE); \
+ return 1; \
+ } \
+ if (g_bIsFaceRecognitionFeatureSupported == false) { \
+ FPRINTF("[Line : %d][%s] Face recognition feature is not supported and " \
+ "api also returned not supported so leaving test\n", \
+ __LINE__, API_NAMESPACE); \
+ return 0; \
+ } \
+ if (g_bMediavisionFaceRecognitionModelCreation == false) { \
+ FPRINTF("[Line : %d][%s] Precondition of media-vision failed so " \
+ "leaving test\n", \
+ __LINE__, API_NAMESPACE); \
+ return 1; \
+ } \
}
// Add CallBack function declarations here
void ITs_media_vision_face_recognition_startup(void)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside ITs_media_vision_face_recognition_startup \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside ITs_media_vision_face_recognition_startup \n", __LINE__, API_NAMESPACE);
#endif
struct stat stBuff;
if (stat(ERR_LOG, &stBuff) == 0) {
};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
- FPRINTF("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\\n", __LINE__, API_NAMESPACE, pszValue);
+ FPRINTF("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\n", __LINE__, API_NAMESPACE, pszValue);
gFaceRecognitionExampleDir1 =
(char *) calloc(strlen(pszValue) + strlen("/res/res/face_recognition/images/P1") + 1, sizeof(char));
"%s/res/res/face_recognition/images/P2", pszValue);
} else {
FPRINTF("[Line : %d][%s] GetValueForTCTSetting returned error for "
- "'DEVICE_SUITE_TARGET_30'\\n",
+ "'DEVICE_SUITE_TARGET_30'\n",
__LINE__, API_NAMESPACE);
}
if (nRet != TIZEN_ERROR_NOT_SUPPORTED) {
FPRINTF("[%s:%d] mv_face_recognition_create failed to return "
"TIZEN_ERROR_NOT_SUPPORTED for unsupported feature, error "
- "returned = (%d)\\n",
+ "returned = (%d)\n",
__FILE__, __LINE__, nRet);
dlog_print(DLOG_ERROR, "NativeTCT",
"[%s:%d] mv_face_recognition_create failed to return "
return;
}
- FPRINTF("[%s:%d] mv_face_recognition_create is unsupported\\n", __FILE__, __LINE__);
+ FPRINTF("[%s:%d] mv_face_recognition_create is unsupported\n", __FILE__, __LINE__);
dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] mv_face_recognition_create is unsupported", __FILE__, __LINE__);
g_bMismatch = false;
} else if (nRet != MEDIA_VISION_ERROR_NONE) {
- FPRINTF("[%s:%d] mv_face_recognition_create failed, error returned =(%d)\\n", __FILE__, __LINE__, nRet);
+ FPRINTF("[%s:%d] mv_face_recognition_create failed, error returned =(%d)\n", __FILE__, __LINE__, nRet);
dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] mv_face_recognition_create failed, error returned = (%d)",
__FILE__, __LINE__, nRet);
g_bMediavisionFaceRecognitionModelCreation = false;
void ITs_media_vision_face_recognition_cleanup(void)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside ITs_media_vision_face_recognition_cleanup \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside ITs_media_vision_face_recognition_cleanup \n", __LINE__, API_NAMESPACE);
#endif
mv_face_recognition_destroy(g_hFaceRecognitionHandle);
if (gFaceRecognitionExampleDir1 != NULL) {
const float *confidences, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside ImageClassifiyCB callback \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside ImageClassifiyCB callback \n", __LINE__, API_NAMESPACE);
#endif
g_CallBackHit = true;
const float *confidences, const mv_rectangle_s *locations, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside ObjectDetectionCB callback \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside ObjectDetectionCB callback \n", __LINE__, API_NAMESPACE);
#endif
g_CallBackHit = true;
}
const mv_rectangle_s *locations, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside FaceDetectionCB callback \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside FaceDetectionCB callback \n", __LINE__, API_NAMESPACE);
#endif
g_CallBackHit = true;
}
void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside FaceLandmarkDetectionCB callback \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside FaceLandmarkDetectionCB callback \n", __LINE__, API_NAMESPACE);
#endif
g_CallBackHit = true;
}
static bool SupportedInferenceCB(const char *engine, bool supported, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside SupportedInferenceCB callback \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside SupportedInferenceCB callback \n", __LINE__, API_NAMESPACE);
#endif
g_CallBackHit = true;
}
static void PoseLandmarkDetectedCB(mv_source_h source, mv_inference_pose_result_h locations, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside PoseLandmarkDetectedCB callback \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside PoseLandmarkDetectedCB callback \n", __LINE__, API_NAMESPACE);
#endif
g_CallBackHit = true;
}
static void GetPoseLandmarkDetectedResultCB(mv_source_h source, mv_inference_pose_result_h result, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside GetPoseLandmarkDetectedResultCB callback \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside GetPoseLandmarkDetectedResultCB callback \n", __LINE__, API_NAMESPACE);
#endif
g_CallBackHit = true;
g_nRetVal = mv_inference_pose_get_number_of_poses(result, &g_nNumberOfPoses);
static void GetNumberOfLandmarksCB(mv_source_h source, mv_inference_pose_result_h result, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside GetNumberOfLandmarksCB callback \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside GetNumberOfLandmarksCB callback \n", __LINE__, API_NAMESPACE);
#endif
g_CallBackHit = true;
static void GetLandmarkCB(mv_source_h source, mv_inference_pose_result_h result, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside GetLandmarkCB callback \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside GetLandmarkCB callback \n", __LINE__, API_NAMESPACE);
#endif
g_CallBackHit = true;
int nResultNumberOfPoses = -1;
static void GetPoseCB(mv_source_h source, mv_inference_pose_result_h result, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside GetPoseCB callback \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside GetPoseCB callback \n", __LINE__, API_NAMESPACE);
#endif
g_CallBackHit = true;
g_nRetVal = mv_inference_pose_get_number_of_poses(result, &g_nNumberOfPoses);
static void PoseCompareCB(mv_source_h source, mv_inference_pose_result_h result, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside PoseCompareCB callback \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside PoseCompareCB callback \n", __LINE__, API_NAMESPACE);
#endif
g_CallBackHit = true;
void ITs_media_vision_inference_startup(void)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside ITs_media_vision_inference_startup \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside ITs_media_vision_inference_startup \n", __LINE__, API_NAMESPACE);
#endif
struct stat stBuff;
int nRet = -1;
0,
};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
- FPRINTF("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\\n", __LINE__, API_NAMESPACE, pszValue);
+ FPRINTF("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\n", __LINE__, API_NAMESPACE, pszValue);
gInferenceExampleDir = (char *) calloc(strlen(pszValue) + strlen("/res/res/inference") + 1, sizeof(char));
snprintf(gInferenceExampleDir, strlen(pszValue) + strlen("/res/res/inference") + 1, "%s/res/res/inference",
} else {
FPRINTF("[Line : %d][%s] GetValueForTCTSetting returned error for "
- "'DEVICE_SUITE_TARGET_30'\\n",
+ "'DEVICE_SUITE_TARGET_30'\n",
__LINE__, API_NAMESPACE);
}
if (nRet != TIZEN_ERROR_NOT_SUPPORTED) {
FPRINTF("[%s:%d] mv_inference_create failed to return "
"TIZEN_ERROR_NOT_SUPPORTED for unsupported feature, error "
- "returned = (%d)\\n",
+ "returned = (%d)\n",
__FILE__, __LINE__, nRet);
dlog_print(DLOG_ERROR, "NativeTCT",
"[%s:%d] mv_inference_create failed to return "
return;
}
- FPRINTF("[%s:%d] mv_inference_create is unsupported\\n", __FILE__, __LINE__);
+ FPRINTF("[%s:%d] mv_inference_create is unsupported\n", __FILE__, __LINE__);
dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] mv_inference_create is unsupported", __FILE__, __LINE__);
g_bMismatch = false;
} else if (nRet != MEDIA_VISION_ERROR_NONE) {
- FPRINTF("[%s:%d] mv_inference_create failed, error returned =(%d)\\n", __FILE__, __LINE__, nRet);
+ FPRINTF("[%s:%d] mv_inference_create failed, error returned =(%d)\n", __FILE__, __LINE__, nRet);
dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] mv_inference_create failed, error returned = (%d)", __FILE__,
__LINE__, nRet);
g_bMediavisionInferenceModelCreation = false;
nRet = mv_create_engine_config(&gEngineConfigHandle);
if (MEDIA_VISION_ERROR_NONE != nRet) {
gEngineConfigHandle = NULL;
- FPRINTF("[%s:%d] mv_create_engine_config failed, error returned =(%d)\\n", __FILE__, __LINE__, nRet);
+ FPRINTF("[%s:%d] mv_create_engine_config failed, error returned =(%d)\n", __FILE__, __LINE__, nRet);
g_bMediavisionInferenceModelCreation = false;
return;
}
nRet = mv_create_source(&gSourceHandle);
if (MEDIA_VISION_ERROR_NONE != nRet) {
gSourceHandle = NULL;
- FPRINTF("[%s:%d] mv_create_source failed, error returned =(%d)\\n", __FILE__, __LINE__, nRet);
+ FPRINTF("[%s:%d] mv_create_source failed, error returned =(%d)\n", __FILE__, __LINE__, nRet);
g_bMediavisionInferenceModelCreation = false;
return;
}
void ITs_media_vision_inference_cleanup(void)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside ITs_media_vision_inference_cleanup \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside ITs_media_vision_inference_cleanup \n", __LINE__, API_NAMESPACE);
#endif
if (gInferenceHandle) {
mv_inference_destroy(gInferenceHandle);
PRINT_RESULT(expectedSize, actualSize, "expected and actual size is not same", MediaVisionGetError(nRet));
for (int i = 0; i < expectedSize; ++i) {
if (strcmp(expectedParameterValue[i], actualParameterValue[i]) != 0) {
- FPRINTF("[%s:%d] Expected and actual parameter value is not same\\n", __FILE__, __LINE__);
+ FPRINTF("[%s:%d] Expected and actual parameter value is not same\n", __FILE__, __LINE__);
resultFlag = 1;
}
}
if (g_nNumberOfPoses <= 0) {
FPRINTF("[Line : %d][%s] Invalid value of g_nNumberOfPoses, "
- "g_nNumberOfPoses = %d \\n",
+ "g_nNumberOfPoses = %d \n",
__LINE__, API_NAMESPACE, g_nNumberOfPoses);
return 1;
}
if (g_nNumberOfLandmarks <= 0) {
FPRINTF("[Line : %d][%s] Invalid value of g_nNumberOfLandmarks, "
- "g_nNumberOfLandmarks = %d \\n",
+ "g_nNumberOfLandmarks = %d \n",
__LINE__, API_NAMESPACE, g_nNumberOfLandmarks);
return 1;
}
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, g_nRetVal, "mv_inference_pose_landmark_detect", MediaVisionGetError(nRet));
if (g_nNumberOfPoses <= 0) {
FPRINTF("[Line : %d][%s] Invalid value of g_nNumberOfPoses, "
- "g_nNumberOfPoses = %d \\n",
+ "g_nNumberOfPoses = %d \n",
__LINE__, API_NAMESPACE, g_nNumberOfPoses);
return 1;
}
if (g_nLabel > 0) {
- FPRINTF("[Line : %d][%s] Invalid value of g_nLabel, g_nLabel = %d \\n", __LINE__, API_NAMESPACE, g_nLabel);
+ FPRINTF("[Line : %d][%s] Invalid value of g_nLabel, g_nLabel = %d \n", __LINE__, API_NAMESPACE, g_nLabel);
return 1;
}
if (g_PoseCompareScore <= 0.5) {
FPRINTF("[Line : %d][%s] Invalid value of g_PoseCompareScore, "
- "g_PoseCompareScore = %f \\n",
+ "g_PoseCompareScore = %f \n",
__LINE__, API_NAMESPACE, g_PoseCompareScore);
return 1;
}
if (nRet != APP_CONTROL_ERROR_NONE) {
dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] app_control_get_extra_data returns error = %d", __FUNCTION__,
__LINE__, nRet);
- PRINT_UTC_LOG("\\n[%s][Line : %d]Unable to fetch test case name: "
- "app_control_get_extra_data API call fails\\n",
+ PRINT_UTC_LOG("\n[%s][Line : %d]Unable to fetch test case name: "
+ "app_control_get_extra_data API call fails\n",
__FILE__, __LINE__);
PRINT_TC_RESULT("%d", 1);
FREE_MEMORY_TC(pszGetTCName);
dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] Unable to execute %s : Unknown Test Case Name", __FUNCTION__, __LINE__,
pszGetTCName);
- PRINT_UTC_LOG("\\n[%s][Line : %d]Unable to execute %s : Unknown Test Case Name\\n", __FILE__, __LINE__,
- pszGetTCName);
+ PRINT_UTC_LOG("\n[%s][Line : %d]Unable to execute %s : Unknown Test Case Name\n", __FILE__, __LINE__, pszGetTCName);
PRINT_TC_RESULT("%d", 1);
FREE_MEMORY_TC(pszGetTCName);
return;
ret = ui_app_main(argc, argv, &event_callback, NULL);
if (ret != APP_ERROR_NONE) {
dlog_print(DLOG_ERROR, "NativeTCT", "Application ui_app_main call gets failed. err = %d", ret);
- PRINT_UTC_LOG("\\n[%s][Line : %d]Application ui_app_main call gets failed. "
- "err = %d\\n",
+ PRINT_UTC_LOG("\n[%s][Line : %d]Application ui_app_main call gets failed. "
+ "err = %d\n",
__FILE__, __LINE__, ret);
PRINT_TC_RESULT("%d", 1);
return ret;
void *user_data)
{
g_Mv3dDepthCallBackInvoked = true;
- FPRINTF("[Line : %d][%s] Callback Invoked: MvDepthCB\\n", __LINE__, API_NAMESPACE, "MvDepthCB");
+ FPRINTF("[Line : %d][%s] Callback Invoked: MvDepthCB\n", __LINE__, API_NAMESPACE, "MvDepthCB");
if (!g_WriteToFile)
QuitGmainLoop();
}
static void MvPointcloudCB(mv_source_h source, mv_3d_pointcloud_h pointcloud, void *user_data)
{
g_Mv3dPointCloudCallBackInvoked = true;
- FPRINTF("[Line : %d][%s] Callback Invoked: MvPointcloudCB\\n", __LINE__, API_NAMESPACE, "MvDepthCB");
+ FPRINTF("[Line : %d][%s] Callback Invoked: MvPointcloudCB\n", __LINE__, API_NAMESPACE, "MvDepthCB");
if (g_WriteToFile) {
mv_3d_h mv3d_handle = (mv_3d_h) user_data;
char outfilename[PATHLEN];
if (!g_IsMv3dSupported) {
if (MEDIA_VISION_ERROR_NOT_SUPPORTED != nRet) {
FPRINTF("[Line : %d][%s] Feature is not supported, mv_3d_create API did "
- "not returned NOT_SUPPORTED error code.\\n",
+ "not returned NOT_SUPPORTED error code.\n",
__LINE__, API_NAMESPACE);
g_bMismatch = true;
return;
} else {
if (MEDIA_VISION_ERROR_NONE != nRet) {
FPRINTF("[Line : %d][%s] Feature is not supported, mv_3d_create API "
- "failed. error code: [%s]\\n",
+ "failed. error code: [%s]\n",
__LINE__, API_NAMESPACE, MediaVisionGetError(nRet));
g_IsMv3dCreated = false;
return;
0,
};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
- FPRINTF("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\\n", __LINE__, API_NAMESPACE, pszValue);
+ FPRINTF("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\n", __LINE__, API_NAMESPACE, pszValue);
g_Mv3dExampleDir = (char *) calloc(strlen(pszValue) + strlen("/res/res/3d") + 1, sizeof(char));
snprintf(g_Mv3dExampleDir, strlen(pszValue) + strlen("/res/res/3d") + 1, "%s/res/res/3d", pszValue);
} else {
FPRINTF("[Line : %d][%s] GetValueForTCTSetting returned error for "
- "'DEVICE_SUITE_TARGET_30'\\n",
+ "'DEVICE_SUITE_TARGET_30'\n",
__LINE__, API_NAMESPACE);
}
if (MEDIA_VISION_ERROR_NONE != g_StartupError) {
g_EngineConfigHandle = NULL;
FPRINTF("[Line : %d][%s] mv_create_engine_config failed, returned error: "
- "[%s]'\\n",
+ "[%s]'\n",
__LINE__, API_NAMESPACE, MediaVisionGetError(nRet));
return;
}
nRet = mv_3d_run(g_Mv3d_handle, g_BaseSourceHandle, g_ExtraSourceHandle, NULL);
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "mv_3d_run", MediaVisionGetError(nRet));
if (!g_Mv3dDepthCallBackInvoked) {
- FPRINTF("[Line : %d][%s] Callback not hit\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Callback not hit\n", __LINE__, API_NAMESPACE);
return 1;
}
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "mv_3d_run", MediaVisionGetError(nRet));
RUN_POLLING_LOOP;
if (!g_Mv3dDepthCallBackInvoked) {
- FPRINTF("[Line : %d][%s] Callback not hit\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Callback not hit\n", __LINE__, API_NAMESPACE);
return 1;
}
nRet = mv_3d_run(g_Mv3d_handle, g_BaseSourceHandle, g_ExtraSourceHandle, NULL);
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "mv_3d_run", MediaVisionGetError(nRet));
if (!g_Mv3dDepthCallBackInvoked) {
- FPRINTF("[Line : %d][%s] Callback not hit\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Callback not hit\n", __LINE__, API_NAMESPACE);
return 1;
}
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, g_Mv3dPcdWriteResultErr, "mv_3d_pointcloud_write_file",
{
if (NULL == models || NULL == models_n) {
FPRINTF("[Line : %d][%s] No available container for models from %s section. "
- "Some of tests may be skipped!\\n",
+ "Some of tests may be skipped!\n",
__LINE__, API_NAMESPACE, section_name);
return;
}
if (!json_object_has_member(jobj, section_name)) {
- FPRINTF("[Line : %d][%s] No available '%s' section in json file!\\n", __LINE__, API_NAMESPACE, section_name);
+ FPRINTF("[Line : %d][%s] No available '%s' section in json file!\n", __LINE__, API_NAMESPACE, section_name);
return;
}
JsonNode *jobject_models = json_object_get_member(jobj, section_name);
if (JSON_NODE_ARRAY != json_node_get_node_type(jobject_models)) {
FPRINTF("[Line : %d][%s] Can't parse barcode models from %s section. Some of "
- "tests may be skipped!\\n",
+ "tests may be skipped!\n",
__LINE__, API_NAMESPACE, section_name);
return;
}
if (JSON_NODE_OBJECT != json_node_get_node_type(jobj_model)) {
FPRINTF("[Line : %d][%s] Positive test case %u in section %s can't be "
"parsed. "
- "Some of tests may be skipped!\\n",
+ "Some of tests may be skipped!\n",
__LINE__, API_NAMESPACE, ind, section_name);
continue;
}
parser = json_parser_new();
json_parser_load_from_file(parser, conf_file_path, &error);
- FPRINTF("[Line : %d][%s]conf_file_path %s\\n", __LINE__, API_NAMESPACE, conf_file_path);
+ FPRINTF("[Line : %d][%s]conf_file_path %s\n", __LINE__, API_NAMESPACE, conf_file_path);
if (error) {
- FPRINTF("[Line : %d][%s] Unable to parse file '%s' : %s\\n", __LINE__, API_NAMESPACE, conf_file_path,
+ FPRINTF("[Line : %d][%s] Unable to parse file '%s' : %s\n", __LINE__, API_NAMESPACE, conf_file_path,
error->message);
g_error_free(error);
g_object_unref(parser);
JsonNode *root = json_parser_get_root(parser);
if (JSON_NODE_OBJECT != json_node_get_node_type(root)) {
FPRINTF("[Line : %d][%s]Can't parse tests configuration file. Incorrect "
- "json markup.\\n",
+ "json markup.\n",
__LINE__, API_NAMESPACE);
g_object_unref(parser);
return;
int LoadImageMediaSource(const char *file_path, mv_source_h source)
{
if (NULL == file_path || NULL == source) {
- FPRINTF("[Line : %d][%s] File path or source is NULL\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] File path or source is NULL\n", __LINE__, API_NAMESPACE);
return MEDIA_VISION_ERROR_INVALID_PARAMETER;
}
CHECK_HANDLE(g_hMvEngineConfig, "mv_create_source");
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
- FPRINTF("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received = %s\\n", __LINE__, API_NAMESPACE, pszValue);
+ FPRINTF("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received = %s\n", __LINE__, API_NAMESPACE, pszValue);
unsigned int nPathLength = strlen(pszValue) + sizeof(char) * 9;
g_pszResPath = (char *) calloc(nPathLength, sizeof(char));
snprintf(g_pszResPath, nPathLength, "%s/res/res", pszValue);
g_pszDataPath = app_get_data_path();
} else {
FPRINTF("[Line: %d][%s] GetValueForTCTSetting returned error for "
- "'DEVICE_SUITE_TARGET_30'\\n",
+ "'DEVICE_SUITE_TARGET_30'\n",
__LINE__, API_NAMESPACE);
return false;
}
pszConfPath = (char *) malloc(strlen(g_pszResPath) + strlen(g_pszCconfFile) + 2);
if (pszConfPath == NULL) {
- FPRINTF("[Line : %d][%s] pszConfPath malloc is failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] pszConfPath malloc is failed\n", __LINE__, API_NAMESPACE);
return false;
}
snprintf(pszConfPath, strlen(g_pszResPath) + strlen(g_pszCconfFile) + 2, "%s/%s", g_pszResPath, g_pszCconfFile);
void BarcodeDetectedCB(mv_source_h source, mv_engine_config_h engine_cfg, const mv_quadrangle_s *barcode_locations,
const char *messages[], const mv_barcode_type_e *types, int number_of_barcodes, void *user_data)
{
- FPRINTF("[Line : %d][%s]Callback Invoked\\n", __LINE__, API_NAMESPACE, "BarcodeDetectedCB");
+ FPRINTF("[Line : %d][%s]Callback Invoked\n", __LINE__, API_NAMESPACE, "BarcodeDetectedCB");
if (number_of_barcodes != 1) {
- FPRINTF("[Line : %d][%s] number_of_barcodes is not equal to 1\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] number_of_barcodes is not equal to 1\n", __LINE__, API_NAMESPACE);
return;
}
struct barcode_model *model = (struct barcode_model *) user_data;
int nLengthMsg = strlen(messages[0]);
if (strncmp(model->message, messages[0], nLengthMsg) != 0) {
- FPRINTF("[Line : %d][%s] message mismatch\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] message mismatch\n", __LINE__, API_NAMESPACE);
return;
}
if (model->type != types[0]) {
- FPRINTF("[Line : %d][%s] Barcode type is not zero\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Barcode type is not zero\n", __LINE__, API_NAMESPACE);
return;
}
}
int nRet = mv_create_source(&g_hMvSource);
if ((false == g_bIsBarcodeDetectionFeatureSupported) || (false == g_bIsBarcodeGenerationFeatureSupported)) {
- FPRINTF("[Line : %d][%s] Barcode feature not supported\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Barcode feature not supported\n", __LINE__, API_NAMESPACE);
PRINT_RESULTNONE(MEDIA_VISION_ERROR_NOT_SUPPORTED, nRet, "mv_create_source", MediaVisionGetError(nRet));
} else {
PRINT_RESULTNONE(MEDIA_VISION_ERROR_NONE, nRet, "mv_create_source", MediaVisionGetError(nRet));
CHECK_HANDLE_NONE(g_hMvSource, "mv_create_source");
}
if (CreateAndGetEngineAttributes() != true) {
- FPRINTF("[Line : %d][%s] CreateAndGetEngineAttributes failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] CreateAndGetEngineAttributes failed\n", __LINE__, API_NAMESPACE);
return;
}
g_bMediavisionCreation = true;
ImageModel[nIndex].qr_enc_mode, ImageModel[nIndex].qr_ecc,
ImageModel[nIndex].qr_version, pszOutputPath, nImageFormat);
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "mv_barcode_generate_image", MediaVisionGetError(nRet));
- FPRINTF("[Line : %d][%s] Data path = %s\\n", __LINE__, API_NAMESPACE, g_pszDataPath);
- FPRINTF("[Line : %d][%s] Output Image path= %s.%s\\n", __LINE__, API_NAMESPACE, pszOutputPath,
+ FPRINTF("[Line : %d][%s] Data path = %s\n", __LINE__, API_NAMESPACE, g_pszDataPath);
+ FPRINTF("[Line : %d][%s] Output Image path= %s.%s\n", __LINE__, API_NAMESPACE, pszOutputPath,
GetBarcodeImageFormat(nImageFormat));
}
}
START_TEST_BARCODE;
if (NULL == SourceModel) {
- FPRINTF("[Line : %d][%s] src model cannot be parsed.\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] src model cannot be parsed.\n", __LINE__, API_NAMESPACE);
return 0;
}
int nIndex = 0, nRet = -1;
SourceModel[nIndex].qr_enc_mode, SourceModel[nIndex].qr_ecc,
SourceModel[nIndex].qr_version, g_hMvSource);
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "mv_barcode_generate_source", MediaVisionGetError(nRet));
- FPRINTF("[Line : %d][%s] Generate source for barcode type = %d\\n", __LINE__, API_NAMESPACE,
+ FPRINTF("[Line : %d][%s] Generate source for barcode type = %d\n", __LINE__, API_NAMESPACE,
SourceModel[nIndex].type);
nRet = mv_source_clear(g_hMvSource);
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "mv_source_clear", MediaVisionGetError(nRet));
START_TEST_BARCODE;
if (NULL == DetectModel) {
- FPRINTF("[Line : %d][%s] barcode detect model cannot be parsed.\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] barcode detect model cannot be parsed.\n", __LINE__, API_NAMESPACE);
return 0;
}
for (nIndex = 0; nIndex < nDetectModelLength; ++nIndex) {
nRet = LoadImageMediaSource(DetectModel[nIndex].image_path, g_hMvSource);
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "LoadImageMediaSource", MediaVisionGetError(nRet));
- FPRINTF("[Line : %d][%s] LoadImageMediaSource done successfully\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] LoadImageMediaSource done successfully\n", __LINE__, API_NAMESPACE);
mv_rectangle_s roi;
roi.point.x = 0;
nRet = mv_barcode_detect(g_hMvSource, g_hMvEngineConfig, roi, BarcodeDetectedCB, &DetectModel[nIndex]);
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "mv_barcode_detect", MediaVisionGetError(nRet));
FPRINTF("[Line : %d][%s] Barcode of height= %i and width=%i are generated "
- "succesfully\\n",
+ "succesfully\n",
__LINE__, API_NAMESPACE, roi.height, roi.width);
nRet = mv_source_clear(g_hMvSource);
int nRet = -1;
nRet = media_format_create(&g_hMediaFormat);
if (nRet != MEDIA_FORMAT_ERROR_NONE) {
- FPRINTF("[Line : %d][%s] media_format_create API failed \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] media_format_create API failed \n", __LINE__, API_NAMESPACE);
return false;
}
CHECK_HANDLE(g_hMediaFormat, "media_format_create");
nRet = media_format_set_video_mime(g_hMediaFormat, MEDIA_FORMAT_RGB888);
if (nRet != MEDIA_FORMAT_ERROR_NONE) {
- FPRINTF("[Line : %d][%s] media_format_set_video_mime API failed \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] media_format_set_video_mime API failed \n", __LINE__, API_NAMESPACE);
return false;
}
nRet = media_format_set_video_height(g_hMediaFormat, BARCODEHEIGHT);
if (nRet != MEDIA_FORMAT_ERROR_NONE) {
- FPRINTF("[Line : %d][%s] media_format_set_video_height API failed \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] media_format_set_video_height API failed \n", __LINE__, API_NAMESPACE);
return false;
}
nRet = media_format_set_video_width(g_hMediaFormat, BARCODEWIDTH);
if (nRet != MEDIA_FORMAT_ERROR_NONE) {
- FPRINTF("[Line : %d][%s] media_format_set_video_width API failed \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] media_format_set_video_width API failed \n", __LINE__, API_NAMESPACE);
return false;
}
nRet = media_format_set_video_max_bps(g_hMediaFormat, 10);
if (nRet != MEDIA_FORMAT_ERROR_NONE) {
- FPRINTF("[Line : %d][%s] media_format_set_video_max_bps API failed \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] media_format_set_video_max_bps API failed \n", __LINE__, API_NAMESPACE);
return false;
}
nRet = media_format_set_video_avg_bps(g_hMediaFormat, 5);
if (nRet != MEDIA_FORMAT_ERROR_NONE) {
- FPRINTF("[Line : %d][%s] media_format_set_video_avg_bps API failed \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] media_format_set_video_avg_bps API failed \n", __LINE__, API_NAMESPACE);
return false;
}
nRet = media_packet_create_from_tbm_surface(g_hMediaFormat, g_hTBMSurface, NULL, NULL, &g_hMediaPacket);
if (nRet != MEDIA_FORMAT_ERROR_NONE) {
- FPRINTF("[Line : %d][%s] media_packet_create_from_tbm_surface API failed \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] media_packet_create_from_tbm_surface API failed \n", __LINE__, API_NAMESPACE);
return false;
}
CHECK_HANDLE_CLEANUP(g_hMediaPacket, "media_packet_create", DestroyMediaPacket());
nRet = media_packet_get_buffer_data_ptr(g_hMediaPacket, &g_pBufferData);
if (nRet != MEDIA_FORMAT_ERROR_NONE) {
- FPRINTF("[Line : %d][%s] media_packet_get_buffer_data_ptr API failed \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] media_packet_get_buffer_data_ptr API failed \n", __LINE__, API_NAMESPACE);
return false;
}
nRet = media_packet_set_buffer_size(g_hMediaPacket, BUFFERSIZE);
if (nRet != MEDIA_FORMAT_ERROR_NONE) {
- FPRINTF("[Line : %d][%s] media_packet_set_buffer_size API failed \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] media_packet_set_buffer_size API failed \n", __LINE__, API_NAMESPACE);
return false;
}
g_pBufferData = calloc(1, BUFFERSIZE);
bool MediaVisionGetDataPath(char *pAppDataPath)
{
if (NULL == pAppDataPath) {
- FPRINTF("[Line : %d][%s] Null Path provided; Check the input string\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Null Path provided; Check the input string\n", __LINE__, API_NAMESPACE);
return false;
}
pPath = app_get_data_path();
if (NULL == pPath) {
FPRINTF("[Line : %d][%s] Unable to get application data path; "
- "app_get_data_path returned null value \\n",
+ "app_get_data_path returned null value \n",
__LINE__, API_NAMESPACE);
return false;
}
strncpy(pAppDataPath, pPath, PATHLEN - 1);
- FPRINTF("[Line : %d][%s] application data path returned = %s\\n", __LINE__, API_NAMESPACE, pAppDataPath);
+ FPRINTF("[Line : %d][%s] application data path returned = %s\n", __LINE__, API_NAMESPACE, pAppDataPath);
return true;
}
bool MediaVisionAppendToAppDataPath(const char *pInputPath, char *pFinalPath)
{
if ((NULL == pInputPath) || (NULL == pFinalPath)) {
- FPRINTF("[Line : %d][%s] Null Path provided; Check the input string\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Null Path provided; Check the input string\n", __LINE__, API_NAMESPACE);
return false;
}
strncpy(pFinalPath, pAppDataPath, PATHLEN - 1);
strncat(pFinalPath, pInputPath, strlen(pInputPath) + 1);
- FPRINTF("[Line : %d][%s] result path returned = %s\\n", __LINE__, API_NAMESPACE, pFinalPath);
+ FPRINTF("[Line : %d][%s] result path returned = %s\n", __LINE__, API_NAMESPACE, pFinalPath);
return true;
}
int image_load(const char *file_path, mv_source_h source)
{
if (NULL == file_path || NULL == source) {
- FPRINTF("[Line : %d][%s] File path or source is NULL\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] File path or source is NULL\n", __LINE__, API_NAMESPACE);
return MEDIA_VISION_ERROR_INVALID_PARAMETER;
}
int ret = image_util_decode_create(&hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_create Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_create Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
ret = image_util_decode_set_input_path(hDecoder, file_path);
if (IMAGE_UTIL_ERROR_NONE != ret) {
ret = image_util_decode_destroy(hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
- FPRINTF("[Line : %d][%s] image_util_decode_set_input_path Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_set_input_path Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
ret = image_util_decode_set_colorspace(hDecoder, IMAGE_UTIL_COLORSPACE_RGB888);
if (IMAGE_UTIL_ERROR_NONE != ret) {
ret = image_util_decode_destroy(hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
- FPRINTF("[Line : %d][%s] image_util_decode_set_colorspace Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_set_colorspace Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
ret = image_util_decode_set_output_buffer(hDecoder, &data_buffer);
if (IMAGE_UTIL_ERROR_NONE != ret) {
ret = image_util_decode_destroy(hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
- FPRINTF("[Line : %d][%s] image_util_decode_set_output_buffer Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_set_output_buffer Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
}
ret = image_util_decode_destroy(hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
- FPRINTF("[Line : %d][%s] image_util_decode_run Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_run Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
}
ret = image_util_decode_destroy(hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
- FPRINTF("[Line : %d][%s] Error occured when clearing the source\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Error occured when clearing the source\n", __LINE__, API_NAMESPACE);
return ret;
}
}
ret = image_util_decode_destroy(hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
- FPRINTF("[Line : %d][%s] Error occured when filling the source by buffer\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Error occured when filling the source by buffer\n", __LINE__, API_NAMESPACE);
return ret;
}
}
ret = image_util_decode_destroy(hDecoder);
if (IMAGE_UTIL_ERROR_NONE != ret) {
- FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] image_util_decode_destroy Failed\n", __LINE__, API_NAMESPACE);
return ret;
}
file1 = fopen(fSrcPath, "r");
if (file1 == NULL) {
- FPRINTF("[Line : %d][%s] Cannot open %s for reading\\n", __LINE__, API_NAMESPACE, fSrcPath);
+ FPRINTF("[Line : %d][%s] Cannot open %s for reading\n", __LINE__, API_NAMESPACE, fSrcPath);
return FALSE;
}
file2 = fopen(fDstPath, "r");
if (file2 == NULL) {
- FPRINTF("[Line : %d][%s] Cannot open %s for reading\\n", __LINE__, API_NAMESPACE, fDstPath);
+ FPRINTF("[Line : %d][%s] Cannot open %s for reading\n", __LINE__, API_NAMESPACE, fDstPath);
fclose(file1);
return FALSE;
} else {
}
}
- FPRINTF("[Line : %d][%s] Model files are Not identical\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Model files are Not identical\n", __LINE__, API_NAMESPACE);
fclose(file1);
fclose(file2);
return FALSE;
#define START_TEST_BARCODE \
{ \
- FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
+ FPRINTF("[Line : %d][%s] Starting test : %s\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
if (!g_bMediavisionCreation) { \
FPRINTF("[Line : %d][%s] Precondition of media-vision failed so " \
- "leaving test\\n", \
+ "leaving test\n", \
__LINE__, API_NAMESPACE); \
return 1; \
} else if ((g_bMediavisionCreation == true) && ((false == g_bIsBarcodeDetectionFeatureSupported) || \
(false == g_bIsBarcodeGenerationFeatureSupported))) { \
FPRINTF("[Line : %d][%s] Barcode feature is not supported and api also " \
- "returned not supported so leaving test\\n", \
+ "returned not supported so leaving test\n", \
__LINE__, API_NAMESPACE); \
return 0; \
} \
}
-#define START_TEST_FACE \
- { \
- FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
- if (g_bMismatch) { \
- FPRINTF("[Line : %d][%s] mv_face_recognition_model_create and " \
- "TCTCheckSystemInfoFeatureSupported returned different feature " \
- "for media-vision so leaving test\\n", \
- __LINE__, API_NAMESPACE); \
- return 1; \
- } \
- if (g_bIsFaceRecognitionFeatureSupported == false) { \
- FPRINTF("[Line : %d][%s] Face recognition feature is not supported and " \
- "api also returned not supported so leaving test\\n", \
- __LINE__, API_NAMESPACE); \
- return 0; \
- } \
- if (g_bMediavisionFaceRecognitionModelCreation == false) { \
- FPRINTF("[Line : %d][%s] Precondition of media-vision failed so " \
- "leaving test\\n", \
- __LINE__, API_NAMESPACE); \
- return 1; \
- } \
+#define START_TEST_FACE \
+ { \
+ FPRINTF("[Line : %d][%s] Starting test : %s\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
+ if (g_bMismatch) { \
+ FPRINTF("[Line : %d][%s] mv_face_recognition_model_create and " \
+ "TCTCheckSystemInfoFeatureSupported returned different feature " \
+ "for media-vision so leaving test\n", \
+ __LINE__, API_NAMESPACE); \
+ return 1; \
+ } \
+ if (g_bIsFaceRecognitionFeatureSupported == false) { \
+ FPRINTF("[Line : %d][%s] Face recognition feature is not supported and " \
+ "api also returned not supported so leaving test\n", \
+ __LINE__, API_NAMESPACE); \
+ return 0; \
+ } \
+ if (g_bMediavisionFaceRecognitionModelCreation == false) { \
+ FPRINTF("[Line : %d][%s] Precondition of media-vision failed so " \
+ "leaving test\n", \
+ __LINE__, API_NAMESPACE); \
+ return 1; \
+ } \
}
-#define START_TEST \
- { \
- FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
+#define START_TEST \
+ { \
+ FPRINTF("[Line : %d][%s] Starting test : %s\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
}
-#define START_TEST_IMAGE \
- { \
- FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
- if (g_bIsImageRecognitionFeatureSupported == false) { \
- FPRINTF("[Line : %d][%s] Image recognition feature is not supported " \
- "and api also returned not supported so leaving test\\n", \
- __LINE__, API_NAMESPACE); \
- return 0; \
- } \
+#define START_TEST_IMAGE \
+ { \
+ FPRINTF("[Line : %d][%s] Starting test : %s\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
+ if (g_bIsImageRecognitionFeatureSupported == false) { \
+ FPRINTF("[Line : %d][%s] Image recognition feature is not supported " \
+ "and api also returned not supported so leaving test\n", \
+ __LINE__, API_NAMESPACE); \
+ return 0; \
+ } \
}
-#define START_TEST_SURVEILLANCE \
- { \
- FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
- if (!(g_bIsImageRecognitionFeatureSupported || g_bIsFaceRecognitionFeatureSupported)) { \
- FPRINTF("[Line : %d][%s] Image ,Face recognition feature is not supported " \
- "and api also returned not supported so leaving test\\n", \
- __LINE__, API_NAMESPACE); \
- return 0; \
- } \
+#define START_TEST_SURVEILLANCE \
+ { \
+ FPRINTF("[Line : %d][%s] Starting test : %s\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
+ if (!(g_bIsImageRecognitionFeatureSupported || g_bIsFaceRecognitionFeatureSupported)) { \
+ FPRINTF("[Line : %d][%s] Image ,Face recognition feature is not supported " \
+ "and api also returned not supported so leaving test\n", \
+ __LINE__, API_NAMESPACE); \
+ return 0; \
+ } \
}
-#define START_TEST_ROI_TRACKER \
- { \
- FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
+#define START_TEST_ROI_TRACKER \
+ { \
+ FPRINTF("[Line : %d][%s] Starting test : %s\n", __LINE__, API_NAMESPACE, __FUNCTION__); \
}
#define START_TEST_3D \
{ \
if (Handle == NULL) { \
FPRINTF("[Line : %d][%s] %s failed, error returned = Handle returned " \
- "is NULL\\n", \
+ "is NULL\n", \
__LINE__, API_NAMESPACE, API); \
FreeResource; \
return 1; \
{ \
if (Handle == NULL) { \
FPRINTF("[Line : %d][%s] %s failed, error returned = Handle returned " \
- "is NULL\\n", \
+ "is NULL\n", \
__LINE__, API_NAMESPACE, API); \
return; \
} \
}
-#define PRINT_RESULTNONE_CLEANUP(eCompare, eRetVal, API, Error, FreeResource) \
- { \
- if (eRetVal == eCompare) { \
- if (DEBUG) { \
- FPRINTF("[Line : %d][%s] %s passed\\n", __LINE__, API_NAMESPACE, API); \
- } \
- } else { \
- FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, API, Error, \
- eRetVal); \
- FreeResource; \
- return; \
- } \
+#define PRINT_RESULTNONE_CLEANUP(eCompare, eRetVal, API, Error, FreeResource) \
+ { \
+ if (eRetVal == eCompare) { \
+ if (DEBUG) { \
+ FPRINTF("[Line : %d][%s] %s passed\n", __LINE__, API_NAMESPACE, API); \
+ } \
+ } else { \
+ FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\n", __LINE__, API_NAMESPACE, API, Error, \
+ eRetVal); \
+ FreeResource; \
+ return; \
+ } \
}
-#define PRINT_RESULTNONE(eCompare, eRetVal, API, Error) \
- { \
- if (eRetVal == eCompare) { \
- if (DEBUG) { \
- FPRINTF("[Line : %d][%s] %s passed\\n", __LINE__, API_NAMESPACE, API); \
- } \
- } else { \
- FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, API, Error, \
- eRetVal); \
- return; \
- } \
+#define PRINT_RESULTNONE(eCompare, eRetVal, API, Error) \
+ { \
+ if (eRetVal == eCompare) { \
+ if (DEBUG) { \
+ FPRINTF("[Line : %d][%s] %s passed\n", __LINE__, API_NAMESPACE, API); \
+ } \
+ } else { \
+ FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\n", __LINE__, API_NAMESPACE, API, Error, \
+ eRetVal); \
+ return; \
+ } \
}
#define RUN_POLLING_LOOP \
if (type == STORAGE_TYPE_INTERNAL) {
pInternalStoragePath = (char *) calloc(strlen(path) + 1, sizeof(char));
if (pInternalStoragePath == NULL) {
- FPRINTF("[Line : %d][%s] Memory allocation of pInternalStoragePath failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Memory allocation of pInternalStoragePath failed\n", __LINE__, API_NAMESPACE);
return false;
}
snprintf(pInternalStoragePath, strlen(path) + 1, "%s", path);
track_seq_path = (char *) calloc(strlen(path) + strlen("/res/track/sequence") + 1, sizeof(char));
if (track_seq_path == NULL) {
- FPRINTF("[Line : %d][%s] Memory allocation of track_seq_path failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Memory allocation of track_seq_path failed\n", __LINE__, API_NAMESPACE);
return false;
}
snprintf(track_seq_path, strlen(path) + strlen("/res/track/sequence") + 1, "%s/res/track/sequence", path);
track_prep_frame_path = (char *) calloc(strlen(path) + strlen("/res/track/sequence/01.jpg") + 1, sizeof(char));
if (track_prep_frame_path == NULL) {
FPRINTF("[Line : %d][%s] Memory allocation of track_prep_frame_path "
- "failed\\n",
+ "failed\n",
__LINE__, API_NAMESPACE);
return false;
}
int number_of_faces, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Callback Invoked\\n", __LINE__, API_NAMESPACE, "MvFaceDetectedCB");
+ FPRINTF("[Line : %d][%s] Callback Invoked\n", __LINE__, API_NAMESPACE, "MvFaceDetectedCB");
#endif
if (user_data == NULL) {
- FPRINTF("[Line : %d][%s] User Data not correct in callback\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] User Data not correct in callback\n", __LINE__, API_NAMESPACE);
QuitGmainLoop();
return;
}
double confidence, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Callback Invoked\\n", __LINE__, API_NAMESPACE, "MvFaceDetectedCB");
+ FPRINTF("[Line : %d][%s] Callback Invoked\n", __LINE__, API_NAMESPACE, "MvFaceDetectedCB");
#endif
if (user_data != NULL) {
bool *is_called = (bool *) user_data;
}
if (face_location) {
FPRINTF("[Line : %d][%s] Face has been recognized as face [%i] with "
- "confidence %.2f\\n",
+ "confidence %.2f\n",
__LINE__, API_NAMESPACE, *face_label, confidence);
} else {
- FPRINTF("[Line : %d][%s] Face wasn't recognized\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Face wasn't recognized\n", __LINE__, API_NAMESPACE);
}
}
mv_quadrangle_s *location, double confidence, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Callback Invoked\\n", __LINE__, API_NAMESPACE, "MvTrackCB");
+ FPRINTF("[Line : %d][%s] Callback Invoked\n", __LINE__, API_NAMESPACE, "MvTrackCB");
#endif
if (NULL != user_data) {
- FPRINTF("[Line : %d][%s] Track on %s\\n", __LINE__, API_NAMESPACE, (char *) user_data);
+ FPRINTF("[Line : %d][%s] Track on %s\n", __LINE__, API_NAMESPACE, (char *) user_data);
} else {
return;
}
if (NULL != location) {
FPRINTF("[Line : %d][%s] Face tracked to the location bounded by "
- "(%i, %i)-(%i, %i)-(%i, %i)-(%i, %i); confidence: %f\\n",
+ "(%i, %i)-(%i, %i)-(%i, %i)-(%i, %i); confidence: %f\n",
__LINE__, API_NAMESPACE, location->points[0].x, location->points[0].y, location->points[1].x,
location->points[1].y, location->points[2].x, location->points[2].y, location->points[3].x,
location->points[3].y, confidence);
} else if (!lost_flag) {
- FPRINTF("[Line : %d][%s] Tracker has lost the face\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Tracker has lost the face\n", __LINE__, API_NAMESPACE);
lost_flag = true;
}
}
mv_face_eye_condition_e eye_condition, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s]Callback Invoked\\n", __LINE__, API_NAMESPACE, "MvEyeConditionCB");
+ FPRINTF("[Line : %d][%s]Callback Invoked\n", __LINE__, API_NAMESPACE, "MvEyeConditionCB");
#endif
mv_face_eye_condition_e *expected = (mv_face_eye_condition_e *) user_data;
if (*expected != MV_FACE_EYES_NOT_FOUND || *expected != MV_FACE_EYES_OPEN) {
- FPRINTF("[Line : %d][%s] Wrong value of variable expected\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Wrong value of variable expected\n", __LINE__, API_NAMESPACE);
return;
}
}
mv_face_facial_expression_e facial_expression, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Callback Invoked\\n", __LINE__, API_NAMESPACE, "MvFaceExpressionCB");
+ FPRINTF("[Line : %d][%s] Callback Invoked\n", __LINE__, API_NAMESPACE, "MvFaceExpressionCB");
#endif
mv_face_facial_expression_e *expected = (mv_face_facial_expression_e *) user_data;
if (*expected != MV_FACE_NEUTRAL) {
- FPRINTF("[Line : %d][%s] Wrong value of variable expected\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Wrong value of variable expected\n", __LINE__, API_NAMESPACE);
return;
}
}
int nRet = mv_face_recognition_model_create(&g_hRecognitionModel);
if (false == g_bIsFaceRecognitionFeatureSupported) {
if (nRet != MEDIA_VISION_ERROR_NOT_SUPPORTED) {
- FPRINTF("\\n [Line : %d] [%s] mv_face_recognition_model_create failed, "
+ FPRINTF("\n [Line : %d] [%s] mv_face_recognition_model_create failed, "
"expected return = MEDIA_VISION_ERROR_NOT_SUPPORTED, value "
"returned = %s ",
__LINE__, API_NAMESPACE, MediaVisionGetError(nRet));
}
return;
} else {
- FPRINTF("\\n [Line : %d] [%s] mv_face_recognition_model_create, value "
+ FPRINTF("\n [Line : %d] [%s] mv_face_recognition_model_create, value "
"returned = %s ",
__LINE__, API_NAMESPACE, MediaVisionGetError(nRet));
CHECK_HANDLE_NONE(g_hRecognitionModel, "mv_face_recognition_model_create");
if (!(g_bIsFaceRecognitionFeatureSupported &&
(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported))) {
FPRINTF("[Line : %d][%s] Bar code, face and barcode feature is not "
- "supported and api also returned not supported so leaving test\\n",
+ "supported and api also returned not supported so leaving test\n",
__LINE__, API_NAMESPACE);
return 0;
}
START_TEST_FACE;
if (!(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported)) {
- FPRINTF("[Line : %d][%s] Bar code feature is not supported\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Bar code feature is not supported\n", __LINE__, API_NAMESPACE);
return 0;
}
int nRet = -1;
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFXTREC, pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
START_TEST_FACE;
if (!(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported)) {
- FPRINTF("[Line : %d][%s] Bar code is not supported \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Bar code is not supported \n", __LINE__, API_NAMESPACE);
return 0;
}
int nRet = -1;
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFXNEUT, pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
if (!(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported)) {
FPRINTF("[Line : %d][%s] Bar code, face feature is not supported and api "
- "also returned not supported so leaving test\\n",
+ "also returned not supported so leaving test\n",
__LINE__, API_NAMESPACE);
return 0;
}
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFX01, pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
START_TEST_FACE;
if (!(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported)) {
- FPRINTF("[Line : %d][%s] Bar code feature is not supported\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Bar code feature is not supported\n", __LINE__, API_NAMESPACE);
return 0;
}
int nRet = -1;
START_TEST_FACE;
if (!(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported)) {
- FPRINTF("[Line : %d][%s] Bar code feature is not supported\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Bar code feature is not supported\n", __LINE__, API_NAMESPACE);
return 0;
}
int nRet = -1;
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFX09, pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
nRet = mv_face_recognition_model_query_labels(g_hRecognitionModel, &nlabels, &labels_n);
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "mv_face_recognition_model_query_labels", MediaVisionGetError(nRet));
if (0 != labels_n) {
- FPRINTF("[Line : %d][%s] mv_face_recognition_model_query_labels failed\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] mv_face_recognition_model_query_labels failed\n", __LINE__, API_NAMESPACE);
return 1;
}
if (g_bIsFaceRecognitionFeatureSupported == false) {
FPRINTF("[Line : %d][%s] Face recognition feature is not supported and api "
- "also returned not supported so leaving test\\n",
+ "also returned not supported so leaving test\n",
__LINE__, API_NAMESPACE);
return 0;
}
if (!(g_bIsFaceRecognitionFeatureSupported &&
(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported))) {
FPRINTF("[Line : %d][%s] face and barcode feature is not supported and api "
- "also returned not supported so leaving test\\n",
+ "also returned not supported so leaving test\n",
__LINE__, API_NAMESPACE);
return 0;
}
if (g_bIsFaceRecognitionFeatureSupported == false) {
FPRINTF("[Line : %d][%s] Face recognition feature is not supported and api "
- "also returned not supported so leaving test\\n",
+ "also returned not supported so leaving test\n",
__LINE__, API_NAMESPACE);
return 0;
}
0,
};
if (false == MediaVisionAppendToAppDataPath("test_src_model", pszFilePath_s)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
0,
};
if (false == MediaVisionAppendToAppDataPath("test_dst_model", pszFilePath_d)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
bool bCompareModels = checkModelFile(pszFilePath_s, pszFilePath_d);
if (!bCompareModels) {
- FPRINTF("[Line : %d][%s] models are not same\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] models are not same\n", __LINE__, API_NAMESPACE);
return 1;
}
if (!(g_bIsFaceRecognitionFeatureSupported &&
(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported))) {
FPRINTF("[Line : %d][%s] Bar code, face and barcode feature is not "
- "supported and api also returned not supported so leaving test\\n",
+ "supported and api also returned not supported so leaving test\n",
__LINE__, API_NAMESPACE);
return 0;
}
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFX01, pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
if (g_bIsFaceRecognitionFeatureSupported == false) {
FPRINTF("[Line : %d][%s] Face recognition feature is not supported and api "
- "also returned not supported so leaving test\\n",
+ "also returned not supported so leaving test\n",
__LINE__, API_NAMESPACE);
return 0;
}
0,
};
if (false == MediaVisionAppendToAppDataPath("test_trk_model", pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
if (!(g_bIsFaceRecognitionFeatureSupported &&
(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported))) {
FPRINTF("[Line : %d][%s] Bar code, face and barcode feature is not "
- "supported and api also returned not supported so leaving test\\n",
+ "supported and api also returned not supported so leaving test\n",
__LINE__, API_NAMESPACE);
return 0;
}
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFXTREC, pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
nRet = mv_face_recognize(source, recognition_model, NULL, NULL, MvFaceRecognizedCB, &is_called);
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "mv_face_recognize", MediaVisionGetError(nRet));
if (false == is_called) {
- FPRINTF("[Line : %d][%s] unable to recognize face\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to recognize face\n", __LINE__, API_NAMESPACE);
return 1;
}
if (!(g_bIsFaceRecognitionFeatureSupported &&
(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported))) {
FPRINTF("[Line : %d][%s] Bar code, face and barcode feature is not "
- "supported and api also returned not supported so leaving test\\n",
+ "supported and api also returned not supported so leaving test\n",
__LINE__, API_NAMESPACE);
return 0;
}
}
if (1 >= frames_counter) {
- FPRINTF("[Line : %d][%s] Value is not lower than %d \\n", __LINE__, API_NAMESPACE, frames_counter);
+ FPRINTF("[Line : %d][%s] Value is not lower than %d \n", __LINE__, API_NAMESPACE, frames_counter);
free(frames);
return 1;
}
- FPRINTF("[Line : %d][%s] frames_counter %i\\n", __LINE__, API_NAMESPACE, frames_counter);
+ FPRINTF("[Line : %d][%s] frames_counter %i\n", __LINE__, API_NAMESPACE, frames_counter);
qsort(&frames[0], frames_counter, 1024, strCompare);
for (; idx < frames_counter; ++idx) {
if (!(g_bIsFaceRecognitionFeatureSupported &&
(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported))) {
FPRINTF("[Line : %d][%s] Bar code, face and barcode feature is not "
- "supported and api also returned not supported so leaving test\\n",
+ "supported and api also returned not supported so leaving test\n",
__LINE__, API_NAMESPACE);
return 0;
}
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFX01, pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
if (!(g_bIsFaceRecognitionFeatureSupported &&
(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported))) {
FPRINTF("[Line : %d][%s] Bar code, face and barcode feature is not "
- "supported and api also returned not supported so leaving test\\n",
+ "supported and api also returned not supported so leaving test\n",
__LINE__, API_NAMESPACE);
return 0;
}
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFXNEUT, pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
mv_quadrangle_s **locations, unsigned int number_of_objects, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s]Callback Invoked\\n", __LINE__, API_NAMESPACE, "MvRecognizedCB");
+ FPRINTF("[Line : %d][%s]Callback Invoked\n", __LINE__, API_NAMESPACE, "MvRecognizedCB");
#endif
if (NULL == user_data) {
- FPRINTF("[Line : %d][%s] USer data is null\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] USer data is null\n", __LINE__, API_NAMESPACE);
return;
}
}
mv_quadrangle_s *location, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s]Callback Invoked\\n", __LINE__, API_NAMESPACE, "MvTrackedCB");
+ FPRINTF("[Line : %d][%s]Callback Invoked\n", __LINE__, API_NAMESPACE, "MvTrackedCB");
#endif
if (NULL == user_data) {
- FPRINTF("[Line : %d][%s] User Data not correct in callback\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] User Data not correct in callback\n", __LINE__, API_NAMESPACE);
return;
}
}
START_TEST_IMAGE;
if (!(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported)) {
- FPRINTF("[Line : %d][%s] Bar code feature is not supported\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Bar code feature is not supported\n", __LINE__, API_NAMESPACE);
return 0;
}
int nRet = -1;
nRet = mv_image_object_get_recognition_rate(hImageObject, &recognition_rate);
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "mv_image_object_get_recognition_rate", MediaVisionGetError(nRet));
if (0 != recognition_rate) {
- FPRINTF("[Line : %d][%s] recognition_rate not valid!!!\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] recognition_rate not valid!!!\n", __LINE__, API_NAMESPACE);
return 1;
}
nRet = mv_image_object_destroy(hImageObject);
nRet = mv_image_object_get_label(hImageObject, &label);
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "mv_image_object_get_label", MediaVisionGetError(nRet));
if (test_label != label) {
- FPRINTF("[Line : %d][%s] Values of set get not matched!!!\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Values of set get not matched!!!\n", __LINE__, API_NAMESPACE);
return 1;
}
0,
};
if (false == MediaVisionAppendToAppDataPath("test_src_model", pszFilePath_s)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
0,
};
if (false == MediaVisionAppendToAppDataPath("test_src_model", pszFilePath_d)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
bool compare_models = checkModelFile(pszFilePath_s, pszFilePath_d);
if (!compare_models) {
- FPRINTF("[Line : %d][%s] model not matches\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] model not matches\n", __LINE__, API_NAMESPACE);
return 1;
}
0,
};
if (false == MediaVisionAppendToAppDataPath(image_object_serizalization_path, pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
START_TEST_IMAGE;
if (!(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported)) {
- FPRINTF("[Line : %d][%s] Bar code feature is not supported\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Bar code feature is not supported\n", __LINE__, API_NAMESPACE);
return 0;
}
int nRet = -1;
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFXTAR, pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
START_TEST_IMAGE;
if (!(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported)) {
- FPRINTF("[Line : %d][%s] Bar code feature is not supported\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Bar code feature is not supported\n", __LINE__, API_NAMESPACE);
return 0;
}
int nRet = -1;
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFXTAR, pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
0,
};
if (false == MediaVisionAppendToAppDataPath("test_img_s", pszFilePath_s)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
0,
};
if (false == MediaVisionAppendToAppDataPath("test_img_d", pszFilePath_d)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
bool compare_models = checkModelFile(pszFilePath_s, pszFilePath_d);
if (TRUE != compare_models) {
- FPRINTF("[Line : %d][%s] model not matches\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] model not matches\n", __LINE__, API_NAMESPACE);
return 1;
}
0,
};
if (false == MediaVisionAppendToAppDataPath("tracking_model.txt", pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
START_TEST_IMAGE;
if (!(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported)) {
- FPRINTF("[Line : %d][%s] Bar code feature is not supported\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Bar code feature is not supported\n", __LINE__, API_NAMESPACE);
return 0;
}
int nRet = -1;
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFXTAR, pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFXSCENE, pszFilePathImage)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
START_TEST_IMAGE;
if (!(g_bIsBarcodeGenerationFeatureSupported || g_bIsBarcodeDetectionFeatureSupported)) {
- FPRINTF("[Line : %d][%s] Bar code feature is not supported\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Bar code feature is not supported\n", __LINE__, API_NAMESPACE);
return 0;
};
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFXTAR, pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFXSCENE, pszFilePathImage)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
static void MvROITrackedCB(mv_source_h source, mv_rectangle_s roi, void *user_data)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Callback Invoked\\n", __LINE__, API_NAMESPACE, "MvROITrackedCB");
+ FPRINTF("[Line : %d][%s] Callback Invoked\n", __LINE__, API_NAMESPACE, "MvROITrackedCB");
#endif
g_CallBackHit = true;
void ITs_media_vision_roi_tracker_startup(void)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside ITs_media_vision_roi_tracker_startup \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside ITs_media_vision_roi_tracker_startup \n", __LINE__, API_NAMESPACE);
#endif
struct stat stBuff;
if (stat(ERR_LOG, &stBuff) == 0) {
};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
- FPRINTF("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\\n", __LINE__, API_NAMESPACE, pszValue);
+ FPRINTF("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\n", __LINE__, API_NAMESPACE, pszValue);
gROITrackerExampleDir = (char *) calloc(strlen(pszValue) + strlen("/res/res/roi_tracker") + 1, sizeof(char));
snprintf(gROITrackerExampleDir, strlen(pszValue) + strlen("/res/res/roi_tracker") + 1, "%s/res/res/roi_tracker",
pszValue);
} else {
FPRINTF("[Line : %d][%s] GetValueForTCTSetting returned error for "
- "'DEVICE_SUITE_TARGET_30'\\n",
+ "'DEVICE_SUITE_TARGET_30'\n",
__LINE__, API_NAMESPACE);
}
return;
void ITs_media_vision_roi_tracker_cleanup(void)
{
#if DEBUG
- FPRINTF("[Line : %d][%s] Inside ITs_media_vision_roi_tracker_cleanup \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Inside ITs_media_vision_roi_tracker_cleanup \n", __LINE__, API_NAMESPACE);
#endif
if (gROITrackerExampleDir != NULL) {
free(gROITrackerExampleDir);
nRet = mv_roi_tracker_prepare(g_hTrackerModel, 50, 50, 50, 50);
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "mv_roi_tracker_prepare", MediaVisionGetError(nRet));
- FPRINTF("[Line : %d][%s] TC run successfully\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] TC run successfully\n", __LINE__, API_NAMESPACE);
return 0;
}
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "mv_roi_tracker_perform", MediaVisionGetError(nRet));
if (g_CallBackHit == false) {
- FPRINTF("[Line : %d][%s] Callback doest not hit\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Callback doest not hit\n", __LINE__, API_NAMESPACE);
return 1;
}
- FPRINTF("[Line : %d][%s] TC run successfully\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] TC run successfully\n", __LINE__, API_NAMESPACE);
return 0;
}
int nRet = mv_surveillance_get_result_value(event_result, MV_SURVEILLANCE_MOVEMENT_NUMBER_OF_REGIONS,
&number_of_movement_regions);
if (nRet == MEDIA_VISION_ERROR_NONE) {
- FPRINTF("[Line : %d][%s] %s passed\\n", __LINE__, API_NAMESPACE, "mv_surveillance_get_result_value");
+ FPRINTF("[Line : %d][%s] %s passed\n", __LINE__, API_NAMESPACE, "mv_surveillance_get_result_value");
} else {
- FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE,
+ FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\n", __LINE__, API_NAMESPACE,
"mv_surveillance_get_result_value", MediaVisionGetError(nRet), nRet);
}
FPRINTF("\nNumber of movement regions is %d \n", number_of_movement_regions);
// target api
nRet = mv_surveillance_get_result_value(event_result, MV_SURVEILLANCE_MOVEMENT_REGIONS, movement_regions);
if (nRet == MEDIA_VISION_ERROR_NONE) {
- FPRINTF("[Line : %d][%s] %s passed\\n", __LINE__, API_NAMESPACE, "mv_surveillance_get_result_value");
+ FPRINTF("[Line : %d][%s] %s passed\n", __LINE__, API_NAMESPACE, "mv_surveillance_get_result_value");
FREE_MEMORY(movement_regions);
} else {
- FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE,
+ FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\n", __LINE__, API_NAMESPACE,
"mv_surveillance_get_result_value", MediaVisionGetError(nRet), nRet);
FREE_MEMORY(movement_regions);
}
MediaVisionGetError(nRet), FREE_MEMORY(event_type));
if (strncmp(event_type, MV_SURVEILLANCE_EVENT_TYPE_MOVEMENT_DETECTED, MAX_EVENT_TYPE_LEN) != 0) {
- FPRINTF("event_type != MV_SURVEILLANCE_EVENT_TYPE_MOVEMENT_DETECTED \\n");
+ FPRINTF("event_type != MV_SURVEILLANCE_EVENT_TYPE_MOVEMENT_DETECTED \n");
nRet = mv_surveillance_event_trigger_destroy(handle);
PRINT_RESULT(MEDIA_VISION_ERROR_NONE, nRet, "mv_surveillance_event_trigger_destroy", MediaVisionGetError(nRet));
free(event_type);
FREE_MEMORY(nRoi));
if (nRoiPoints != nGetRoiPoints) {
- FPRINTF("[Line : %d][%s] Values of set get not matched!!!\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Values of set get not matched!!!\n", __LINE__, API_NAMESPACE);
nRet = mv_surveillance_event_trigger_destroy(handle);
PRINT_RESULT_CLEANUP(MEDIA_VISION_ERROR_NONE, nRet, "mv_surveillance_event_trigger_destroy",
MediaVisionGetError(nRet), FREE_MEMORY(nGetRoi);
0,
};
if (false == MediaVisionAppendToAppDataPath(PATHPFX, pszFilePath)) {
- FPRINTF("[Line : %d][%s] unable to get the app data path\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] unable to get the app data path\n", __LINE__, API_NAMESPACE);
return 1;
}
int nRet = mv_surveillance_event_trigger_create(MV_SURVEILLANCE_EVENT_TYPE_MOVEMENT_DETECTED, &handle);
MediaVisionGetError(nRet));
if (!g_bforeach_event_typeCompletedCallback) {
FPRINTF("[Line : %d][%s] foreach_event_type_cb failed, error returned = "
- "callback not invoked\\n",
+ "callback not invoked\n",
__LINE__, API_NAMESPACE);
return 1;
} else {
#if DEBUG
FPRINTF("[Line : %d][%s] mv_surveillance_foreach_supported_event_type is "
- "successful\\n",
+ "successful\n",
__LINE__, API_NAMESPACE);
#endif
}
if (nRet != APP_CONTROL_ERROR_NONE) {
dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] app_control_get_extra_data returns error = %d", __FUNCTION__,
__LINE__, nRet);
- PRINT_UTC_LOG("\\n[%s][Line : %d]Unable to fetch test case name: "
- "app_control_get_extra_data API call fails\\n",
+ PRINT_UTC_LOG("\n[%s][Line : %d]Unable to fetch test case name: "
+ "app_control_get_extra_data API call fails\n",
__FILE__, __LINE__);
PRINT_TC_RESULT("%d", 1);
FREE_MEMORY_TC(pszGetTCName);
dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] Unable to execute %s : Unknown Test Case Name", __FUNCTION__, __LINE__,
pszGetTCName);
- PRINT_UTC_LOG("\\n[%s][Line : %d]Unable to execute %s : Unknown Test Case Name\\n", __FILE__, __LINE__,
- pszGetTCName);
+ PRINT_UTC_LOG("\n[%s][Line : %d]Unable to execute %s : Unknown Test Case Name\n", __FILE__, __LINE__, pszGetTCName);
PRINT_TC_RESULT("%d", 1);
FREE_MEMORY_TC(pszGetTCName);
return;
ret = ui_app_main(argc, argv, &event_callback, NULL);
if (ret != APP_ERROR_NONE) {
dlog_print(DLOG_ERROR, "NativeTCT", "Application ui_app_main call gets failed. err = %d", ret);
- PRINT_UTC_LOG("\\n[%s][Line : %d]Application ui_app_main call gets failed. "
- "err = %d\\n",
+ PRINT_UTC_LOG("\n[%s][Line : %d]Application ui_app_main call gets failed. "
+ "err = %d\n",
__FILE__, __LINE__, ret);
PRINT_TC_RESULT("%d", 1);
return ret;
if (nRet != APP_CONTROL_ERROR_NONE) {
dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] app_control_get_extra_data returns error = %d", __FUNCTION__,
__LINE__, nRet);
- PRINT_UTC_LOG("\\n[%s][Line : %d]Unable to fetch test case name: "
- "app_control_get_extra_data API call fails\\n",
+ PRINT_UTC_LOG("\n[%s][Line : %d]Unable to fetch test case name: "
+ "app_control_get_extra_data API call fails\n",
__FILE__, __LINE__);
PRINT_TC_RESULT("%d", 1);
FREE_MEMORY_TC(pszGetTCName);
dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] Unable to execute %s : Unknown Test Case Name", __FUNCTION__, __LINE__,
pszGetTCName);
- PRINT_UTC_LOG("\\n[%s][Line : %d]Unable to execute %s : Unknown Test Case Name\\n", __FILE__, __LINE__,
- pszGetTCName);
+ PRINT_UTC_LOG("\n[%s][Line : %d]Unable to execute %s : Unknown Test Case Name\n", __FILE__, __LINE__, pszGetTCName);
PRINT_TC_RESULT("%d", 1);
FREE_MEMORY_TC(pszGetTCName);
return;
ret = ui_app_main(argc, argv, &event_callback, NULL);
if (ret != APP_ERROR_NONE) {
dlog_print(DLOG_ERROR, "NativeTCT", "Application ui_app_main call gets failed. err = %d", ret);
- PRINT_UTC_LOG("\\n[%s][Line : %d]Application ui_app_main call gets failed. "
- "err = %d\\n",
+ PRINT_UTC_LOG("\n[%s][Line : %d]Application ui_app_main call gets failed. "
+ "err = %d\n",
__FILE__, __LINE__, ret);
PRINT_TC_RESULT("%d", 1);
return ret;
return MEDIA_VISION_ERROR_INVALID_OPERATION;
}
- PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_PHYSICAL_STORAGE_30' Values Received %s\\n", __LINE__, API_NAMESPACE,
+ PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_PHYSICAL_STORAGE_30' Values Received %s\n", __LINE__, API_NAMESPACE,
pszValue);
p1_face_examples_dir =
0,
};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
- PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\\n", __LINE__, API_NAMESPACE,
+ PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\n", __LINE__, API_NAMESPACE,
pszValue);
gInferenceExampleDir = (char *) calloc(strlen(pszValue) + strlen("/res/res/inference") + 1, sizeof(char));
} else {
PRINT_UTC_LOG("[Line : %d][%s] GetValueForTCTSetting returned error for "
- "'DEVICE_SUITE_TARGET_30'\\n",
+ "'DEVICE_SUITE_TARGET_30'\n",
__LINE__, API_NAMESPACE);
}
if (nRet != APP_CONTROL_ERROR_NONE) {
dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] app_control_get_extra_data returns error = %d", __FUNCTION__,
__LINE__, nRet);
- PRINT_UTC_LOG("\\n[%s][Line : %d]Unable to fetch test case name: "
- "app_control_get_extra_data API call fails\\n",
+ PRINT_UTC_LOG("\n[%s][Line : %d]Unable to fetch test case name: "
+ "app_control_get_extra_data API call fails\n",
__FILE__, __LINE__);
PRINT_TC_RESULT("%d", 1);
FREE_MEMORY_TC(pszGetTCName);
dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] Unable to execute %s : Unknown Test Case Name", __FUNCTION__, __LINE__,
pszGetTCName);
- PRINT_UTC_LOG("\\n[%s][Line : %d]Unable to execute %s : Unknown Test Case Name\\n", __FILE__, __LINE__,
- pszGetTCName);
+ PRINT_UTC_LOG("\n[%s][Line : %d]Unable to execute %s : Unknown Test Case Name\n", __FILE__, __LINE__, pszGetTCName);
PRINT_TC_RESULT("%d", 1);
FREE_MEMORY_TC(pszGetTCName);
return;
ret = ui_app_main(argc, argv, &event_callback, NULL);
if (ret != APP_ERROR_NONE) {
dlog_print(DLOG_ERROR, "NativeTCT", "Application ui_app_main call gets failed. err = %d", ret);
- PRINT_UTC_LOG("\\n[%s][Line : %d]Application ui_app_main call gets failed. "
- "err = %d\\n",
+ PRINT_UTC_LOG("\n[%s][Line : %d]Application ui_app_main call gets failed. "
+ "err = %d\n",
__FILE__, __LINE__, ret);
PRINT_TC_RESULT("%d", 1);
return ret;
0,
};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
- PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\\n", __LINE__, API_NAMESPACE,
+ PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\n", __LINE__, API_NAMESPACE,
pszValue);
gMv3dExampleDir = (char *) calloc(strlen(pszValue) + strlen("/res/res/3d") + 1, sizeof(char));
} else {
PRINT_UTC_LOG("[Line : %d][%s] GetValueForTCTSetting returned error for "
- "'DEVICE_SUITE_TARGET_30'\\n",
+ "'DEVICE_SUITE_TARGET_30'\n",
__LINE__, API_NAMESPACE);
return;
}
0,
};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
- PRINT_UTC_LOG("[Line: %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received = %s\\n", __LINE__, API_NAMESPACE,
+ PRINT_UTC_LOG("[Line: %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received = %s\n", __LINE__, API_NAMESPACE,
pszValue);
unsigned int path_size = strlen(pszValue) + sizeof(char) * 9;
test_res_path = (char *) calloc(path_size, sizeof(char));
snprintf(test_data_path, path_size, "%s/data", pszValue);
} else {
PRINT_UTC_LOG("[Line: %d][%s] GetValueForTCTSetting returned error for "
- "'DEVICE_SUITE_TARGET_30'\\n",
+ "'DEVICE_SUITE_TARGET_30'\n",
__LINE__, API_NAMESPACE);
return;
}
0,
};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
- PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\\n", __LINE__, API_NAMESPACE,
+ PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\n", __LINE__, API_NAMESPACE,
pszValue);
pInternalStoragePath = (char *) calloc(strlen(pszValue) + 5, sizeof(char));
"%s/res/res/model/test_rec_model", pszValue);
} else {
PRINT_UTC_LOG("[Line : %d][%s] GetValueForTCTSetting returned error for "
- "'DEVICE_SUITE_TARGET_30'\\n",
+ "'DEVICE_SUITE_TARGET_30'\n",
__LINE__, API_NAMESPACE);
return;
}
0,
};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
- PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\\n", __LINE__, API_NAMESPACE,
+ PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\n", __LINE__, API_NAMESPACE,
pszValue);
target_image_source_path =
(char *) calloc(strlen(pszValue) + strlen("/res/res/image/target.jpg") + 1, sizeof(char));
snprintf(pInternalDataPath, strlen(pszValue) + strlen("/data") + 1, "%s/data", pszValue);
} else {
PRINT_UTC_LOG("[Line : %d][%s] GetValueForTCTSetting returned error for "
- "'DEVICE_SUITE_TARGET_30'\\n",
+ "'DEVICE_SUITE_TARGET_30'\n",
__LINE__, API_NAMESPACE);
return;
}
0,
};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
- PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\\n", __LINE__, API_NAMESPACE,
+ PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\n", __LINE__, API_NAMESPACE,
pszValue);
gROITrackerExampleDir = (char *) calloc(strlen(pszValue) + strlen("/res/res/roi_tracker") + 1, sizeof(char));
} else {
PRINT_UTC_LOG("[Line : %d][%s] GetValueForTCTSetting returned error for "
- "'DEVICE_SUITE_TARGET_30'\\n",
+ "'DEVICE_SUITE_TARGET_30'\n",
__LINE__, API_NAMESPACE);
}
0,
};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
- PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\\n", __LINE__, API_NAMESPACE,
+ PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\n", __LINE__, API_NAMESPACE,
pszValue);
pInternalStoragePath = (char *) calloc(strlen(pszValue) + 1, sizeof(char));
snprintf(pInternalStoragePath, strlen(pszValue) + 1, "%s", pszValue);
} else {
PRINT_UTC_LOG("[Line : %d][%s] GetValueForTCTSetting returned error for "
- "'DEVICE_SUITE_TARGET_30'\\n",
+ "'DEVICE_SUITE_TARGET_30'\n",
__LINE__, API_NAMESPACE);
return;
}