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
*/
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);
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 )
*/
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
*/
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