Feature Enhancement : Code is merged to Tizen 2.3 base code
[platform/core/multimedia/libmm-common.git] / include / mm_error.h
1 /*
2  * libmm-common
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Jonghyuk Choi <jhchoi.choi@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22
23
24 #ifndef __MM_ERROR_H__
25 #define __MM_ERROR_H__
26
27 #ifdef __cplusplus
28         extern "C" {
29 #endif
30
31
32 /**
33         @addtogroup  COMMON
34         @{
35          * @file                mm_error.h
36          * @brief               This file defines error codes for multimedia framework.
37          * @version             1.0
38          *
39          * This file defines error codes for multimedia framework.
40 */
41
42 #define MM_ERROR_NONE                           0x00000000              /**< No Error */
43 #define MM_ERROR_CLASS                          0x80000000              /**< Definition of number describing error group */
44 #define MM_ERROR_COMMON_CLASS                   0x80000100              /**< Category for describing common error group */
45 #define MM_ERROR_SOUND_CLASS                    0x80000200              /**< Category for describing sound error group */
46 #define MM_ERROR_RADIO_CLASS                    0x80000300              /**< Category for describing radio error group */
47 #define MM_ERROR_PLAYER_CLASS                   0x80000400              /**< Category for describing player error group */
48 #define MM_ERROR_FILE_CLASS                     0x80000600              /**< Category for describing file error group */
49 #define MM_ERROR_STREAMRECORDER_CLASS           0x80000700      /**< Category for describing streamrecorder error group */
50 #define MM_ERROR_CAMCORDER_CLASS                0x80000800              /**< Category for describing camcorder error group */
51 #define MM_ERROR_WFD_CLASS              0x80000900              /**< Category for describing wifi-display error group */
52 #define MM_ERROR_IMAGE_CLASS                    0x80000a00              /**< Category for describing image error group */
53 #define MM_ERROR_MGR_CLASS                      0x80000c00              /**< Category for describing message error group */
54 #define MM_ERROR_POLICY_CLASS                   0x80000b00              /**< Category for Policy */
55 #define MM_ERROR_NOT_IMPLEMENTED                0x80000d00              /**< Error message for not implemented functions */
56 #define MM_ERROR_TRANSCODE_CLASS                0x80000e00              /**< Error message for not implemented functions */
57
58 /*
59       MM_ERROR_CLASS
60 */
61 #define MM_ERROR_UNKNOWN                        (MM_ERROR_CLASS | 0x00)         /**< Unclassified error */
62 #define MM_ERROR_INVALID_ARGUMENT               (MM_ERROR_CLASS | 0x01)         /**< Invalid argument */
63 #define MM_ERROR_OUT_OF_MEMORY                  (MM_ERROR_CLASS | 0x02)         /**< Out of memory */
64 #define MM_ERROR_OUT_OF_STORAGE                 (MM_ERROR_CLASS | 0x03)         /**< Out of storage */
65 #define MM_ERROR_INVALID_HANDLE                 (MM_ERROR_CLASS | 0x04)         /**< Invalid handle */
66 #define MM_ERROR_FILE_NOT_FOUND                 (MM_ERROR_CLASS | 0x05)         /**< Cannot find file */
67 #define MM_ERROR_FILE_READ                      (MM_ERROR_CLASS | 0x06)         /**< Fail to read data from file */
68 #define MM_ERROR_FILE_WRITE                     (MM_ERROR_CLASS | 0x07)         /**< Fail to write data to file */
69 #define MM_ERROR_END_OF_FILE                    (MM_ERROR_CLASS | 0x08)         /**< End of file */
70 #define MM_ERROR_NOT_SUPPORT_API                (MM_ERROR_CLASS | 0x09)         /**< Not supported API*/
71
72
73 /*
74         MM_ERROR_COMMON_CLASS
75 */
76 #define MM_ERROR_COMMON_INVALID_ARGUMENT        (MM_ERROR_COMMON_CLASS | 1)             /**< Invalid argument */
77 #define MM_ERROR_COMMON_NO_FREE_SPACE           (MM_ERROR_COMMON_CLASS | 2)             /**< Out of storage */
78 #define MM_ERROR_COMMON_OUT_OF_MEMORY           (MM_ERROR_COMMON_CLASS | 3)             /**< Out of memory */
79 #define MM_ERROR_COMMON_UNKNOWN                 (MM_ERROR_COMMON_CLASS | 4)             /**< Unknown error */
80 #define MM_ERROR_COMMON_INVALID_ATTRTYPE        (MM_ERROR_COMMON_CLASS | 5)             /**< Invalid argument */
81 #define MM_ERROR_COMMON_INVALID_PERMISSION      (MM_ERROR_COMMON_CLASS | 6)             /**< Invalid permission */
82 #define MM_ERROR_COMMON_OUT_OF_ARRAY            (MM_ERROR_COMMON_CLASS | 7)             /**< Out of array */
83 #define MM_ERROR_COMMON_OUT_OF_RANGE            (MM_ERROR_COMMON_CLASS | 8)             /**< Out of value range*/
84 #define MM_ERROR_COMMON_ATTR_NOT_EXIST          (MM_ERROR_COMMON_CLASS | 9)             /**< Attribute doesn't exist. */
85
86 /*
87  *      MM_ERROR_SOUND_CLASS
88  */
89 #define MM_ERROR_SOUND_NOT_INITIALIZED                  (MM_ERROR_SOUND_CLASS | 0x01)           /**< Not initialized player */
90 #define MM_ERROR_SOUND_CODEC_NOT_FOUND                  (MM_ERROR_SOUND_CLASS | 0x02)           /**< Not supported format */
91 #define MM_ERROR_SOUND_DECODE                           (MM_ERROR_SOUND_CLASS | 0x03)           /**< Error while decoding data */
92 #define MM_ERROR_SOUND_NO_FREE_SPACE                    (MM_ERROR_SOUND_CLASS | 0x04)           /**< Out of storage */
93 #define MM_ERROR_SOUND_FILE_NOT_FOUND                   (MM_ERROR_SOUND_CLASS | 0x05)           /**< Cannot find file */
94 #define MM_ERROR_SOUND_STREAM_NOT_FOUND                 (MM_ERROR_SOUND_CLASS | 0x06)           /**< Cannot find stream */
95 #define MM_ERROR_SOUND_END_OF_STREAM                    (MM_ERROR_SOUND_CLASS | 0x07)           /**< End of stream */
96 #define MM_ERROR_SOUND_SEEK                             (MM_ERROR_SOUND_CLASS | 0x08)           /**< Seek related errors */
97 #define MM_ERROR_SOUND_INVALID_POINTER                  (MM_ERROR_SOUND_CLASS | 0x09)           /**< Invalid pointer */
98 #define MM_ERROR_SOUND_PERMISSION_DENIED                (MM_ERROR_SOUND_CLASS | 0x0a)           /**< Permission Denied */
99 #define MM_ERROR_SOUND_NOT_SUPPORTED_OPERATION          (MM_ERROR_SOUND_CLASS | 0x10)           /**< Not supported operation */
100 #define MM_ERROR_SOUND_NO_DATA                          (MM_ERROR_SOUND_CLASS | 0x11)           /**< No data */
101
102 #define MM_ERROR_SOUND_INVALID_FILE                     (MM_ERROR_SOUND_CLASS | 0x21)           /**< Invalid file */
103 #define MM_ERROR_SOUND_INVALID_PATH                     (MM_ERROR_SOUND_CLASS | 0x22)           /**< Invalid path */
104 #define MM_ERROR_SOUND_INVALID_VOLUME                   (MM_ERROR_SOUND_CLASS | 0x23)           /**< Invalid volume */
105 #define MM_ERROR_SOUND_UNSUPPORTED_MEDIA_TYPE           (MM_ERROR_SOUND_CLASS | 0x24)           /**< Invalid media type */
106 #define MM_ERROR_SOUND_INTERNAL                         (MM_ERROR_SOUND_CLASS | 0x25)           /**< Internal errors */
107 #define MM_ERROR_SOUND_INVALID_STATE                    (MM_ERROR_SOUND_CLASS | 0x26)           /**< Invalid state */
108 #define MM_ERROR_SOUND_VOLUME_BLOCKED_BY_SAFETY (MM_ERROR_SOUND_CLASS | 0x27) /**< Set volume fail dueto safety volume popup */
109
110 #define MM_ERROR_SOUND_VOLUME_NO_INSTANCE               (MM_ERROR_SOUND_CLASS | 0x31)           /**< No active instance */
111 #define MM_ERROR_SOUND_VOLUME_CAPTURE_ONLY              (MM_ERROR_SOUND_CLASS | 0x32)           /**< Capture instance only */
112
113 #define MM_ERROR_SOUND_DEVICE_NOT_OPENED                (MM_ERROR_SOUND_CLASS | 0x41)           /**< Cannot open sound device */
114 #define MM_ERROR_SOUND_DEVICE_INVALID_FORMAT            (MM_ERROR_SOUND_CLASS | 0x42)           /**< Invalid file format */
115 #define MM_ERROR_SOUND_DEVICE_INVALID_CHANNEL           (MM_ERROR_SOUND_CLASS | 0x43)           /**< Invalid channel type */
116 #define MM_ERROR_SOUND_DEVICE_INVALID_SAMPLERATE        (MM_ERROR_SOUND_CLASS | 0x44)           /**< Invalid samplerate */
117 #define MM_ERROR_SOUND_DEVICE_INVALID_MODE              (MM_ERROR_SOUND_CLASS | 0x45)           /**< Invalid mode */
118 #define MM_ERROR_SOUND_DEVICE_INVALID_VOLUME            (MM_ERROR_SOUND_CLASS | 0x46)           /**< Invalid volume */
119
120 #define MM_ERROR_SOUND_UNSUPPORTED_FORMAT               MM_ERROR_SOUND_UNSUPPORTED_MEDIA_TYPE   /**< Not supported media format */
121
122
123 /*
124          MM_ERROR_RADIO_CLASS
125  */
126 #define MM_ERROR_RADIO_NOT_INITIALIZED                  (MM_ERROR_RADIO_CLASS | 0x01)           /**< Radio instance is not initialized */
127 #define MM_ERROR_RADIO_NO_FREE_SPACE                    (MM_ERROR_RADIO_CLASS | 0x02)           /**< Not enough memory */
128 #define MM_ERROR_RADIO_INTERNAL                         (MM_ERROR_RADIO_CLASS | 0x03)           /**< Radio internal error */
129 #define MM_ERROR_RADIO_RESPONSE_TIMEOUT                 (MM_ERROR_RADIO_CLASS | 0x04)           /**< Response timeout error */
130 #define MM_ERROR_RADIO_INVALID_STATE                    (MM_ERROR_RADIO_CLASS | 0x05)           /**< Radio is in invalid state */
131 #define MM_ERROR_RADIO_NO_OP                            (MM_ERROR_RADIO_CLASS | 0x06)           /**< Radio is in desired state */
132 #define MM_ERROR_RADIO_DEVICE_NOT_OPENED                (MM_ERROR_RADIO_CLASS | 0x07)           /**< Failed to opne radio devide */
133 #define MM_ERROR_RADIO_DEVICE_NOT_FOUND                 (MM_ERROR_RADIO_CLASS | 0x08)           /**< Failed to find  radio devide */
134 #define MM_ERROR_RADIO_PERMISSION_DENIED                (MM_ERROR_RADIO_CLASS | 0x08)           /**< not supported permission */
135
136
137 /*
138         MM_ERROR_PLAYER_CLASS
139 */
140 #define MM_ERROR_PLAYER_NOT_INITIALIZED                                 (MM_ERROR_PLAYER_CLASS | 0x01)          /**< Not initialized player */
141 #define MM_ERROR_PLAYER_CODEC_NOT_FOUND                                 (MM_ERROR_PLAYER_CLASS | 0x02)          /**< Not supported format */
142 #define MM_ERROR_PLAYER_DECODE                                          (MM_ERROR_PLAYER_CLASS | 0x03)          /**< Error while decoding data */
143 #define MM_ERROR_PLAYER_NO_FREE_SPACE                                   (MM_ERROR_PLAYER_CLASS | 0x04)          /**< Out of storage */
144 #define MM_ERROR_PLAYER_FILE_NOT_FOUND                                  (MM_ERROR_PLAYER_CLASS | 0x05)          /**< Cannot find file */
145 #define MM_ERROR_PLAYER_STREAM_NOT_FOUND                                (MM_ERROR_PLAYER_CLASS | 0x06)          /**< Cannot find stream */
146 #define MM_ERROR_PLAYER_END_OF_STREAM                                   (MM_ERROR_PLAYER_CLASS | 0x07)          /**< End of stream */
147 #define MM_ERROR_PLAYER_SEEK                                            (MM_ERROR_PLAYER_CLASS | 0x08)          /**< Seek related errors */
148 #define MM_ERROR_PLAYER_INTERNAL                                        (MM_ERROR_PLAYER_CLASS | 0x09)          /**< Internal errors */
149 #define MM_ERROR_PLAYER_INVALID_STATE                                   (MM_ERROR_PLAYER_CLASS | 0x0a)          /**< Invalid state */
150 #define MM_ERROR_PLAYER_AUDIO_NOT_OPENED                                (MM_ERROR_PLAYER_CLASS | 0x0b)          /**< Cannot open audio */
151 #define MM_ERROR_PLAYER_INVALID_VOLUME                                  (MM_ERROR_PLAYER_CLASS | 0x0c)          /**< Invalid volume */
152 #define MM_ERROR_PLAYER_INVALID_URI                                     (MM_ERROR_PLAYER_CLASS | 0x0d)          /**< Invalid URI */
153 #define MM_ERROR_PLAYER_INVALID_POSITION                                (MM_ERROR_PLAYER_CLASS | 0x0e)          /**< Invalid position */
154 #define MM_ERROR_PLAYER_NO_OP                                           (MM_ERROR_PLAYER_CLASS | 0x0f)          /**< No operation */
155 #define MM_ERROR_PLAYER_BT_CONNECTION                                   (MM_ERROR_PLAYER_CLASS | 0x10)          /**< bt connection error */
156 #define MM_ERROR_PLAYER_BT_WRITE                                        (MM_ERROR_PLAYER_CLASS | 0x11)          /**< bt connection error */
157 #define MM_ERROR_PLAYER_NOT_SUPPORTED_FORMAT                            (MM_ERROR_PLAYER_CLASS | 0x12)          /**< Not supported format */
158 #define MM_ERROR_PLAYER_AUDIO_CODEC_NOT_FOUND                           (MM_ERROR_PLAYER_CLASS | 0x13)          /**< Not supported audio codec */
159 #define MM_ERROR_PLAYER_VIDEO_CODEC_NOT_FOUND                           (MM_ERROR_PLAYER_CLASS | 0x14)          /**< Not supported video codec */
160 #define MM_ERROR_PLAYER_STREAMING_FAIL                                  (MM_ERROR_PLAYER_CLASS | 0x15)          /**< Fail to play streaming */
161 #define MM_ERROR_PLAYER_DSP_CRASHED                                     (MM_ERROR_PLAYER_CLASS | 0x16)          /**< Dsp is crashed */
162 #define MM_ERROR_PLAYER_INVALID_STREAM                                  (MM_ERROR_PLAYER_CLASS | 0x17)          /**< Invalid stream */
163 #define MM_ERROR_PLAYER_DOING_SEEK                                      (MM_ERROR_PLAYER_CLASS | 0x18)          /**< Still seeking */
164 #define MM_ERROR_PLAYER_DRM_NO_LICENSE                                  (MM_ERROR_PLAYER_CLASS | 0x19)          /**< No license */
165 #define MM_ERROR_PLAYER_DRM_EXPIRED                                     (MM_ERROR_PLAYER_CLASS | 0x1a)          /**< Expired license */
166 #define MM_ERROR_PLAYER_DRM_FUTURE_USE                                  (MM_ERROR_PLAYER_CLASS | 0x1b)          /**< License for future use */
167 #define MM_ERROR_PLAYER_DRM_NOT_AUTHORIZED                              (MM_ERROR_PLAYER_CLASS | 0x1c)          /**< Not authorized */
168 #define MM_ERROR_PLAYER_DRM_OUTPUT_PROTECTION                           (MM_ERROR_PLAYER_CLASS | 0x1d)          /**< Output protected */
169 #define MM_ERROR_PLAYER_RESOURCE_LIMIT                                  (MM_ERROR_PLAYER_CLASS | 0x1e)          /**< Resource limit */
170 #define MM_ERROR_PLAYER_PERMISSION_DENIED                                       (MM_ERROR_PLAYER_CLASS | 0x1f)          /**< Permission denied */
171
172 #define MM_ERROR_PLAYER_STREAMING_UNSUPPORTED_AUDIO                     (MM_ERROR_PLAYER_CLASS | 0x22)          /**< Unsupported audio  */
173 #define MM_ERROR_PLAYER_STREAMING_UNSUPPORTED_VIDEO                     (MM_ERROR_PLAYER_CLASS | 0x23)          /**< Unsupported video  */
174 #define MM_ERROR_PLAYER_STREAMING_CONNECTION_FAIL                       (MM_ERROR_PLAYER_CLASS | 0x24)          /**< Fail to connect to streaming server  */
175 #define MM_ERROR_PLAYER_STREAMING_DNS_FAIL                              (MM_ERROR_PLAYER_CLASS | 0x25)          /**< Fail to get host using DNS  */
176 #define MM_ERROR_PLAYER_STREAMING_SERVER_DISCONNECTED                   (MM_ERROR_PLAYER_CLASS | 0x26)          /**< Streaming server is disconnected  */
177 #define MM_ERROR_PLAYER_STREAMING_BAD_SERVER                            (MM_ERROR_PLAYER_CLASS | 0x27)          /**< Streaming server's bad beahvior  */
178 #define MM_ERROR_PLAYER_STREAMING_INVALID_PROTOCOL                      (MM_ERROR_PLAYER_CLASS | 0x28)          /**< Invalid protocol  */
179 #define MM_ERROR_PLAYER_STREAMING_INVALID_URL                           (MM_ERROR_PLAYER_CLASS | 0x29)          /**< Invalid URL  */
180 #define MM_ERROR_PLAYER_STREAMING_UNEXPECTED_MSG                        (MM_ERROR_PLAYER_CLASS | 0x2a)          /**< Unexpected message from streaming server  */
181 #define MM_ERROR_PLAYER_STREAMING_OUT_OF_MEMORIES                       (MM_ERROR_PLAYER_CLASS | 0x2b)          /**< Out of memories  */
182 #define MM_ERROR_PLAYER_STREAMING_RTSP_TIMEOUT                          (MM_ERROR_PLAYER_CLASS | 0x2c)          /**< RTSP timed out  */
183 #define MM_ERROR_PLAYER_STREAMING_BAD_REQUEST                           (MM_ERROR_PLAYER_CLASS | 0x2d)          /**< Bad request  */
184 #define MM_ERROR_PLAYER_STREAMING_NOT_AUTHORIZED                        (MM_ERROR_PLAYER_CLASS | 0x2e)          /**< Not authorized  */
185 #define MM_ERROR_PLAYER_STREAMING_PAYMENT_REQUIRED                      (MM_ERROR_PLAYER_CLASS | 0x2f)          /**< Payment required  */
186 #define MM_ERROR_PLAYER_STREAMING_FORBIDDEN                             (MM_ERROR_PLAYER_CLASS | 0x30)          /**< Forbidden by streaming server  */
187 #define MM_ERROR_PLAYER_STREAMING_CONTENT_NOT_FOUND                     (MM_ERROR_PLAYER_CLASS | 0x31)          /**< Content could not be found  */
188 #define MM_ERROR_PLAYER_STREAMING_METHOD_NOT_ALLOWED                    (MM_ERROR_PLAYER_CLASS | 0x32)          /**< Not allowed method by streaming server  */
189 #define MM_ERROR_PLAYER_STREAMING_NOT_ACCEPTABLE                        (MM_ERROR_PLAYER_CLASS | 0x33)          /**< Not accepted by streaming server  */
190 #define MM_ERROR_PLAYER_STREAMING_PROXY_AUTHENTICATION_REQUIRED         (MM_ERROR_PLAYER_CLASS | 0x34)          /**< Proxy authentication is required  */
191 #define MM_ERROR_PLAYER_STREAMING_SERVER_TIMEOUT                        (MM_ERROR_PLAYER_CLASS | 0x35)          /**< Streaming server timed out  */
192 #define MM_ERROR_PLAYER_STREAMING_GONE                                  (MM_ERROR_PLAYER_CLASS | 0x36)          /**< Gone */
193 #define MM_ERROR_PLAYER_STREAMING_LENGTH_REQUIRED                       (MM_ERROR_PLAYER_CLASS | 0x37)          /**< Length required */
194 #define MM_ERROR_PLAYER_STREAMING_PRECONDITION_FAILED                   (MM_ERROR_PLAYER_CLASS | 0x38)          /**< Precondition is failed */
195 #define MM_ERROR_PLAYER_STREAMING_REQUEST_ENTITY_TOO_LARGE              (MM_ERROR_PLAYER_CLASS | 0x39)          /**< Request entity is too large */
196 #define MM_ERROR_PLAYER_STREAMING_REQUEST_URI_TOO_LARGE                 (MM_ERROR_PLAYER_CLASS | 0x3a)          /**< Request URL is too large */
197 #define MM_ERROR_PLAYER_STREAMING_UNSUPPORTED_MEDIA_TYPE                (MM_ERROR_PLAYER_CLASS | 0x3b)          /**< Unsupported media type */
198 #define MM_ERROR_PLAYER_STREAMING_PARAMETER_NOT_UNDERSTOOD              (MM_ERROR_PLAYER_CLASS | 0x3c)          /**< Parameter could not bu understood  */
199 #define MM_ERROR_PLAYER_STREAMING_CONFERENCE_NOT_FOUND                  (MM_ERROR_PLAYER_CLASS | 0x3d)          /**< Conference could not be found */
200 #define MM_ERROR_PLAYER_STREAMING_NOT_ENOUGH_BANDWIDTH                  (MM_ERROR_PLAYER_CLASS | 0x3e)          /**< Bandwidth is not enough */
201 #define MM_ERROR_PLAYER_STREAMING_NO_SESSION_ID                         (MM_ERROR_PLAYER_CLASS | 0x3f)          /**< No session ID */
202 #define MM_ERROR_PLAYER_STREAMING_METHOD_NOT_VALID_IN_THIS_STATE        (MM_ERROR_PLAYER_CLASS | 0x40)          /**< Method is not valid in this state  */
203 #define MM_ERROR_PLAYER_STREAMING_HEADER_FIELD_NOT_VALID_FOR_SOURCE     (MM_ERROR_PLAYER_CLASS | 0x41)          /**< Header field is not valid for source */
204 #define MM_ERROR_PLAYER_STREAMING_INVALID_RANGE                         (MM_ERROR_PLAYER_CLASS | 0x42)          /**< Invalid range */
205 #define MM_ERROR_PLAYER_STREAMING_PARAMETER_IS_READONLY                 (MM_ERROR_PLAYER_CLASS | 0x43)          /**< Parameter is read only */
206 #define MM_ERROR_PLAYER_STREAMING_AGGREGATE_OP_NOT_ALLOWED              (MM_ERROR_PLAYER_CLASS | 0x44)          /**< Aggregation option is not allowed */
207 #define MM_ERROR_PLAYER_STREAMING_ONLY_AGGREGATE_OP_ALLOWED             (MM_ERROR_PLAYER_CLASS | 0x45)          /**< Only aggregation option is allowed  */
208 #define MM_ERROR_PLAYER_STREAMING_BAD_TRANSPORT                         (MM_ERROR_PLAYER_CLASS | 0x46)          /**< Bad transport */
209 #define MM_ERROR_PLAYER_STREAMING_DESTINATION_UNREACHABLE               (MM_ERROR_PLAYER_CLASS | 0x47)          /**< Destination could not be reached */
210 #define MM_ERROR_PLAYER_STREAMING_INTERNAL_SERVER_ERROR                 (MM_ERROR_PLAYER_CLASS | 0x48)          /**< Internal server error */
211 #define MM_ERROR_PLAYER_STREAMING_NOT_IMPLEMENTED                       (MM_ERROR_PLAYER_CLASS | 0x49)          /**< Not implemented */
212 #define MM_ERROR_PLAYER_STREAMING_BAD_GATEWAY                           (MM_ERROR_PLAYER_CLASS | 0x4a)          /**< Bad gateway */
213 #define MM_ERROR_PLAYER_STREAMING_SERVICE_UNAVAILABLE                   (MM_ERROR_PLAYER_CLASS | 0x4b)          /**< Service is unavailable */
214 #define MM_ERROR_PLAYER_STREAMING_GATEWAY_TIME_OUT                      (MM_ERROR_PLAYER_CLASS | 0x4c)          /**< Gateway timed out  */
215 #define MM_ERROR_PLAYER_STREAMING_RTSP_VERSION_NOT_SUPPORTED            (MM_ERROR_PLAYER_CLASS | 0x4d)          /**< RTSP version is not supported */
216 #define MM_ERROR_PLAYER_STREAMING_OPTION_NOT_SUPPORTED                  (MM_ERROR_PLAYER_CLASS | 0x4e)          /**< Not supported option */
217
218 #define MM_ERROR_PLAYER_SOUND_EFFECT_NOT_SUPPORTED_FILTER               (MM_ERROR_PLAYER_CLASS | 0x51)          /**< Not supported filter */
219 #define MM_ERROR_PLAYER_SOUND_EFFECT_INVALID_STATUS                     (MM_ERROR_PLAYER_CLASS | 0x52)          /**< Invalid status */
220
221
222 /*
223         MM_CAMCORDER_ERROR_CLASS
224 */
225 #define MM_ERROR_CAMCORDER_DEVICE                       (MM_ERROR_CAMCORDER_CLASS | 0x01)               /**< General error of camera device */
226 #define MM_ERROR_CAMCORDER_DEVICE_NOT_FOUND             (MM_ERROR_CAMCORDER_CLASS | 0x02)               /**< Cannot find camera device */
227 #define MM_ERROR_CAMCORDER_DEVICE_BUSY                  (MM_ERROR_CAMCORDER_CLASS | 0x03)               /**< Busy camera device */
228 #define MM_ERROR_CAMCORDER_DEVICE_OPEN                  (MM_ERROR_CAMCORDER_CLASS | 0x04)               /**< Fail to open camera device */
229 #define MM_ERROR_CAMCORDER_DEVICE_IO                    (MM_ERROR_CAMCORDER_CLASS | 0x05)               /**< Fail to control camera device */
230 #define MM_ERROR_CAMCORDER_DEVICE_TIMEOUT               (MM_ERROR_CAMCORDER_CLASS | 0x06)               /**< Device Timeout */
231 #define MM_ERROR_CAMCORDER_DEVICE_REG_TROUBLE           (MM_ERROR_CAMCORDER_CLASS | 0x07)               /**< Register trouble of camear device */
232 #define MM_ERROR_CAMCORDER_DEVICE_WRONG_JPEG            (MM_ERROR_CAMCORDER_CLASS | 0x08)               /**< Captured data is abnormal */
233 #define MM_ERROR_CAMCORDER_DEVICE_LACK_BUFFER           (MM_ERROR_CAMCORDER_CLASS | 0x09)               /**< Buffer of device is not sufficient */
234
235 #define MM_ERROR_CAMCORDER_GST_CORE                     (MM_ERROR_CAMCORDER_CLASS | 0x0a)               /**< Gst Core error */
236 #define MM_ERROR_CAMCORDER_GST_LIBRARY                  (MM_ERROR_CAMCORDER_CLASS | 0x0b)               /**< Gst library error */
237 #define MM_ERROR_CAMCORDER_GST_RESOURCE                 (MM_ERROR_CAMCORDER_CLASS | 0x0c)               /**< Gst resource error */
238 #define MM_ERROR_CAMCORDER_GST_STREAM                   (MM_ERROR_CAMCORDER_CLASS | 0x0d)               /**< Gst stream error */
239 #define MM_ERROR_CAMCORDER_GST_STATECHANGE              (MM_ERROR_CAMCORDER_CLASS | 0x0e)               /**< Gst state change failed */
240 #define MM_ERROR_CAMCORDER_GST_NEGOTIATION              (MM_ERROR_CAMCORDER_CLASS | 0x0f)               /**< Gst negotiation failed */
241 #define MM_ERROR_CAMCORDER_GST_LINK                     (MM_ERROR_CAMCORDER_CLASS | 0x10)               /**< Gst linking failed */
242 #define MM_ERROR_CAMCORDER_GST_FLOW_ERROR               (MM_ERROR_CAMCORDER_CLASS | 0x11)               /**< Gst linking failed */
243
244 #define MM_ERROR_CAMCORDER_ENCODER                      (MM_ERROR_CAMCORDER_CLASS | 0x12)               /**< General error of Encoder */
245 #define MM_ERROR_CAMCORDER_ENCODER_BUFFER               (MM_ERROR_CAMCORDER_CLASS | 0x13)               /**< Encoder buffer error */
246 #define MM_ERROR_CAMCORDER_ENCODER_WRONG_TYPE           (MM_ERROR_CAMCORDER_CLASS | 0x14)               /**< Encoder wrong type (format or param) */
247 #define MM_ERROR_CAMCORDER_ENCODER_WORKING              (MM_ERROR_CAMCORDER_CLASS | 0x15)               /**< Encoding fail */
248
249 #define MM_ERROR_CAMCORDER_INVALID_CONDITION            (MM_ERROR_CAMCORDER_CLASS | 0x16)               /**< Invalid pre-condition */
250 #define MM_ERROR_CAMCORDER_INVALID_STATE                (MM_ERROR_CAMCORDER_CLASS | 0x17)               /**< Invalid state */
251 #define MM_ERROR_CAMCORDER_INVALID_ARGUMENT             (MM_ERROR_CAMCORDER_CLASS | 0x18)               /**< Invalid Argument */
252
253 #define MM_ERROR_CAMCORDER_INTERNAL                     (MM_ERROR_CAMCORDER_CLASS | 0x19)               /**< Internal error */
254 #define MM_ERROR_CAMCORDER_NOT_SUPPORTED                (MM_ERROR_CAMCORDER_CLASS | 0x1a)               /**< Not supported by camera device */
255 #define MM_ERROR_CAMCORDER_RESPONSE_TIMEOUT             (MM_ERROR_CAMCORDER_CLASS | 0x1b)               /**< Not responsed in time */
256 #define MM_ERROR_CAMCORDER_NOT_INITIALIZED              (MM_ERROR_CAMCORDER_CLASS | 0x1c)               /**< Not initialized camcorder */
257 #define MM_ERROR_CAMCORDER_LOW_MEMORY                   (MM_ERROR_CAMCORDER_CLASS | 0x1d)               /**< Memory alloc failed */
258 #define MM_ERROR_CAMCORDER_RESOURCE_CREATION            (MM_ERROR_CAMCORDER_CLASS | 0x1e)               /**< Creating resource of camcorder failed */
259 #define MM_ERROR_CAMCORDER_CMD_IS_RUNNING               (MM_ERROR_CAMCORDER_CLASS | 0x1f)               /**< Command is running now */
260 #define MM_ERROR_CAMCORDER_DSP_FAIL                     (MM_ERROR_CAMCORDER_CLASS | 0x20)               /**< DSP fail */
261 #define MM_ERROR_CAMCORDER_AUDIO_EMPTY                  (MM_ERROR_CAMCORDER_CLASS | 0x21)               /**< Audio data is empty */
262 #define MM_ERROR_CAMCORDER_CREATE_CONFIGURE             (MM_ERROR_CAMCORDER_CLASS | 0x22)               /**< Failed to create configure structure */
263 #define MM_ERROR_CAMCORDER_FILE_SIZE_OVER               (MM_ERROR_CAMCORDER_CLASS | 0x23)               /**< File size is greater than max size */
264 #define MM_ERROR_CAMCORDER_DISPLAY_DEVICE_OFF           (MM_ERROR_CAMCORDER_CLASS | 0x24)               /**< Display device is off. Requests could be ignored */
265
266 #define MM_ERROR_CAMCORDER_MNOTE_CREATION               (MM_ERROR_CAMCORDER_CLASS | 0x26)               /**< Exif makernote data construction failed */
267 #define MM_ERROR_CAMCORDER_MNOTE_MALLOC                 (MM_ERROR_CAMCORDER_CLASS | 0x27)               /**< Memory allocation for makernote entries failed */
268 #define MM_ERROR_CAMCORDER_MNOTE_ADD_ENTRY              (MM_ERROR_CAMCORDER_CLASS | 0x28)               /**< Adding a makernote entry to list failed */
269
270 /*
271         MM_ERROR_STREAMRECORDER_CLASS
272 */
273 #define MM_ERROR_STREAMRECORDER_DEVICE                      (MM_ERROR_STREAMRECORDER_CLASS | 0x01)              /**< General error of streamrecorder device */
274
275 #define MM_ERROR_STREAMRECORDER_GST_CORE                        (MM_ERROR_STREAMRECORDER_CLASS | 0x0a)          /**< Gst Core error */
276 #define MM_ERROR_STREAMRECORDER_GST_LIBRARY                     (MM_ERROR_STREAMRECORDER_CLASS | 0x0b)          /**< Gst library error */
277 #define MM_ERROR_STREAMRECORDER_GST_RESOURCE                    (MM_ERROR_STREAMRECORDER_CLASS | 0x0c)          /**< Gst resource error */
278 #define MM_ERROR_STREAMRECORDER_GST_STREAM                      (MM_ERROR_STREAMRECORDER_CLASS | 0x0d)          /**< Gst stream error */
279 #define MM_ERROR_STREAMRECORDER_GST_STATECHANGE         (MM_ERROR_STREAMRECORDER_CLASS | 0x0e)          /**< Gst state change failed */
280 #define MM_ERROR_STREAMRECORDER_GST_NEGOTIATION         (MM_ERROR_STREAMRECORDER_CLASS | 0x0f)          /**< Gst negotiation failed */
281 #define MM_ERROR_STREAMRECORDER_GST_LINK                        (MM_ERROR_STREAMRECORDER_CLASS | 0x10)          /**< Gst linking failed */
282 #define MM_ERROR_STREAMRECORDER_GST_FLOW_ERROR          (MM_ERROR_STREAMRECORDER_CLASS | 0x11)          /**< Gst linking failed */
283
284 #define MM_ERROR_STREAMRECORDER_ENCODER                 (MM_ERROR_STREAMRECORDER_CLASS | 0x12)          /**< General error of Encoder */
285 #define MM_ERROR_STREAMRECORDER_ENCODER_BUFFER          (MM_ERROR_STREAMRECORDER_CLASS | 0x13)          /**< Encoder buffer error */
286 #define MM_ERROR_STREAMRECORDER_ENCODER_WRONG_TYPE              (MM_ERROR_STREAMRECORDER_CLASS | 0x14)          /**< Encoder wrong type (format or param) */
287 #define MM_ERROR_STREAMRECORDER_ENCODER_WORKING         (MM_ERROR_STREAMRECORDER_CLASS | 0x15)          /**< Encoding fail */
288
289 #define MM_ERROR_STREAMRECORDER_INVALID_CONDITION               (MM_ERROR_STREAMRECORDER_CLASS | 0x16)          /**< Invalid pre-condition */
290
291 #define MM_ERROR_STREAMRECORDER_INVALID_ARGUMENT                (MM_ERROR_STREAMRECORDER_CLASS | 0x18)          /**< Invalid Argument */
292
293 #define MM_ERROR_STREAMRECORDER_RESPONSE_TIMEOUT                (MM_ERROR_STREAMRECORDER_CLASS | 0x1b)          /**< Not responsed in time */
294 #define MM_ERROR_STREAMRECORDER_NOT_INITIALIZED         (MM_ERROR_STREAMRECORDER_CLASS | 0x1c)          /**< Not initialized streamrecorder */
295 #define MM_ERROR_STREAMRECORDER_LOW_MEMORY                      (MM_ERROR_STREAMRECORDER_CLASS | 0x1d)          /**< Memory alloc failed */
296 #define MM_ERROR_STREAMRECORDER_RESOURCE_CREATION               (MM_ERROR_STREAMRECORDER_CLASS | 0x1e)          /**< Creating resource of streamrecorder failed */
297 #define MM_ERROR_STREAMRECORDER_CMD_IS_RUNNING          (MM_ERROR_STREAMRECORDER_CLASS | 0x1f)          /**< Command is running now */
298
299 #define MM_ERROR_STREAMRECORDER_FILE_SIZE_OVER          (MM_ERROR_STREAMRECORDER_CLASS | 0x23)          /**< File size is greater than max size */
300
301 #define MM_ERROR_STREAMRECORDER_AUDIOBUFFER_PUSH        (MM_ERROR_STREAMRECORDER_CLASS | 0x26)          /**< Exif makernote data construction failed */
302 #define MM_ERROR_STREAMRECORDER_VIDEOBUFFER_PUSH        (MM_ERROR_STREAMRECORDER_CLASS | 0x27)          /**< Memory allocation for makernote entries failed */
303 #define MM_ERROR_STREAMRECORDER_BUFFER_CONVERT          (MM_ERROR_STREAMRECORDER_CLASS | 0x28)          /**< Adding a makernote entry to list failed */
304
305 /*
306         MM_ERROR_WFD_CLASS
307 */
308 #define MM_ERROR_WFD_INVALID_ARGUMENT                   (MM_ERROR_WFD_CLASS | 0x01)             /**< Invalid Argument */
309 #define MM_ERROR_WFD_NO_FREE_SPACE                      (MM_ERROR_WFD_CLASS | 0x02)             /**< Out of storage */
310 #define MM_ERROR_WFD_NOT_INITIALIZED                    (MM_ERROR_WFD_CLASS | 0x03)             /**< Not initialized wifi-display */
311 #define MM_ERROR_WFD_NO_OP                              (MM_ERROR_WFD_CLASS | 0x04)             /**< No operation */
312 #define MM_ERROR_WFD_INVALID_STATE                      (MM_ERROR_WFD_CLASS | 0x05)             /**< Invalid state */
313 #define MM_ERROR_WFD_INTERNAL                           (MM_ERROR_WFD_CLASS | 0x06)             /**< Internal errors */
314 #define MM_ERROR_WFD_NOHDCPKEY                          (MM_ERROR_WFD_CLASS | 0x07)             /**< No HDCP key */
315
316
317 /*
318         MM_IMAGE_ERROR_CLASS
319 */
320 #define MM_ERROR_IMAGE_FILEOPEN                         (MM_ERROR_IMAGE_CLASS | 1)              /**< Cannot open file */
321 #define MM_ERROR_IMAGE_INTERNAL                         (MM_ERROR_IMAGE_CLASS | 2)              /**< Image module internal error */
322 #define MM_ERROR_IMAGEHANDLE_NOT_INITIALIZED            (MM_ERROR_IMAGE_CLASS | 3)              /**< Fail to open camera device */
323 #define MM_ERROR_NO_DECODED_DATA                        (MM_ERROR_IMAGE_CLASS | 4)              /**< Fail to control camera device */
324 #define MM_ERROR_IMAGE_NO_FREE_SPACE                    (MM_ERROR_IMAGE_CLASS | 5)              /**< Not enough memory */
325 #define MM_ERROR_IMAGE_INVALID_VALUE                    (MM_ERROR_IMAGE_CLASS | 0x22)           /**< Invalid value */
326 #define MM_ERROR_IMAGE_NOT_SUPPORT_FORMAT               (MM_ERROR_IMAGE_CLASS | 0x23)           /**< Not supported image format */
327 #define MM_ERROR_IMAGE_DEVICE_NOT_SUPPORT               (MM_ERROR_IMAGE_CLASS | 0x24)           /**< Not supported image device */
328
329 /*
330         MM_ERROR_TRANSCODE_CLASS
331 */
332 #define MM_ERROR_TRANSCODE_FILEOPEN                                     (MM_ERROR_TRANSCODE_CLASS | 1)          /**< Cannot open file */
333 #define MM_ERROR_TRANSCODE_INTERNAL                                     (MM_ERROR_TRANSCODE_CLASS | 2)          /**< Transcode internal error */
334 #define MM_ERROR_TRANSCODE_NOT_INITIALIZED                      (MM_ERROR_TRANSCODE_CLASS | 3)          /**< Fail to open transcode device */
335 #define MM_ERROR_TRANSCODE_NO_DECODED_DATA                      (MM_ERROR_TRANSCODE_CLASS | 4)          /**< Fail to control transcode device */
336 #define MM_ERROR_TRANSCODE_NO_FREE_SPACE                        (MM_ERROR_TRANSCODE_CLASS | 5)          /**< Not enough memory */
337 #define MM_ERROR_TRANSCODE_INVALID_VALUE                        (MM_ERROR_TRANSCODE_CLASS | 0x22)       /**< Invalid value */
338 #define MM_ERROR_TRANSCODE_NOT_SUPPORT_FORMAT           (MM_ERROR_TRANSCODE_CLASS | 0x23)       /**< Not supported transcode format */
339 #define MM_ERROR_TRANSCODE_DEVICE_NOT_SUPPORT           (MM_ERROR_TRANSCODE_CLASS | 0x24)       /**< Not supported transcode device */
340 #define MM_ERROR_TRANSCODE_FILE_NOT_FOUND                       (MM_ERROR_TRANSCODE_CLASS | 0x25)       /**< Cannot find file */
341 #define MM_ERROR_TRANSCODE_RESOURCE_CREATION            (MM_ERROR_TRANSCODE_CLASS | 0x26)       /**< Creating resource of transcode failed */
342 #define MM_ERROR_TRANSCODE_SEEK_FAILED                          (MM_ERROR_TRANSCODE_CLASS | 0x27)       /**< Transcode video seek  failed */
343
344 /*
345  *  MM_ERROR_FILE_CLASS
346  */
347 #define MM_ERROR_FILE_INTERNAL                  (MM_ERROR_FILE_CLASS | 0x01)            /**< Internal error */
348 #define MM_ERROR_FILE_UNKNOWN_FORMAT            (MM_ERROR_FILE_CLASS | 0x02)            /**< Unknown file format */
349
350
351 /*
352         MM_MGR_ERROR_CLASS
353 */
354 #define MM_ERROR_MGR_NOT_INITIALIZED                    (MM_ERROR_MGR_CLASS | 1)                /**< Not initialized MGR */
355 #define MM_ERROR_MGR_CODEC_NOT_FOUND                    (MM_ERROR_MGR_CLASS | 2)                /**< Not supported format */
356 #define MM_ERROR_MGR_DECODE                             (MM_ERROR_MGR_CLASS | 3)                /**< Error while decoding data */
357 #define MM_ERROR_MGR_FILE_NOT_FOUND                     (MM_ERROR_MGR_CLASS | 5)                /**< Cannot find file */
358 #define MM_ERROR_MGR_STREAM_NOT_FOUND                   (MM_ERROR_MGR_CLASS | 6)                /**< Cannot find stream */
359 #define MM_ERROR_MGR_END_OF_STREAM                      (MM_ERROR_MGR_CLASS | 7)                /**< End of stream */
360 #define MM_ERROR_MGR_SEEK                               (MM_ERROR_MGR_CLASS | 8)                /**< Seek related errors */
361 #define MM_ERROR_MGR_INTERNAL                           (MM_ERROR_MGR_CLASS | 9)                /**< Internal errors */
362 #define MM_ERROR_MGR_INVALID_STATE                      (MM_ERROR_MGR_CLASS | 10)               /**< Invalid state */
363 #define MM_ERROR_MGR_OPERATION_NOT_PERMITTED            (MM_ERROR_MGR_CLASS | 0xA)              /**<  Not allowed operation*/
364 #define MM_ERROR_MGR_CAMERA_DEVICE_NOT_FOUND            (MM_ERROR_MGR_CLASS | 0xB)              /**< Cannot find camera device */
365 #define MM_ERROR_MGR_CAMERA_DEVICE_BUSY                 (MM_ERROR_MGR_CLASS | 0xC)              /**< Busy camera device */
366 #define MM_ERROR_MGR_CAMERA_DEVICE_OPEN                 (MM_ERROR_MGR_CLASS | 0xD)              /**< Fail to open camera device */
367 #define MM_ERROR_MGR_CAMERA_DEVICE_IO                   (MM_ERROR_MGR_CLASS | 0xE)              /**< Fail to control camera device */
368 #define MM_ERROR_MGR_CAMERA_NOT_SUPPORTED               (MM_ERROR_MGR_CLASS | 0xF)              /**< Not supported by camera device */
369 #define MM_ERROR_MGR_CAMERA_RESPONSE_TIMEOUT            (MM_ERROR_MGR_CLASS | 0x11)             /**< Not responsed in time */
370 #define MM_ERROR_MGR_CAMERA_INTERNAL                    (MM_ERROR_MGR_CLASS | 0x12)             /**< Camera internal error */
371 #define MM_ERROR_MGR_CAMERA_INVALID_CONDITION           (MM_ERROR_MGR_CLASS | 0x13)             /**< Invalid pre-condition */
372 #define MM_ERROR_MGR_MGR_IN_STATE_TRANSITION            (MM_ERROR_MGR_CLASS | 0x14)             /**< State transition from one state to another */
373 #define MM_ERROR_MGR_RESPONSE_TIMEOUT                   (MM_ERROR_MGR_CLASS | 0x16)             /**< Response timeout error */
374
375
376 /*
377          MM_ERROR_POLICY_CLASS
378  */
379 #define MM_ERROR_POLICY_BLOCKED                 (MM_ERROR_POLICY_CLASS | 0x01)          /**< Blocked by Audio system policy */
380 #define MM_ERROR_POLICY_INTERRUPTED             (MM_ERROR_POLICY_CLASS | 0x02)          /**< Interrupted by Audio system policy */
381 #define MM_ERROR_POLICY_INTERNAL                (MM_ERROR_POLICY_CLASS | 0x03)          /**< Internal errors */
382 #define MM_ERROR_POLICY_DUPLICATED              (MM_ERROR_POLICY_CLASS | 0x04)          /**< Duplicated Policy Instance */
383 #define MM_ERROR_POLICY_RESTRICTED              (MM_ERROR_POLICY_CLASS | 0x05)          /**< Restricted by security system policy */
384 #define MM_ERROR_POLICY_BLOCKED_BY_CALL         (MM_ERROR_POLICY_CLASS | 0x06)          /**< Blocked by Audio system policy - CALL */
385 #define MM_ERROR_POLICY_BLOCKED_BY_ALARM        (MM_ERROR_POLICY_CLASS | 0x07)          /**< Blocked by Audio system policy - ALARM */
386 /**
387         @}
388 */
389
390
391 #ifdef __cplusplus
392         }
393 #endif
394
395 #endif  /* __MM_ERROR_H__ */