Merge branch '0128_tizen20'
[apps/core/preloaded/video-player.git] / include / mp-video-type-define.h
1 /*
2  * To apply the Flora License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
3  * 
4  *    Copyright [2012] [JongDong Lee <jongdong.lee@samsung.com>, ChangSun Lee <cs78.lee@samsung.com>]
5  * 
6  *    Licensed under the Flora License, Version 1.0 (the "License");
7  *    you may not use this file except in compliance with the License.
8  *    You may obtain a copy of the License at
9  * 
10  *        http://www.tizenopensource.org/license
11  * 
12  *    Unless required by applicable law or agreed to in writing, software
13  *    distributed under the License is distributed on an "AS IS" BASIS,
14  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *    See the License for the specific language governing permissions and
16  *    limitations under the License.
17  */
18
19
20 #ifndef _VIDEO_TYPE_DEFINE_
21 #define  _VIDEO_TYPE_DEFINE_
22
23
24 typedef enum
25 {
26         VIDEO_ROTATE_UNKNOWN                            = 0,
27         VIDEO_ROTATE_PORTRAIT_NORMAL,
28         VIDEO_ROTATE_PORTRAIT_REVERSE,
29         VIDEO_ROTATE_LANDSCAPE_NORMAL,
30         VIDEO_ROTATE_LANDSCAPE_REVERSE,
31 }MpVideoRotateType;
32
33 typedef enum
34 {
35         MP_HTTP_STREAMING                                       = 0,
36         MP_RTSP_STREAMING,
37 }MpProtocolType;
38
39 typedef enum
40 {
41         MP_DISPLAY_METHOD_LETTER_BOX            = 0,
42 }MpDisplayMethod;
43
44 typedef enum
45 {
46         MP_SOUND_PATH_SPEAKER                           = 0,
47         MP_SOUND_PATH_EARJACK,
48         MP_SOUND_PATH_BLUETOOTH,
49         MP_SOUND_PATH_MAX,
50 }MpSoundPathType;
51
52 typedef enum
53 {
54         MP_PLAYER_ERROR_NONE                    = 0,    // Successful
55         MP_PLAYER_ERROR_OUT_OF_MEMORY,                  // Out of memory
56         MP_PLAYER_ERROR_INVALID_PARAMETER,              // Invalid parameter
57         MP_PLAYER_ERROR_NO_SUCH_FILE,                   // No such file or directory 
58         MP_PLAYER_ERROR_INVALID_OPERATION,              // Invalid operation
59         MP_PLAYER_ERROR_SEEK_FAILED,                    // Seek operation failure
60         MP_PLAYER_ERROR_INVALID_STATE,                  // Invalid state
61         MP_PLAYER_ERROR_NOT_SUPPORTED_FILE,             // Not supported file format
62         MP_PLAYER_ERROR_INVALID_URI,                    // Invalid URI
63         MP_PLAYER_ERROR_SOUND_POLICY,                   // Sound policy error
64         MP_PLAYER_ERROR_CONNECTION_FAILED,              // Streaming connection failed 
65         MP_PLAYER_ERROR_VIDEO_CAPTURE_FAILED,   // Video capture failure 
66         MP_PLAYER_ERROR_UNKNOWN_ERROR,                  // unknown error.
67 }MpPlayerErrorType;
68
69 typedef enum
70 {
71         MP_PLAYER_INTERRUPTED_COMPLETED  = 0,           // Interrupt completed
72         MP_PLAYER_INTERRUPTED_BY_OTHER_APP,                     // Interrupted by another application
73         MP_PLAYER_INTERRUPTED_BY_CALL,                          // Interrupted by incoming call
74         MP_PLAYER_INTERRUPTED_BY_EARJACK_UNPLUG,        // Interrupted by unplugging headphone
75         MP_PLAYER_INTERRUPTED_BY_RESOURCE_CONFLICT,     // Interrupted by resource conflict
76         MP_PLAYER_INTERRUPTED_BY_ALARM,                         // Interrupted by alarm
77 }MpPlayerInterrupteType;
78
79
80 typedef enum
81 {
82         MP_PLAYER_STATE_WAIT_FOR_RESUME         = -3,
83         MP_PLAYER_STATE_WAIT_FOR_PLAY           = -2,
84         MP_PLAYER_STATE_WAIT_FOR_RESPONSE       = -1,
85         MP_PLAYER_STATE_CLEAR                           = 0,
86         MP_PLAYER_STATE_PLAY,
87         MP_PLAYER_STATE_PAUSE,
88         MP_PLAYER_STATE_RESUME,
89         MP_PLAYER_STATE_STOP,
90         MP_PLAYER_STATE_PAUSE_BEFORE_PLAY,
91         MP_PLAYER_STATE_MAX
92 }MpPlayerState;
93
94
95 typedef enum
96 {
97         MP_PLAYING_SPEED_NORMAL         = 1,
98         MP_PLAYING_SPEED_2X                     = 2,
99         MP_PLAYING_SPEED_3X                     = 3,
100         MP_PLAYING_SPEED_4X                     = 4,
101         MP_PLAYING_SPEED_5X                     = 5,
102         MP_PLAYING_SPEED_MAX            = MP_PLAYING_SPEED_5X,
103 }MpVideoPlayingSpeedType;
104
105
106 typedef enum
107 {
108         MP_SUBTITLE_TYPE_SUB                            = 0,
109         MP_SUBTITLE_TYPE_SRT,
110         MP_SUBTITLE_TYPE_SMI,
111         MP_SUBTITLE_TYPE_MAX,
112 }MpSubTitleType;
113
114
115 typedef enum
116 {
117         MP_NETWORK_CLOSE                                        = 0,
118         MP_NETWORK_ON,
119         MP_NETWORK_MAX,
120 }MpNetworkConfig;
121
122
123 typedef enum
124 {
125         MP_NETWORK_TYPE_OFF                                     = 0,
126         MP_NETWORK_TYPE_CELLULAR,
127         MP_NETWORK_TYPE_WIFI,
128         MP_NETWORK_TYPE_MAX,
129 }MpNetworkType;
130
131
132 typedef enum
133 {
134         MP_NETWORK_WIFI_OFF                                     = 0,
135         MP_NETWORK_WIFI_NOT_CONNECTED,
136         MP_NETWORK_WIFI_CONNECTED,
137         MP_NETWORK_WIFI_MAX,
138 }MpNetworkWifiState;
139
140
141 typedef enum
142 {
143         MP_NETWORK_CELLULAR_ON                          = 0,
144         MP_NETWORK_CELLULAR_3G_OPTION_OFF,
145         MP_NETWORK_CELLULAR_ROAMING_OFF,
146         MP_NETWORK_CELLULAR_FLIGHT_MODE,
147         MP_NETWORK_CELLULAR_NO_SERVICE,
148         MP_NETWORK_CELLULAR_MAX,
149 }MpNetworkCellularState;
150
151 typedef enum
152 {
153         MP_FILE_STREAM_TYPE_NOTHING                     = 0,
154         MP_FILE_STREAM_TYPE_VIDEO_AUDIO,
155         MP_FILE_STREAM_TYPE_AUDIO,
156         MP_FILE_STREAM_TYPE_VIDEO,
157         MP_FILE_STREAM_TYPE_MAX,
158 }MpVideoFileStreamType;
159
160 typedef enum
161 {
162         MP_OPTION_TYPE_LOCAL = 0,
163         MP_OPTION_TYPE_MYFILE,
164         MP_OPTION_TYPE_EMAIL,
165         MP_OPTION_TYPE_WEB,
166         MP_OPTION_TYPE_MESSAGE,
167         MP_OPTION_TYPE_ALLSHARE,
168         MP_OPTION_TYPE_MAX,
169 }MpOptionMenuType;
170
171 #endif //_VIDEO_TYPE_DEFINE_