[TCT][mediavision][Non-ACR] Fix wrong print new line 94/301194/2
authorKwanghoon Son <k.son@samsung.com>
Fri, 10 Nov 2023 06:50:02 +0000 (15:50 +0900)
committerKwanghoon Son <k.son@samsung.com>
Fri, 10 Nov 2023 06:51:08 +0000 (15:51 +0900)
Change \\n to \n for proper new line.

Change-Id: I2b14f23adbfd14803bd0ba4b856be1ddaab3f671
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
24 files changed:
src/itc/media-vision-dl/ITs-media-vision-common.c
src/itc/media-vision-dl/ITs-media-vision-common.h
src/itc/media-vision-dl/ITs-media-vision-face-recognition.c
src/itc/media-vision-dl/ITs-media-vision-inference.c
src/itc/media-vision-dl/tct-media-vision-dl-native.c
src/itc/media-vision/ITs-media-vision-3d.c
src/itc/media-vision/ITs-media-vision-barcode.c
src/itc/media-vision/ITs-media-vision-common.c
src/itc/media-vision/ITs-media-vision-common.h
src/itc/media-vision/ITs-media-vision-face.c
src/itc/media-vision/ITs-media-vision-image.c
src/itc/media-vision/ITs-media-vision-roi-tracker.c
src/itc/media-vision/ITs-media-vision-surveillance.c
src/itc/media-vision/tct-media-vision-native.c
src/utc/capi-media-vision-dl/tct-capi-media-vision-dl-core.c
src/utc/capi-media-vision-dl/utc-mv_face_recognition.c
src/utc/capi-media-vision-dl/utc-mv_inference.c
src/utc/capi-media-vision/tct-capi-media-vision-core.c
src/utc/capi-media-vision/utc-mv_3d.c
src/utc/capi-media-vision/utc-mv_barcode.c
src/utc/capi-media-vision/utc-mv_face.c
src/utc/capi-media-vision/utc-mv_image.c
src/utc/capi-media-vision/utc-mv_roi_tracker.c
src/utc/capi-media-vision/utc-mv_surveillance.c

index 240663a2ee023467f7b234f423c73b8bb2ccb415..d581fef97b02e6c17930b9b6b86227d56425e632 100644 (file)
@@ -116,7 +116,7 @@ char *ImageUtilGetError(int nRet)
 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;
        }
 
@@ -128,37 +128,37 @@ int image_load(const char *file_path, mv_source_h source)
 
        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;
        }
 
@@ -170,10 +170,10 @@ int image_load(const char *file_path, mv_source_h source)
                }
                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;
        }
 
@@ -187,10 +187,10 @@ int image_load(const char *file_path, mv_source_h source)
                }
                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;
        }
 
@@ -202,10 +202,10 @@ int image_load(const char *file_path, mv_source_h source)
                }
                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;
        }
 
@@ -215,7 +215,7 @@ int image_load(const char *file_path, mv_source_h source)
        }
        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;
        }
 
index 56d4b3e1c175332638455eaee3a035a84fb255bd..91fb27076502c559863cee798a4a3b0cb3a7d759 100644 (file)
 
 #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
index b76960166c710ed264a5029f32257236deda34a8..7bf77e9b3e921a5bb6e4e2d845730b6fcbf6524c 100644 (file)
@@ -44,7 +44,7 @@ static const char *label_names[gMaxLabelCount] = { "p1", "p2" };
 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) {
@@ -61,7 +61,7 @@ void ITs_media_vision_face_recognition_startup(void)
        };
 
        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));
@@ -74,7 +74,7 @@ void ITs_media_vision_face_recognition_startup(void)
                                 "%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);
        }
 
@@ -84,7 +84,7 @@ void ITs_media_vision_face_recognition_startup(void)
                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 "
@@ -95,11 +95,11 @@ void ITs_media_vision_face_recognition_startup(void)
                        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;
@@ -119,7 +119,7 @@ void ITs_media_vision_face_recognition_startup(void)
 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) {
index 11451ade94bf908ed8c7db973f6b96136b453202..97a8d497fb33bc7464036ea4748d508ebf581526 100644 (file)
@@ -298,7 +298,7 @@ static void ImageClassifiyCB(mv_source_h source, int number_of_classes, const in
                                                         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;
@@ -316,7 +316,7 @@ static void ObjectDetectionCB(mv_source_h source, int number_of_object, const in
                                                          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;
 }
@@ -332,7 +332,7 @@ static void FaceDetectionCB(mv_source_h source, int number_of_faces, const float
                                                        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;
 }
@@ -348,7 +348,7 @@ static void FaceLandmarkDetectionCB(mv_source_h source, int number_of_landmark,
                                                                        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;
 }
@@ -362,7 +362,7 @@ static void FaceLandmarkDetectionCB(mv_source_h source, int number_of_landmark,
 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;
 }
@@ -377,7 +377,7 @@ static bool SupportedInferenceCB(const char *engine, bool supported, void *user_
 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;
 }
@@ -392,7 +392,7 @@ static void PoseLandmarkDetectedCB(mv_source_h source, mv_inference_pose_result_
 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);
@@ -408,7 +408,7 @@ static void GetPoseLandmarkDetectedResultCB(mv_source_h source, mv_inference_pos
 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;
 
@@ -425,7 +425,7 @@ static void GetNumberOfLandmarksCB(mv_source_h source, mv_inference_pose_result_
 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;
@@ -481,7 +481,7 @@ static void GetLandmarkCB(mv_source_h source, mv_inference_pose_result_h result,
 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);
@@ -504,7 +504,7 @@ static void GetPoseCB(mv_source_h source, mv_inference_pose_result_h result, voi
 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;
 
@@ -523,7 +523,7 @@ static void PoseCompareCB(mv_source_h source, mv_inference_pose_result_h result,
 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;
@@ -537,7 +537,7 @@ void ITs_media_vision_inference_startup(void)
                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",
@@ -545,7 +545,7 @@ void ITs_media_vision_inference_startup(void)
 
        } else {
                FPRINTF("[Line : %d][%s] GetValueForTCTSetting returned error for "
-                               "'DEVICE_SUITE_TARGET_30'\\n",
+                               "'DEVICE_SUITE_TARGET_30'\n",
                                __LINE__, API_NAMESPACE);
        }
 
@@ -554,7 +554,7 @@ void ITs_media_vision_inference_startup(void)
                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 "
@@ -565,11 +565,11 @@ void ITs_media_vision_inference_startup(void)
                        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;
@@ -580,7 +580,7 @@ void ITs_media_vision_inference_startup(void)
        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;
        }
@@ -588,7 +588,7 @@ void ITs_media_vision_inference_startup(void)
        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;
        }
@@ -603,7 +603,7 @@ void ITs_media_vision_inference_startup(void)
 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);
@@ -680,7 +680,7 @@ int ITc_mediavision_mv_engine_set_get_array_string_attribute_p(void)
        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;
                }
        }
@@ -1106,7 +1106,7 @@ int ITc_mediavision_mv_inference_get_number_of_poses_p(void)
 
        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;
        }
@@ -1162,7 +1162,7 @@ int ITc_mediavision_mv_inference_get_number_of_landmarks_p(void)
 
        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;
        }
@@ -1266,12 +1266,12 @@ int ITc_mediavision_mv_inference_pose_get_label_p(void)
        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;
        }
 
@@ -1420,7 +1420,7 @@ int ITc_mediavision_mv_pose_compare_p(void)
 
        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;
        }
index f72517bf3dee9659394373571d4e811948e30f82..89c4bde5ed97bcc78abbeebf2a51f18785d6cf05 100644 (file)
@@ -62,8 +62,8 @@ static void app_control(app_control_h app_control, void *data)
        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);
@@ -97,8 +97,7 @@ static void app_control(app_control_h app_control, void *data)
 
        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;
@@ -131,8 +130,8 @@ int main(int argc, char *argv[])
        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;
index 4f076a464dcc605f565e6ca481b03b114e25b0ab..378c2db877be9a9b991af70463b37a5797bc9d8d 100644 (file)
@@ -83,7 +83,7 @@ static void MvDepthCB(mv_source_h source, unsigned short *depth, unsigned int wi
                                          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();
 }
@@ -91,7 +91,7 @@ static void MvDepthCB(mv_source_h source, unsigned short *depth, unsigned int wi
 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];
@@ -133,7 +133,7 @@ void ITs_media_vision_3d_startup(void)
        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;
@@ -141,7 +141,7 @@ void ITs_media_vision_3d_startup(void)
        } 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;
@@ -152,13 +152,13 @@ void ITs_media_vision_3d_startup(void)
                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);
        }
 
@@ -166,7 +166,7 @@ void ITs_media_vision_3d_startup(void)
        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;
        }
@@ -477,7 +477,7 @@ int ITc_media_vision_mv_3d_run_p(void)
        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;
        }
 
@@ -556,7 +556,7 @@ int ITc_media_vision_mv_3d_run_async_p(void)
        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;
        }
 
@@ -635,7 +635,7 @@ int ITc_media_vision_mv_3d_pointcloud_write_file_p(void)
        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",
index 442a9961b54bd01402617e077aacaca9fcf63dfa..2fb4d745e18d59b8820f880de1ad87ca8e059aaa 100644 (file)
@@ -314,20 +314,20 @@ void ParseModelFromSection(JsonObject *jobj, const char *section_name, struct ba
 {
        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;
        }
@@ -342,7 +342,7 @@ void ParseModelFromSection(JsonObject *jobj, const char *section_name, struct ba
                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;
                }
@@ -364,9 +364,9 @@ void LoadModels(const char *conf_file_path)
 
        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);
@@ -376,7 +376,7 @@ void LoadModels(const char *conf_file_path)
        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;
@@ -399,7 +399,7 @@ void LoadModels(const char *conf_file_path)
 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;
        }
 
@@ -465,21 +465,21 @@ bool CreateAndGetEngineAttributes(void)
        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);
@@ -500,21 +500,21 @@ bool CreateAndGetEngineAttributes(void)
 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;
        }
 }
@@ -540,14 +540,14 @@ void ITs_media_vision_barcode_startup(void)
 
        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;
@@ -631,8 +631,8 @@ int ITc_mv_barcode_generate_image_p(void)
                                                                                         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));
                }
        }
@@ -661,7 +661,7 @@ int ITc_mv_barcode_generate_source_p(void)
        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;
@@ -670,7 +670,7 @@ int ITc_mv_barcode_generate_source_p(void)
                                                                                  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));
@@ -700,7 +700,7 @@ int ITc_mv_barcode_detect_p(void)
        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;
        }
 
@@ -709,7 +709,7 @@ int ITc_mv_barcode_detect_p(void)
        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;
@@ -722,7 +722,7 @@ int ITc_mv_barcode_detect_p(void)
                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);
index 5c922bda2cbd84540839ca3037755722fc4ea353..6bfc8abd2263deed31ed8435bcb569fa96bfdd92 100644 (file)
@@ -106,35 +106,35 @@ bool CreateMediaFormat(void)
        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;
        }
 
@@ -182,19 +182,19 @@ bool CreateMediaPacket(void)
 
        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);
@@ -283,7 +283,7 @@ void QuitGmainLoop(void)
 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;
        }
 
@@ -293,14 +293,14 @@ bool MediaVisionGetDataPath(char *pAppDataPath)
        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;
 }
@@ -315,7 +315,7 @@ bool MediaVisionGetDataPath(char *pAppDataPath)
 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;
        }
 
@@ -330,7 +330,7 @@ bool MediaVisionAppendToAppDataPath(const char *pInputPath, char *pFinalPath)
        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;
 }
@@ -373,7 +373,7 @@ char *ImageUtilGetError(int nRet)
 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;
        }
 
@@ -385,37 +385,37 @@ int image_load(const char *file_path, mv_source_h source)
 
        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;
        }
 
@@ -427,10 +427,10 @@ int image_load(const char *file_path, mv_source_h source)
                }
                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;
        }
 
@@ -444,10 +444,10 @@ int image_load(const char *file_path, mv_source_h source)
                }
                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;
        }
 
@@ -459,10 +459,10 @@ int image_load(const char *file_path, mv_source_h source)
                }
                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;
        }
 
@@ -472,7 +472,7 @@ int image_load(const char *file_path, mv_source_h source)
        }
        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;
        }
 
@@ -486,12 +486,12 @@ bool checkModelFile(const char *fSrcPath, const char *fDstPath)
 
        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 {
@@ -510,7 +510,7 @@ bool checkModelFile(const char *fSrcPath, const char *fDstPath)
                }
        }
 
-       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;
index bedead7d13c3d177871d1cf197b0318cd99eecea..a932706495855420240f29b0040eb88ce4ffd5a6 100644 (file)
@@ -103,72 +103,72 @@ mv_point_s g_sPoint;
 
 #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                     \
@@ -189,7 +189,7 @@ mv_point_s g_sPoint;
        {                                                                              \
                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;                                                              \
@@ -200,37 +200,37 @@ mv_point_s g_sPoint;
        {                                                                              \
                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                                                      \
index 61c1e55252771ff4e1c13a1cda05bdfed841b753..786997c45c6ec3af5e8f1c21ef1b8d1b48689787 100644 (file)
@@ -34,14 +34,14 @@ static bool storage_device_cb(int storage_id, storage_type_e type, storage_state
        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);
@@ -49,7 +49,7 @@ static bool storage_device_cb(int storage_id, storage_type_e type, storage_state
                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;
                }
@@ -74,11 +74,11 @@ static void MvFaceDetectedCB(mv_source_h source, mv_engine_config_h engine_cfg,
                                                         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;
        }
@@ -101,7 +101,7 @@ static void MvFaceRecognizedCB(mv_source_h source, mv_face_recognition_model_h r
                                                           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;
@@ -109,10 +109,10 @@ static void MvFaceRecognizedCB(mv_source_h source, mv_face_recognition_model_h r
        }
        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);
        }
 }
 
@@ -128,22 +128,22 @@ static void MvTrackCB(mv_source_h source, mv_face_tracking_model_h tracking_mode
                                          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;
        }
 }
@@ -160,12 +160,12 @@ static void MvEyeConditionCB(mv_source_h source, mv_engine_config_h engine_cfg,
                                                         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;
        }
 }
@@ -182,11 +182,11 @@ static void MvFaceExpressionCB(mv_source_h source, mv_engine_config_h engine_cfg
                                                           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;
        }
 }
@@ -203,7 +203,7 @@ void MediaVisionCreateModel()
        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));
@@ -212,7 +212,7 @@ void MediaVisionCreateModel()
                }
                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");
@@ -385,7 +385,7 @@ int ITc_mv_face_detect_p(void)
        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;
        }
@@ -443,7 +443,7 @@ int ITc_mv_face_recognition_model_save_load_p(void)
        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;
@@ -475,7 +475,7 @@ int ITc_mv_face_recognition_model_save_load_p(void)
                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;
        }
 
@@ -511,7 +511,7 @@ int ITc_mv_face_recognition_model_add_p(void)
        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;
@@ -526,7 +526,7 @@ int ITc_mv_face_recognition_model_add_p(void)
                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;
        }
 
@@ -582,7 +582,7 @@ int ITc_mv_face_recognition_model_reset_p(void)
 
        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;
        }
@@ -592,7 +592,7 @@ int ITc_mv_face_recognition_model_reset_p(void)
                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;
        }
 
@@ -635,7 +635,7 @@ int ITc_mv_face_recognition_model_learn_p(void)
        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;
@@ -701,7 +701,7 @@ int ITc_mv_face_recognition_model_query_labels_p(void)
        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;
@@ -712,7 +712,7 @@ int ITc_mv_face_recognition_model_query_labels_p(void)
                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;
        }
 
@@ -729,7 +729,7 @@ int ITc_mv_face_recognition_model_query_labels_p(void)
        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;
        }
 
@@ -763,7 +763,7 @@ int ITc_mv_face_tracking_model_create_destroy_p(void)
 
        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;
        }
@@ -807,7 +807,7 @@ int ITc_mv_face_tracking_model_prepare_p(void)
        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;
        }
@@ -881,7 +881,7 @@ int ITc_mv_face_tracking_model_clone_p(void)
 
        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;
        }
@@ -900,7 +900,7 @@ int ITc_mv_face_tracking_model_clone_p(void)
                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;
        }
 
@@ -911,7 +911,7 @@ int ITc_mv_face_tracking_model_clone_p(void)
                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;
        }
 
@@ -920,7 +920,7 @@ int ITc_mv_face_tracking_model_clone_p(void)
 
        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;
        }
 
@@ -959,7 +959,7 @@ int ITc_mv_face_tracking_model_save_p(void)
        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;
        }
@@ -969,7 +969,7 @@ int ITc_mv_face_tracking_model_save_p(void)
                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;
        }
 
@@ -1015,7 +1015,7 @@ int ITc_mv_face_tracking_model_load_p(void)
 
        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;
        }
@@ -1025,7 +1025,7 @@ int ITc_mv_face_tracking_model_load_p(void)
                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;
        }
 
@@ -1063,7 +1063,7 @@ int ITc_mv_face_recognize_p(void)
        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;
        }
@@ -1076,7 +1076,7 @@ int ITc_mv_face_recognize_p(void)
                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;
        }
 
@@ -1096,7 +1096,7 @@ int ITc_mv_face_recognize_p(void)
        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;
        }
 
@@ -1136,7 +1136,7 @@ int ITc_mv_face_track_p(void)
        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;
        }
@@ -1189,12 +1189,12 @@ int ITc_mv_face_track_p(void)
        }
 
        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) {
@@ -1241,7 +1241,7 @@ int ITc_mv_face_eye_condition_recognize_p(void)
        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;
        }
@@ -1259,7 +1259,7 @@ int ITc_mv_face_eye_condition_recognize_p(void)
                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;
        }
 
@@ -1303,7 +1303,7 @@ int ITc_mv_face_facial_expression_recognize_p(void)
        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;
        }
@@ -1320,7 +1320,7 @@ int ITc_mv_face_facial_expression_recognize_p(void)
                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;
        }
 
index 573adcad8f553cee6a561d208fa36e8ac96ba0fb..0a56c4f8e3efeae8c8e5468ea46f1ea6adfd90d5 100644 (file)
@@ -34,10 +34,10 @@ static void MvRecognizedCB(mv_source_h source, mv_engine_config_h engine_cfg, co
                                                   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;
        }
 }
@@ -53,10 +53,10 @@ void MvTrackedCB(mv_source_h source, mv_image_tracking_model_h tracking_model, m
                                 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;
        }
 }
@@ -153,7 +153,7 @@ int ITc_mv_image_object_fill_p(void)
        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;
@@ -232,7 +232,7 @@ int ITc_mv_image_object_get_recognition_rate_p(void)
        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);
@@ -279,7 +279,7 @@ int ITc_mv_image_object_set_get_label_p(void)
        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;
        }
 
@@ -328,7 +328,7 @@ int ITc_mv_image_object_clone_p(void)
                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;
        }
 
@@ -339,7 +339,7 @@ int ITc_mv_image_object_clone_p(void)
                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;
        }
 
@@ -348,7 +348,7 @@ int ITc_mv_image_object_clone_p(void)
 
        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;
        }
 
@@ -395,7 +395,7 @@ int ITc_mv_image_object_save_load_p(void)
                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;
        }
 
@@ -470,7 +470,7 @@ int ITc_mv_image_tracking_model_set_target_p(void)
        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;
@@ -485,7 +485,7 @@ int ITc_mv_image_tracking_model_set_target_p(void)
                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;
        }
 
@@ -575,7 +575,7 @@ int ITc_mv_image_tracking_model_refresh_p(void)
        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;
@@ -587,7 +587,7 @@ int ITc_mv_image_tracking_model_refresh_p(void)
                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;
        }
 
@@ -671,7 +671,7 @@ int ITc_mv_image_tracking_model_clone_p(void)
                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;
        }
 
@@ -682,7 +682,7 @@ int ITc_mv_image_tracking_model_clone_p(void)
                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;
        }
 
@@ -691,7 +691,7 @@ int ITc_mv_image_tracking_model_clone_p(void)
 
        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;
        }
 
@@ -739,7 +739,7 @@ int ITc_mv_image_tracking_model_save_load_p(void)
                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;
        }
 
@@ -782,7 +782,7 @@ int ITc_mv_image_recognize_p(void)
        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;
@@ -794,7 +794,7 @@ int ITc_mv_image_recognize_p(void)
                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;
        }
 
@@ -802,7 +802,7 @@ int ITc_mv_image_recognize_p(void)
                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;
        }
 
@@ -874,7 +874,7 @@ int ITc_mv_image_track_p(void)
        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;
        };
 
@@ -893,7 +893,7 @@ int ITc_mv_image_track_p(void)
                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;
        }
 
@@ -901,7 +901,7 @@ int ITc_mv_image_track_p(void)
                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;
        }
 
index ab6ab34305960181492c2ee1bf723208df4747c0..1665f0676862b0ed371b679b3a067405c714b4b3 100644 (file)
@@ -53,7 +53,7 @@ static int SetROITrackerEngineConfig(mv_engine_config_h engine_cfg)
 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;
@@ -68,7 +68,7 @@ static void MvROITrackedCB(mv_source_h source, mv_rectangle_s roi, void *user_da
 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) {
@@ -82,14 +82,14 @@ void ITs_media_vision_roi_tracker_startup(void)
        };
 
        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;
@@ -104,7 +104,7 @@ void ITs_media_vision_roi_tracker_startup(void)
 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);
@@ -209,7 +209,7 @@ int ITc_mv_roi_tracker_configure_prepare_p(void)
        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;
 }
@@ -278,9 +278,9 @@ int ITc_mv_roi_tracker_perform_p(void)
        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;
 }
index 57e3c31b1a7920835a964135d6c9e1e7dad01e39..162fab19823b5a849e691db0f56f1d03be668049 100644 (file)
@@ -37,9 +37,9 @@ void movement_detected_cb(mv_surveillance_event_trigger_h event_trigger, mv_sour
        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);
@@ -48,10 +48,10 @@ void movement_detected_cb(mv_surveillance_event_trigger_h event_trigger, mv_sour
        // 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);
        }
@@ -168,7 +168,7 @@ int ITc_mv_surveillance_get_event_trigger_type_p(void)
                                                 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);
@@ -233,7 +233,7 @@ int ITc_mv_surveillance_set_get_event_trigger_roi_p(void)
                                                 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);
@@ -282,7 +282,7 @@ int ITc_mv_surveillance_push_source_p(void)
                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);
@@ -440,13 +440,13 @@ int ITc_mv_surveillance_foreach_supported_event_type_p(void)
                                 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
        }
index a677a5c574c871453f795c4e475f352b0adfd590..8807c98764cb667081dd7a039d53edd20298de9d 100644 (file)
@@ -62,8 +62,8 @@ static void app_control(app_control_h app_control, void *data)
        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);
@@ -97,8 +97,7 @@ static void app_control(app_control_h app_control, void *data)
 
        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;
@@ -131,8 +130,8 @@ int main(int argc, char *argv[])
        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;
index 7e76c95deda09863ad9be63316f76569345d3ecd..f5d37f75ef2466d006a615aafa138d879320452e 100644 (file)
@@ -53,8 +53,8 @@ static void app_control(app_control_h app_control, void *data)
        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);
@@ -91,8 +91,7 @@ static void app_control(app_control_h app_control, void *data)
 
        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;
@@ -125,8 +124,8 @@ int main(int argc, char *argv[])
        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;
index a88771d993ee0ff0b8a1d3a5b77e0b7e777b31f2..8d614b088d8f9b9e0a64c6cb736dd158b53b1288 100644 (file)
@@ -122,7 +122,7 @@ void utc_capi_media_vision_face_recognition_startup(void)
                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 =
index 5ccabb111adb03cfe1d0c435b704af9200d2fc45..eb1d224e7e07ade3c1097f8674df51bcf59b25eb 100644 (file)
@@ -462,7 +462,7 @@ void utc_capi_media_vision_inference_startup2(void)
                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));
@@ -471,7 +471,7 @@ void utc_capi_media_vision_inference_startup2(void)
 
        } else {
                PRINT_UTC_LOG("[Line : %d][%s] GetValueForTCTSetting returned error for "
-                                         "'DEVICE_SUITE_TARGET_30'\\n",
+                                         "'DEVICE_SUITE_TARGET_30'\n",
                                          __LINE__, API_NAMESPACE);
        }
 
index 3130441860f6b79b59ada0c115ad73512bbb74e0..77b53ea3dda2692932f2a8a3b32d24771df23f70 100644 (file)
@@ -53,8 +53,8 @@ static void app_control(app_control_h app_control, void *data)
        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);
@@ -91,8 +91,7 @@ static void app_control(app_control_h app_control, void *data)
 
        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;
@@ -125,8 +124,8 @@ int main(int argc, char *argv[])
        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;
index 54e45858c51e1e7722a14b95a5fa8afc4f81836b..8c78371bff23cb658dc5b6e6b5c38ca851807ce6 100644 (file)
@@ -208,7 +208,7 @@ void utc_capi_media_vision_3d_startup(void)
                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));
@@ -216,7 +216,7 @@ void utc_capi_media_vision_3d_startup(void)
 
        } 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;
        }
index a2160f35689d7d4137bb495693a3835e3c14abfd..2befc9a952a6dfd4fdf534bfbb54e02a3a4e8189 100644 (file)
@@ -494,7 +494,7 @@ void utc_capi_media_vision_barcode_startup(void)
                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));
@@ -505,7 +505,7 @@ void utc_capi_media_vision_barcode_startup(void)
                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;
        }
index 3e0e03b1732e8e066b8cdae489daec94b5bdfa45..407efaa62787363dc09b2d91aae8ec9dd1ebbe3a 100644 (file)
@@ -210,7 +210,7 @@ void utc_capi_media_vision_face_startup(void)
                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));
@@ -245,7 +245,7 @@ void utc_capi_media_vision_face_startup(void)
                                 "%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;
        }
index b8a0810bfd73eea8737e09318d6dfac9f20a404b..2e3cf1fbcb013b3ccc96672e09ef209bd1f5f6ec 100644 (file)
@@ -159,7 +159,7 @@ void utc_capi_media_vision_image_startup(void)
                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));
@@ -180,7 +180,7 @@ void utc_capi_media_vision_image_startup(void)
                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;
        }
index 4a47035afdacd9fcdb8ad46ad286c036bb93fbf0..bd5c07af7fee8e7b6847f6d9b9e4abdc13feb089 100644 (file)
@@ -125,7 +125,7 @@ void utc_capi_media_vision_roi_tracker_startup(void)
                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));
@@ -134,7 +134,7 @@ void utc_capi_media_vision_roi_tracker_startup(void)
 
        } else {
                PRINT_UTC_LOG("[Line : %d][%s] GetValueForTCTSetting returned error for "
-                                         "'DEVICE_SUITE_TARGET_30'\\n",
+                                         "'DEVICE_SUITE_TARGET_30'\n",
                                          __LINE__, API_NAMESPACE);
        }
 
index 583d6c0ca25deb92672348503f8082e7d27d7868..b3ede81aa4358a54884fa3459ba445bcfe7f2ca4 100644 (file)
@@ -57,13 +57,13 @@ void utc_capi_media_vision_surveillance_startup(void)
                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;
        }