[ITC/UTC][player][Non-ACR] Modify the media format width/height of the video media... 61/264661/1
authorGilbok Lee <gilbok.lee@samsung.com>
Tue, 28 Sep 2021 04:08:01 +0000 (13:08 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 28 Sep 2021 04:08:01 +0000 (13:08 +0900)
Change-Id: I027df9f05319653b4c816cf4b4bc791dd0104a69

src/itc/player/ITs-player.c
src/utc/player/utc-media-player-es.c

index b47619e6053c91803b31fae04a502adbdea68676..84ff599e470f064bafbd0ef957ea06bc8c176a57 100755 (executable)
@@ -2696,10 +2696,10 @@ int ITc_player_set_unset_media_stream_buffer_status_cb_p(void)
        nRet = media_format_set_video_mime(g_hMediaFormat, MEDIA_FORMAT_H264_SP);
        PRINT_RESULT_CLEANUP(MEDIA_FORMAT_ERROR_NONE, nRet, "media_format_set_video_mime", MediaFormatGetError(nRet), media_format_unref(g_hMediaFormat));
 
-       nRet = media_format_set_video_width(g_hMediaFormat, 1280);
+       nRet = media_format_set_video_width(g_hMediaFormat, 640);
        PRINT_RESULT_CLEANUP(MEDIA_FORMAT_ERROR_NONE, nRet, "media_format_set_video_width", MediaFormatGetError(nRet), media_format_unref(g_hMediaFormat));
 
-       nRet = media_format_set_video_height(g_hMediaFormat, 544);
+       nRet = media_format_set_video_height(g_hMediaFormat, 480);
        PRINT_RESULT_CLEANUP(MEDIA_FORMAT_ERROR_NONE, nRet, "media_format_set_video_height", MediaFormatGetError(nRet), media_format_unref(g_hMediaFormat));
 
        nRet = player_get_state (g_player, &state);
@@ -2937,10 +2937,10 @@ int ITc_player_push_media_stream_p(void)
        nRet = media_format_set_video_mime(g_hMediaFormat, MEDIA_FORMAT_H264_SP);
        PRINT_RESULT_CLEANUP(MEDIA_FORMAT_ERROR_NONE, nRet, "media_format_set_video_mime", MediaFormatGetError(nRet), media_format_unref(g_hMediaFormat); fclose(file_src));
 
-       nRet = media_format_set_video_width(g_hMediaFormat, 1280);
+       nRet = media_format_set_video_width(g_hMediaFormat, 640);
        PRINT_RESULT_CLEANUP(MEDIA_FORMAT_ERROR_NONE, nRet, "media_format_set_video_width", MediaFormatGetError(nRet), media_format_unref(g_hMediaFormat); fclose(file_src));
 
-       nRet = media_format_set_video_height(g_hMediaFormat, 544);
+       nRet = media_format_set_video_height(g_hMediaFormat, 480);
        PRINT_RESULT_CLEANUP(MEDIA_FORMAT_ERROR_NONE, nRet, "media_format_set_video_height", MediaFormatGetError(nRet), media_format_unref(g_hMediaFormat); fclose(file_src));
 
 
@@ -3049,10 +3049,10 @@ int ITc_player_set_unset_media_stream_seek_cb_p(void)
        nRet = media_format_set_video_mime(g_hMediaFormat, MEDIA_FORMAT_H264_SP);
        PRINT_RESULT_CLEANUP(MEDIA_FORMAT_ERROR_NONE, nRet, "media_format_set_video_mime", MediaFormatGetError(nRet), media_format_unref(g_hMediaFormat));
 
-       nRet = media_format_set_video_width(g_hMediaFormat, 1280);
+       nRet = media_format_set_video_width(g_hMediaFormat, 640);
        PRINT_RESULT_CLEANUP(MEDIA_FORMAT_ERROR_NONE, nRet, "media_format_set_video_width", MediaFormatGetError(nRet), media_format_unref(g_hMediaFormat));
 
-       nRet = media_format_set_video_height(g_hMediaFormat, 544);
+       nRet = media_format_set_video_height(g_hMediaFormat, 480);
        PRINT_RESULT_CLEANUP(MEDIA_FORMAT_ERROR_NONE, nRet, "media_format_set_video_height", MediaFormatGetError(nRet), media_format_unref(g_hMediaFormat));
 
        nRet = player_get_state (g_player, &state);
index 2f314e1f3047fcc722977679479fd961c7832cc8..c95bacd54a38334967a11dd1949c5eaf6351ab43 100644 (file)
@@ -363,8 +363,8 @@ void utc_media_player_es_startup(void)
 
     /* set format */
     media_format_set_video_mime(video_fmt, MEDIA_FORMAT_H264_SP);
-    media_format_set_video_width(video_fmt, 1280);
-    media_format_set_video_height(video_fmt, 544);
+    media_format_set_video_width(video_fmt, 640);
+    media_format_set_video_height(video_fmt, 480);
 
     media_format_set_audio_mime(audio_fmt, MEDIA_FORMAT_AAC);
     media_format_set_audio_channel(audio_fmt, 2);