update changelog and nuke extra spec file
[profile/ivi/org.tizen.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
25 typedef enum
26 {
27         VIDEO_ROTATE_UNKNOWN                            = 0,
28         VIDEO_ROTATE_PORTRAIT_NORMAL,
29         VIDEO_ROTATE_PORTRAIT_REVERSE,
30         VIDEO_ROTATE_LANDSCAPE_NORMAL,
31         VIDEO_ROTATE_LANDSCAPE_REVERSE,
32 }MpVideoRotateType;
33
34 typedef enum
35 {
36         MP_HTTP_STREAMING                                       = 0,
37         MP_RTSP_STREAMING,
38 }MpProtocolType;
39
40 typedef enum
41 {
42         MP_DISPLAY_METHOD_LETTER_BOX            = 0,
43 }MpDisplayMethod;
44
45 typedef enum
46 {
47         MP_SOUND_PATH_SPEAKER                           = 0,
48         MP_SOUND_PATH_EARJACK,
49         MP_SOUND_PATH_BLUETOOTH,
50         MP_SOUND_PATH_MAX,
51 }MpSoundPathType;
52
53 typedef enum
54 {
55         MP_PLAYER_ERROR_NONE                    = 0,    // Successful
56         MP_PLAYER_ERROR_OUT_OF_MEMORY,                  // Out of memory
57         MP_PLAYER_ERROR_INVALID_PARAMETER,              // Invalid parameter
58         MP_PLAYER_ERROR_NO_SUCH_FILE,                   // No such file or directory 
59         MP_PLAYER_ERROR_INVALID_OPERATION,              // Invalid operation
60         MP_PLAYER_ERROR_SEEK_FAILED,                    // Seek operation failure
61         MP_PLAYER_ERROR_INVALID_STATE,                  // Invalid state
62         MP_PLAYER_ERROR_NOT_SUPPORTED_FILE,             // Not supported file format
63         MP_PLAYER_ERROR_INVALID_URI,                    // Invalid URI
64         MP_PLAYER_ERROR_SOUND_POLICY,                   // Sound policy error
65         MP_PLAYER_ERROR_CONNECTION_FAILED,              // Streaming connection failed 
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_NETWORK_CLOSE                                        = 0,
109         MP_NETWORK_ON,
110         MP_NETWORK_MAX,
111 }MpNetworkConfig;
112
113
114 typedef enum
115 {
116         MP_NETWORK_TYPE_OFF                                     = 0,
117         MP_NETWORK_TYPE_CELLULAR,
118         MP_NETWORK_TYPE_WIFI,
119         MP_NETWORK_TYPE_MAX,
120 }MpNetworkType;
121
122
123 typedef enum
124 {
125         MP_NETWORK_WIFI_OFF                                     = 0,
126         MP_NETWORK_WIFI_NOT_CONNECTED,
127         MP_NETWORK_WIFI_CONNECTED,
128         MP_NETWORK_WIFI_MAX,
129 }MpNetworkWifiState;
130
131
132 typedef enum
133 {
134         MP_NETWORK_CELLULAR_ON                          = 0,
135         MP_NETWORK_CELLULAR_3G_OPTION_OFF,
136         MP_NETWORK_CELLULAR_ROAMING_OFF,
137         MP_NETWORK_CELLULAR_FLIGHT_MODE,
138         MP_NETWORK_CELLULAR_NO_SERVICE,
139         MP_NETWORK_CELLULAR_MAX,
140 }MpNetworkCellularState;
141
142
143 typedef enum
144 {
145         MP_FILE_STREAM_TYPE_NOTHING                     = 0,
146         MP_FILE_STREAM_TYPE_VIDEO_AUDIO,
147         MP_FILE_STREAM_TYPE_AUDIO,
148         MP_FILE_STREAM_TYPE_VIDEO,
149         MP_FILE_STREAM_TYPE_MAX,
150 }MpVideoFileStreamType;
151
152
153 typedef enum
154 {
155         MP_OPTION_TYPE_LOCAL = 0,
156         MP_OPTION_TYPE_MYFILE,
157         MP_OPTION_TYPE_EMAIL,
158         MP_OPTION_TYPE_WEB,
159         MP_OPTION_TYPE_MESSAGE,
160         MP_OPTION_TYPE_ALLSHARE,
161         MP_OPTION_TYPE_MAX,
162 }MpOptionMenuType;
163
164
165 #endif //_VIDEO_TYPE_DEFINE_