[ITC][mediaeditor][NonACR] Indentation corrected 60/291260/1
authorAnkit Srivastava <ankit.sri1@samsung.com>
Wed, 12 Apr 2023 09:13:35 +0000 (14:43 +0530)
committerAnkit Srivastava <ankit.sri1@samsung.com>
Wed, 12 Apr 2023 09:13:35 +0000 (14:43 +0530)
Change-Id: I900a1849c871a9e2b67064f3de8629bbd7864a56
Signed-off-by: Ankit Srivastava <ankit.sri1@samsung.com>
src/itc/mediaeditor/ITs-mediaeditor.c

index 8064d9b2f7459bfbe0201c5d55e8be70dd9d2d16..e92436b0d7f142751af7a584fa84415d96eaa5cd 100644 (file)
@@ -200,14 +200,14 @@ void ITs_mediaeditor_startup(void)
 
                path_size = strlen(pszValue) + strlen(g_RenderFilename) + 1;
                g_pszRenderPath = (char*)calloc(path_size, sizeof(char));
-        snprintf(g_pszRenderPath, path_size, "%s/res/%s", pszValue, g_RenderFilename);
+               snprintf(g_pszRenderPath, path_size, "%s/res/%s", pszValue, g_RenderFilename);
 
-        path_size = strlen(pszValue) + strlen(g_ProjectNewFilename) + 1;
-        g_ProjectNewPath = (char*)malloc(path_size);
-        snprintf(g_ProjectNewPath, path_size, "%s/res/%s", pszValue, g_ProjectNewFilename);
+               path_size = strlen(pszValue) + strlen(g_ProjectNewFilename) + 1;
+               g_ProjectNewPath = (char*)malloc(path_size);
+               snprintf(g_ProjectNewPath, path_size, "%s/res/%s", pszValue, g_ProjectNewFilename);
 
-        path_size = strlen(pszValue) + strlen(g_ProjectLoadFilename) + 11;
-        g_ProjectLoadPath = (char*)malloc(path_size);
+               path_size = strlen(pszValue) + strlen(g_ProjectLoadFilename) + 11;
+               g_ProjectLoadPath = (char*)malloc(path_size);
         snprintf(g_ProjectLoadPath, path_size, "%s/res/%s", pszValue, g_ProjectLoadFilename);
        }
        else
@@ -1325,30 +1325,30 @@ int ITc_mediaeditor_load_project_p(void)
 */
 int ITc_mediaeditor_start_stop_preview_p(void)
 {
-    START_TEST;
-    unsigned int layer_id = 0;
-    unsigned int layer_priority = 0;
-    unsigned int clip_id = 0;
-    unsigned int start = 0;
-    unsigned int duration = 5000;
-    unsigned int in_point = 0;
-    int nTimeoutId = 0;
+       START_TEST;
+       unsigned int layer_id = 0;
+       unsigned int layer_priority = 0;
+       unsigned int clip_id = 0;
+       unsigned int start = 0;
+       unsigned int duration = 5000;
+       unsigned int in_point = 0;
+       int nTimeoutId = 0;
 
-    int nRet = mediaeditor_set_state_changed_cb(g_hMediaEditorHandle, MediaeditorStateChangedCB, NULL);
-    PRINT_RESULT(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_set_state_changed_cb", MediaEditorGetError(nRet));
+       int nRet = mediaeditor_set_state_changed_cb(g_hMediaEditorHandle, MediaeditorStateChangedCB, NULL);
+       PRINT_RESULT(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_set_state_changed_cb", MediaEditorGetError(nRet));
 
-    createWindow();
-    nRet = mediaeditor_set_display(g_hMediaEditorHandle, MEDIAEDITOR_DISPLAY_TYPE_EVAS, GET_DISPLAY(g_eo));
-    PRINT_RESULT_CLEANUP(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_set_display", MediaEditorGetError(nRet), destroyWindow();mediaeditor_unset_state_changed_cb(g_hMediaEditorHandle));
+       createWindow();
+       nRet = mediaeditor_set_display(g_hMediaEditorHandle, MEDIAEDITOR_DISPLAY_TYPE_EVAS, GET_DISPLAY(g_eo));
+       PRINT_RESULT_CLEANUP(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_set_display", MediaEditorGetError(nRet), destroyWindow();mediaeditor_unset_state_changed_cb(g_hMediaEditorHandle));
 
-    nRet = mediaeditor_add_layer(g_hMediaEditorHandle, &layer_id, &layer_priority);
-    PRINT_RESULT_CLEANUP(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_add_layer", MediaEditorGetError(nRet), destroyWindow();mediaeditor_unset_state_changed_cb(g_hMediaEditorHandle));
+       nRet = mediaeditor_add_layer(g_hMediaEditorHandle, &layer_id, &layer_priority);
+       PRINT_RESULT_CLEANUP(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_add_layer", MediaEditorGetError(nRet), destroyWindow();mediaeditor_unset_state_changed_cb(g_hMediaEditorHandle));
 
-    nRet = mediaeditor_add_clip(g_hMediaEditorHandle, g_pszVideoClipPath, layer_id, start, duration, in_point, &clip_id);
-    PRINT_RESULT_CLEANUP(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_add_clip", MediaEditorGetError(nRet), destroyWindow();mediaeditor_unset_state_changed_cb(g_hMediaEditorHandle));
+       nRet = mediaeditor_add_clip(g_hMediaEditorHandle, g_pszVideoClipPath, layer_id, start, duration, in_point, &clip_id);
+       PRINT_RESULT_CLEANUP(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_add_clip", MediaEditorGetError(nRet), destroyWindow();mediaeditor_unset_state_changed_cb(g_hMediaEditorHandle));
 
-    g_TargetState = MEDIAEDITOR_STATE_PREVIEW;
-    g_bMediaEditorCallback = false;
+       g_TargetState = MEDIAEDITOR_STATE_PREVIEW;
+       g_bMediaEditorCallback = false;
 
        //feature check
        bool bIsDisplayFeatureSupported = TCTCheckSystemInfoFeatureSupported(FEATURE_NAME_DISPLAY, API_NAMESPACE);
@@ -1362,7 +1362,7 @@ int ITc_mediaeditor_start_stop_preview_p(void)
                PRINT_RESULT_CLEANUP(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_start_preview", MediaEditorGetError(nRet), destroyWindow();mediaeditor_unset_state_changed_cb(g_hMediaEditorHandle));
        }
 
-    /* Wait state transition : IDLE -> PREVIEW */
+       /* Wait state transition : IDLE -> PREVIEW */
        RUN_POLLING_LOOP;
 
        if ( g_bMediaEditorCallback == false )
@@ -1407,15 +1407,15 @@ int ITc_mediaeditor_start_stop_preview_p(void)
 */
 int ITc_mediaeditor_set_unset_state_changed_cb_p(void)
 {
-    START_TEST;
+       START_TEST;
 
-    int nRet = mediaeditor_set_state_changed_cb(g_hMediaEditorHandle, MediaeditorStateChangedCB, NULL);
-    PRINT_RESULT(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_set_state_changed_cb", MediaEditorGetError(nRet));
+       int nRet = mediaeditor_set_state_changed_cb(g_hMediaEditorHandle, MediaeditorStateChangedCB, NULL);
+       PRINT_RESULT(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_set_state_changed_cb", MediaEditorGetError(nRet));
 
-    nRet = mediaeditor_unset_state_changed_cb(g_hMediaEditorHandle);
-    PRINT_RESULT(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_unset_state_changed_cb", MediaEditorGetError(nRet));
+       nRet = mediaeditor_unset_state_changed_cb(g_hMediaEditorHandle);
+       PRINT_RESULT(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_unset_state_changed_cb", MediaEditorGetError(nRet));
 
-    return 0;
+       return 0;
 }
 
 //& purpose: Set and Unset error callback
@@ -1436,15 +1436,15 @@ int ITc_mediaeditor_set_unset_state_changed_cb_p(void)
 */
 int ITc_mediaeditor_set_unset_error_cb_p(void)
 {
-    START_TEST;
+       START_TEST;
 
-    int nRet = mediaeditor_set_error_cb(g_hMediaEditorHandle, MediaeditorErrorCB, NULL);
-    PRINT_RESULT(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_set_error_cb", MediaEditorGetError(nRet));
+       int nRet = mediaeditor_set_error_cb(g_hMediaEditorHandle, MediaeditorErrorCB, NULL);
+       PRINT_RESULT(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_set_error_cb", MediaEditorGetError(nRet));
 
-    nRet = mediaeditor_unset_error_cb(g_hMediaEditorHandle);
-    PRINT_RESULT(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_unset_error_cb", MediaEditorGetError(nRet));
+       nRet = mediaeditor_unset_error_cb(g_hMediaEditorHandle);
+       PRINT_RESULT(MEDIAEDITOR_ERROR_NONE, nRet, "mediaeditor_unset_error_cb", MediaEditorGetError(nRet));
 
-    return 0;
+       return 0;
 }
 
  //& purpose: Set and Unset layer priority