[0.2.116] mm_attrs: Export API set located in mm_attrs_private.h
[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_RESOURCE_CLASS                 0x80000500              /**< Category for describing resource error group */
49 #define MM_ERROR_FILE_CLASS                     0x80000600              /**< Category for describing file error group */
50 #define MM_ERROR_STREAMRECORDER_CLASS           0x80000700      /**< Category for describing streamrecorder error group */
51 #define MM_ERROR_CAMCORDER_CLASS                0x80000800              /**< Category for describing camcorder error group */
52 #define MM_ERROR_WFD_CLASS              0x80000900              /**< Category for describing wifi-display error group */
53 #define MM_ERROR_IMAGE_CLASS                    0x80000a00              /**< Category for describing image error group */
54 #define MM_ERROR_POLICY_CLASS                   0x80000b00              /**< Category for Policy */
55 #define MM_ERROR_TRANSCODE_CLASS                0x80000c00              /**< Error message for describing transcode error group */
56 #define MM_ERROR_EVASRENDER_CLASS               0x80000d00              /**< Error message for describing mm-evas-renderer error group */
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 #define MM_ERROR_NOT_IMPLEMENTED                (MM_ERROR_CLASS | 0x0a)         /**< Not implemented functions */
72
73 /*
74         MM_ERROR_COMMON_CLASS
75 */
76 #define MM_ERROR_COMMON_INVALID_ARGUMENT        (MM_ERROR_COMMON_CLASS | 0x01)          /**< Invalid argument */
77 #define MM_ERROR_COMMON_NO_FREE_SPACE           (MM_ERROR_COMMON_CLASS | 0x02)          /**< Out of storage */
78 #define MM_ERROR_COMMON_OUT_OF_MEMORY           (MM_ERROR_COMMON_CLASS | 0x03)          /**< Out of memory */
79 #define MM_ERROR_COMMON_UNKNOWN                 (MM_ERROR_COMMON_CLASS | 0x04)          /**< Unknown error */
80 #define MM_ERROR_COMMON_INVALID_ATTRTYPE        (MM_ERROR_COMMON_CLASS | 0x05)          /**< Invalid argument */
81 #define MM_ERROR_COMMON_INVALID_PERMISSION      (MM_ERROR_COMMON_CLASS | 0x06)          /**< Invalid permission */
82 #define MM_ERROR_COMMON_OUT_OF_ARRAY            (MM_ERROR_COMMON_CLASS | 0x07)          /**< Out of array */
83 #define MM_ERROR_COMMON_OUT_OF_RANGE            (MM_ERROR_COMMON_CLASS | 0x08)          /**< Out of value range*/
84 #define MM_ERROR_COMMON_ATTR_NOT_EXIST          (MM_ERROR_COMMON_CLASS | 0x09)          /**< Attribute doesn't exist. */
85 #define MM_ERROR_COMMON_INTERNAL                        (MM_ERROR_COMMON_CLASS | 0x0a)          /**< Internal errors */
86
87 /*
88  *      MM_ERROR_SOUND_CLASS
89  */
90 #define MM_ERROR_SOUND_NOT_INITIALIZED                  (MM_ERROR_SOUND_CLASS | 0x01)           /**< Not initialized player */
91 #define MM_ERROR_SOUND_CODEC_NOT_FOUND                  (MM_ERROR_SOUND_CLASS | 0x02)           /**< Not supported format */
92 #define MM_ERROR_SOUND_DECODE                           (MM_ERROR_SOUND_CLASS | 0x03)           /**< Error while decoding data */
93 #define MM_ERROR_SOUND_NO_FREE_SPACE                    (MM_ERROR_SOUND_CLASS | 0x04)           /**< Out of storage */
94 #define MM_ERROR_SOUND_FILE_NOT_FOUND                   (MM_ERROR_SOUND_CLASS | 0x05)           /**< Cannot find file */
95 #define MM_ERROR_SOUND_STREAM_NOT_FOUND                 (MM_ERROR_SOUND_CLASS | 0x06)           /**< Cannot find stream */
96 #define MM_ERROR_SOUND_END_OF_STREAM                    (MM_ERROR_SOUND_CLASS | 0x07)           /**< End of stream */
97 #define MM_ERROR_SOUND_SEEK                             (MM_ERROR_SOUND_CLASS | 0x08)           /**< Seek related errors */
98 #define MM_ERROR_SOUND_INVALID_POINTER                  (MM_ERROR_SOUND_CLASS | 0x09)           /**< Invalid pointer */
99 #define MM_ERROR_SOUND_PERMISSION_DENIED                (MM_ERROR_SOUND_CLASS | 0x0a)           /**< Permission Denied */
100 #define MM_ERROR_SOUND_INVALID_OPERATION                (MM_ERROR_SOUND_CLASS | 0x10)           /**< Invalid operation */
101 #define MM_ERROR_SOUND_NO_DATA                          (MM_ERROR_SOUND_CLASS | 0x11)           /**< No data */
102
103 #define MM_ERROR_SOUND_INVALID_FILE                     (MM_ERROR_SOUND_CLASS | 0x21)           /**< Invalid file */
104 #define MM_ERROR_SOUND_INVALID_PATH                     (MM_ERROR_SOUND_CLASS | 0x22)           /**< Invalid path */
105 #define MM_ERROR_SOUND_INVALID_VOLUME                   (MM_ERROR_SOUND_CLASS | 0x23)           /**< Invalid volume */
106 #define MM_ERROR_SOUND_UNSUPPORTED_MEDIA_TYPE           (MM_ERROR_SOUND_CLASS | 0x24)           /**< Invalid media type */
107 #define MM_ERROR_SOUND_INTERNAL                         (MM_ERROR_SOUND_CLASS | 0x25)           /**< Internal errors */
108 #define MM_ERROR_SOUND_INVALID_STATE                    (MM_ERROR_SOUND_CLASS | 0x26)           /**< Invalid state */
109 #define MM_ERROR_SOUND_VOLUME_BLOCKED_BY_SAFETY (MM_ERROR_SOUND_CLASS | 0x27) /**< Set volume fail dueto safety volume popup */
110
111 #define MM_ERROR_SOUND_VOLUME_NO_INSTANCE               (MM_ERROR_SOUND_CLASS | 0x31)           /**< No active instance */
112 #define MM_ERROR_SOUND_VOLUME_CAPTURE_ONLY              (MM_ERROR_SOUND_CLASS | 0x32)           /**< Capture instance only */
113
114 #define MM_ERROR_SOUND_DEVICE_NOT_OPENED                (MM_ERROR_SOUND_CLASS | 0x41)           /**< Cannot open sound device */
115 #define MM_ERROR_SOUND_DEVICE_INVALID_FORMAT            (MM_ERROR_SOUND_CLASS | 0x42)           /**< Invalid file format */
116 #define MM_ERROR_SOUND_DEVICE_INVALID_CHANNEL           (MM_ERROR_SOUND_CLASS | 0x43)           /**< Invalid channel type */
117 #define MM_ERROR_SOUND_DEVICE_INVALID_SAMPLERATE        (MM_ERROR_SOUND_CLASS | 0x44)           /**< Invalid samplerate */
118 #define MM_ERROR_SOUND_DEVICE_INVALID_MODE              (MM_ERROR_SOUND_CLASS | 0x45)           /**< Invalid mode */
119 #define MM_ERROR_SOUND_DEVICE_INVALID_VOLUME            (MM_ERROR_SOUND_CLASS | 0x46)           /**< Invalid volume */
120
121 #define MM_ERROR_SOUND_UNSUPPORTED_FORMAT               MM_ERROR_SOUND_UNSUPPORTED_MEDIA_TYPE   /**< Not supported media format */
122
123
124 /*
125         MM_ERROR_RADIO_CLASS
126  */
127 #define MM_ERROR_RADIO_NOT_INITIALIZED                  (MM_ERROR_RADIO_CLASS | 0x01)           /**< Radio instance is not initialized */
128 #define MM_ERROR_RADIO_NO_FREE_SPACE                    (MM_ERROR_RADIO_CLASS | 0x02)           /**< Not enough memory */
129 #define MM_ERROR_RADIO_INTERNAL                         (MM_ERROR_RADIO_CLASS | 0x03)           /**< Radio internal error */
130 #define MM_ERROR_RADIO_RESPONSE_TIMEOUT                 (MM_ERROR_RADIO_CLASS | 0x04)           /**< Response timeout error */
131 #define MM_ERROR_RADIO_INVALID_STATE                    (MM_ERROR_RADIO_CLASS | 0x05)           /**< Radio is in invalid state */
132 #define MM_ERROR_RADIO_NO_OP                            (MM_ERROR_RADIO_CLASS | 0x06)           /**< Radio is in desired state */
133 #define MM_ERROR_RADIO_DEVICE_NOT_OPENED                (MM_ERROR_RADIO_CLASS | 0x07)           /**< Failed to opne radio devide */
134 #define MM_ERROR_RADIO_DEVICE_NOT_FOUND                 (MM_ERROR_RADIO_CLASS | 0x08)           /**< Failed to find  radio devide */
135 #define MM_ERROR_RADIO_PERMISSION_DENIED                (MM_ERROR_RADIO_CLASS | 0x09)           /**< Not supported permission */
136 #define MM_ERROR_RADIO_NO_ANTENNA               (MM_ERROR_RADIO_CLASS | 0x0a)           /**<  No antenna error */
137
138
139 /*
140         MM_ERROR_PLAYER_CLASS
141 */
142 #define MM_ERROR_PLAYER_NOT_INITIALIZED                                 (MM_ERROR_PLAYER_CLASS | 0x01)          /**< Not initialized player */
143 #define MM_ERROR_PLAYER_CODEC_NOT_FOUND                                 (MM_ERROR_PLAYER_CLASS | 0x02)          /**< Not supported format */
144 #define MM_ERROR_PLAYER_DECODE                                          (MM_ERROR_PLAYER_CLASS | 0x03)          /**< Error while decoding data */
145 #define MM_ERROR_PLAYER_NO_FREE_SPACE                                   (MM_ERROR_PLAYER_CLASS | 0x04)          /**< Out of storage */
146 #define MM_ERROR_PLAYER_FILE_NOT_FOUND                                  (MM_ERROR_PLAYER_CLASS | 0x05)          /**< Cannot find file */
147 #define MM_ERROR_PLAYER_SEEK                                            (MM_ERROR_PLAYER_CLASS | 0x06)          /**< Seek related errors */
148 #define MM_ERROR_PLAYER_INTERNAL                                        (MM_ERROR_PLAYER_CLASS | 0x07)          /**< Internal errors */
149 #define MM_ERROR_PLAYER_INVALID_STATE                                   (MM_ERROR_PLAYER_CLASS | 0x08)          /**< Invalid state */
150 #define MM_ERROR_PLAYER_INVALID_URI                                     (MM_ERROR_PLAYER_CLASS | 0x09)          /**< Invalid URI */
151 #define MM_ERROR_PLAYER_NO_OP                                           (MM_ERROR_PLAYER_CLASS | 0x0a)          /**< No operation */
152 #define MM_ERROR_PLAYER_NOT_SUPPORTED_FORMAT                            (MM_ERROR_PLAYER_CLASS | 0x0b)          /**< Not supported format */
153 #define MM_ERROR_PLAYER_NOT_SUPPORTED_SUBTITLE                          (MM_ERROR_PLAYER_CLASS | 0x0c)          /**< Not supported subtitle */
154 #define MM_ERROR_PLAYER_AUDIO_CODEC_NOT_FOUND                           (MM_ERROR_PLAYER_CLASS | 0x0d)          /**< Not supported audio codec */
155 #define MM_ERROR_PLAYER_VIDEO_CODEC_NOT_FOUND                           (MM_ERROR_PLAYER_CLASS | 0x0e)          /**< Not supported video codec */
156 #define MM_ERROR_PLAYER_STREAMING_FAIL                                  (MM_ERROR_PLAYER_CLASS | 0x0f)          /**< Fail to play streaming */
157 #define MM_ERROR_PLAYER_INVALID_STREAM                                  (MM_ERROR_PLAYER_CLASS | 0x10)          /**< Invalid stream */
158 #define MM_ERROR_PLAYER_DOING_SEEK                                      (MM_ERROR_PLAYER_CLASS | 0x11)          /**< Still seeking */
159 #define MM_ERROR_PLAYER_DRM_NO_LICENSE                                  (MM_ERROR_PLAYER_CLASS | 0x12)          /**< No license */
160 #define MM_ERROR_PLAYER_DRM_EXPIRED                                     (MM_ERROR_PLAYER_CLASS | 0x13)          /**< Expired license */
161 #define MM_ERROR_PLAYER_DRM_FUTURE_USE                                  (MM_ERROR_PLAYER_CLASS | 0x14)          /**< License for future use */
162 #define MM_ERROR_PLAYER_DRM_NOT_AUTHORIZED                              (MM_ERROR_PLAYER_CLASS | 0x15)          /**< Not authorized */
163 #define MM_ERROR_PLAYER_DRM_OUTPUT_PROTECTION                           (MM_ERROR_PLAYER_CLASS | 0x16)          /**< Output protected */
164 #define MM_ERROR_PLAYER_RESOURCE_LIMIT                                  (MM_ERROR_PLAYER_CLASS | 0x17)          /**< Resource limit */
165 #define MM_ERROR_PLAYER_PERMISSION_DENIED                               (MM_ERROR_PLAYER_CLASS | 0x18)          /**< Permission denied */
166 #define MM_ERROR_PLAYER_BUFFER_SPACE                                    (MM_ERROR_PLAYER_CLASS | 0x19)          /**< No buffer space available */
167
168 #define MM_ERROR_PLAYER_STREAMING_UNSUPPORTED_AUDIO                     (MM_ERROR_PLAYER_CLASS | 0x22)          /**< Unsupported audio  */
169 #define MM_ERROR_PLAYER_STREAMING_UNSUPPORTED_VIDEO                     (MM_ERROR_PLAYER_CLASS | 0x23)          /**< Unsupported video  */
170 #define MM_ERROR_PLAYER_STREAMING_CONNECTION_FAIL                       (MM_ERROR_PLAYER_CLASS | 0x24)          /**< Fail to connect to streaming server  */
171 #define MM_ERROR_PLAYER_STREAMING_DNS_FAIL                              (MM_ERROR_PLAYER_CLASS | 0x25)          /**< Fail to get host using DNS  */
172 #define MM_ERROR_PLAYER_STREAMING_SERVER_DISCONNECTED                   (MM_ERROR_PLAYER_CLASS | 0x26)          /**< Streaming server is disconnected  */
173 #define MM_ERROR_PLAYER_STREAMING_BAD_SERVER                            (MM_ERROR_PLAYER_CLASS | 0x27)          /**< Streaming server's bad beahvior  */
174 #define MM_ERROR_PLAYER_STREAMING_INVALID_PROTOCOL                      (MM_ERROR_PLAYER_CLASS | 0x28)          /**< Invalid protocol  */
175 #define MM_ERROR_PLAYER_STREAMING_INVALID_URL                           (MM_ERROR_PLAYER_CLASS | 0x29)          /**< Invalid URL  */
176 #define MM_ERROR_PLAYER_STREAMING_UNEXPECTED_MSG                        (MM_ERROR_PLAYER_CLASS | 0x2a)          /**< Unexpected message from streaming server  */
177 #define MM_ERROR_PLAYER_STREAMING_OUT_OF_MEMORIES                       (MM_ERROR_PLAYER_CLASS | 0x2b)          /**< Out of memories  */
178 #define MM_ERROR_PLAYER_STREAMING_RTSP_TIMEOUT                          (MM_ERROR_PLAYER_CLASS | 0x2c)          /**< RTSP timed out  */
179 #define MM_ERROR_PLAYER_STREAMING_BAD_REQUEST                           (MM_ERROR_PLAYER_CLASS | 0x2d)          /**< Bad request  */
180 #define MM_ERROR_PLAYER_STREAMING_NOT_AUTHORIZED                        (MM_ERROR_PLAYER_CLASS | 0x2e)          /**< Not authorized  */
181 #define MM_ERROR_PLAYER_STREAMING_PAYMENT_REQUIRED                      (MM_ERROR_PLAYER_CLASS | 0x2f)          /**< Payment required  */
182 #define MM_ERROR_PLAYER_STREAMING_FORBIDDEN                             (MM_ERROR_PLAYER_CLASS | 0x30)          /**< Forbidden by streaming server  */
183 #define MM_ERROR_PLAYER_STREAMING_CONTENT_NOT_FOUND                     (MM_ERROR_PLAYER_CLASS | 0x31)          /**< Content could not be found  */
184 #define MM_ERROR_PLAYER_STREAMING_METHOD_NOT_ALLOWED                    (MM_ERROR_PLAYER_CLASS | 0x32)          /**< Not allowed method by streaming server  */
185 #define MM_ERROR_PLAYER_STREAMING_NOT_ACCEPTABLE                        (MM_ERROR_PLAYER_CLASS | 0x33)          /**< Not accepted by streaming server  */
186 #define MM_ERROR_PLAYER_STREAMING_PROXY_AUTHENTICATION_REQUIRED         (MM_ERROR_PLAYER_CLASS | 0x34)          /**< Proxy authentication is required  */
187 #define MM_ERROR_PLAYER_STREAMING_SERVER_TIMEOUT                        (MM_ERROR_PLAYER_CLASS | 0x35)          /**< Streaming server timed out  */
188 #define MM_ERROR_PLAYER_STREAMING_GONE                                  (MM_ERROR_PLAYER_CLASS | 0x36)          /**< Gone */
189 #define MM_ERROR_PLAYER_STREAMING_LENGTH_REQUIRED                       (MM_ERROR_PLAYER_CLASS | 0x37)          /**< Length required */
190 #define MM_ERROR_PLAYER_STREAMING_PRECONDITION_FAILED                   (MM_ERROR_PLAYER_CLASS | 0x38)          /**< Precondition is failed */
191 #define MM_ERROR_PLAYER_STREAMING_REQUEST_ENTITY_TOO_LARGE              (MM_ERROR_PLAYER_CLASS | 0x39)          /**< Request entity is too large */
192 #define MM_ERROR_PLAYER_STREAMING_REQUEST_URI_TOO_LARGE                 (MM_ERROR_PLAYER_CLASS | 0x3a)          /**< Request URL is too large */
193 #define MM_ERROR_PLAYER_STREAMING_UNSUPPORTED_MEDIA_TYPE                (MM_ERROR_PLAYER_CLASS | 0x3b)          /**< Unsupported media type */
194 #define MM_ERROR_PLAYER_STREAMING_PARAMETER_NOT_UNDERSTOOD              (MM_ERROR_PLAYER_CLASS | 0x3c)          /**< Parameter could not bu understood  */
195 #define MM_ERROR_PLAYER_STREAMING_CONFERENCE_NOT_FOUND                  (MM_ERROR_PLAYER_CLASS | 0x3d)          /**< Conference could not be found */
196 #define MM_ERROR_PLAYER_STREAMING_NOT_ENOUGH_BANDWIDTH                  (MM_ERROR_PLAYER_CLASS | 0x3e)          /**< Bandwidth is not enough */
197 #define MM_ERROR_PLAYER_STREAMING_NO_SESSION_ID                         (MM_ERROR_PLAYER_CLASS | 0x3f)          /**< No session ID */
198 #define MM_ERROR_PLAYER_STREAMING_METHOD_NOT_VALID_IN_THIS_STATE        (MM_ERROR_PLAYER_CLASS | 0x40)          /**< Method is not valid in this state  */
199 #define MM_ERROR_PLAYER_STREAMING_HEADER_FIELD_NOT_VALID_FOR_SOURCE     (MM_ERROR_PLAYER_CLASS | 0x41)          /**< Header field is not valid for source */
200 #define MM_ERROR_PLAYER_STREAMING_INVALID_RANGE                         (MM_ERROR_PLAYER_CLASS | 0x42)          /**< Invalid range */
201 #define MM_ERROR_PLAYER_STREAMING_PARAMETER_IS_READONLY                 (MM_ERROR_PLAYER_CLASS | 0x43)          /**< Parameter is read only */
202 #define MM_ERROR_PLAYER_STREAMING_AGGREGATE_OP_NOT_ALLOWED              (MM_ERROR_PLAYER_CLASS | 0x44)          /**< Aggregation option is not allowed */
203 #define MM_ERROR_PLAYER_STREAMING_ONLY_AGGREGATE_OP_ALLOWED             (MM_ERROR_PLAYER_CLASS | 0x45)          /**< Only aggregation option is allowed  */
204 #define MM_ERROR_PLAYER_STREAMING_BAD_TRANSPORT                         (MM_ERROR_PLAYER_CLASS | 0x46)          /**< Bad transport */
205 #define MM_ERROR_PLAYER_STREAMING_DESTINATION_UNREACHABLE               (MM_ERROR_PLAYER_CLASS | 0x47)          /**< Destination could not be reached */
206 #define MM_ERROR_PLAYER_STREAMING_INTERNAL_SERVER_ERROR                 (MM_ERROR_PLAYER_CLASS | 0x48)          /**< Internal server error */
207 #define MM_ERROR_PLAYER_STREAMING_NOT_IMPLEMENTED                       (MM_ERROR_PLAYER_CLASS | 0x49)          /**< Not implemented */
208 #define MM_ERROR_PLAYER_STREAMING_BAD_GATEWAY                           (MM_ERROR_PLAYER_CLASS | 0x4a)          /**< Bad gateway */
209 #define MM_ERROR_PLAYER_STREAMING_SERVICE_UNAVAILABLE                   (MM_ERROR_PLAYER_CLASS | 0x4b)          /**< Service is unavailable */
210 #define MM_ERROR_PLAYER_STREAMING_GATEWAY_TIME_OUT                      (MM_ERROR_PLAYER_CLASS | 0x4c)          /**< Gateway timed out  */
211 #define MM_ERROR_PLAYER_STREAMING_RTSP_VERSION_NOT_SUPPORTED            (MM_ERROR_PLAYER_CLASS | 0x4d)          /**< RTSP version is not supported */
212 #define MM_ERROR_PLAYER_STREAMING_OPTION_NOT_SUPPORTED                  (MM_ERROR_PLAYER_CLASS | 0x4e)          /**< Not supported option */
213
214 #define MM_ERROR_PLAYER_SOUND_EFFECT_NOT_SUPPORTED_FILTER               (MM_ERROR_PLAYER_CLASS | 0x51)          /**< Not supported filter */
215 #define MM_ERROR_PLAYER_SOUND_EFFECT_INVALID_STATUS                     (MM_ERROR_PLAYER_CLASS | 0x52)          /**< Invalid status */
216
217
218 /*
219         MM_ERROR_RESOURCE_CLASS
220  */
221 #define MM_ERROR_RESOURCE_NOT_INITIALIZED                       (MM_ERROR_RESOURCE_CLASS | 0x01)                /**< Not initialized */
222 #define MM_ERROR_RESOURCE_INTERNAL                              (MM_ERROR_RESOURCE_CLASS | 0x02)                /**< Internal errors */
223 #define MM_ERROR_RESOURCE_INVALID_STATE                         (MM_ERROR_RESOURCE_CLASS | 0x03)                /**< Invalid state */
224
225
226 /*
227         MM_CAMCORDER_ERROR_CLASS
228 */
229 #define MM_ERROR_CAMCORDER_DEVICE                       (MM_ERROR_CAMCORDER_CLASS | 0x01)               /**< General error of camera device */
230 #define MM_ERROR_CAMCORDER_DEVICE_NOT_FOUND             (MM_ERROR_CAMCORDER_CLASS | 0x02)               /**< Cannot find camera device */
231 #define MM_ERROR_CAMCORDER_DEVICE_BUSY                  (MM_ERROR_CAMCORDER_CLASS | 0x03)               /**< Busy camera device */
232 #define MM_ERROR_CAMCORDER_DEVICE_OPEN                  (MM_ERROR_CAMCORDER_CLASS | 0x04)               /**< Fail to open camera device */
233 #define MM_ERROR_CAMCORDER_DEVICE_IO                    (MM_ERROR_CAMCORDER_CLASS | 0x05)               /**< Fail to control camera device */
234 #define MM_ERROR_CAMCORDER_DEVICE_TIMEOUT               (MM_ERROR_CAMCORDER_CLASS | 0x06)               /**< Device Timeout */
235 #define MM_ERROR_CAMCORDER_DEVICE_REG_TROUBLE           (MM_ERROR_CAMCORDER_CLASS | 0x07)               /**< Register trouble of camear device */
236 #define MM_ERROR_CAMCORDER_DEVICE_WRONG_JPEG            (MM_ERROR_CAMCORDER_CLASS | 0x08)               /**< Captured data is abnormal */
237 #define MM_ERROR_CAMCORDER_DEVICE_LACK_BUFFER           (MM_ERROR_CAMCORDER_CLASS | 0x09)               /**< Buffer of device is not sufficient */
238
239 #define MM_ERROR_CAMCORDER_GST_CORE                     (MM_ERROR_CAMCORDER_CLASS | 0x0a)               /**< Gst Core error */
240 #define MM_ERROR_CAMCORDER_GST_LIBRARY                  (MM_ERROR_CAMCORDER_CLASS | 0x0b)               /**< Gst library error */
241 #define MM_ERROR_CAMCORDER_GST_RESOURCE                 (MM_ERROR_CAMCORDER_CLASS | 0x0c)               /**< Gst resource error */
242 #define MM_ERROR_CAMCORDER_GST_STREAM                   (MM_ERROR_CAMCORDER_CLASS | 0x0d)               /**< Gst stream error */
243 #define MM_ERROR_CAMCORDER_GST_STATECHANGE              (MM_ERROR_CAMCORDER_CLASS | 0x0e)               /**< Gst state change failed */
244 #define MM_ERROR_CAMCORDER_GST_NEGOTIATION              (MM_ERROR_CAMCORDER_CLASS | 0x0f)               /**< Gst negotiation failed */
245 #define MM_ERROR_CAMCORDER_GST_LINK                     (MM_ERROR_CAMCORDER_CLASS | 0x10)               /**< Gst linking failed */
246 #define MM_ERROR_CAMCORDER_GST_FLOW_ERROR               (MM_ERROR_CAMCORDER_CLASS | 0x11)               /**< Gst linking failed */
247
248 #define MM_ERROR_CAMCORDER_ENCODER                      (MM_ERROR_CAMCORDER_CLASS | 0x12)               /**< General error of Encoder */
249 #define MM_ERROR_CAMCORDER_ENCODER_BUFFER               (MM_ERROR_CAMCORDER_CLASS | 0x13)               /**< Encoder buffer error */
250 #define MM_ERROR_CAMCORDER_ENCODER_WRONG_TYPE           (MM_ERROR_CAMCORDER_CLASS | 0x14)               /**< Encoder wrong type (format or param) */
251 #define MM_ERROR_CAMCORDER_ENCODER_WORKING              (MM_ERROR_CAMCORDER_CLASS | 0x15)               /**< Encoding fail */
252
253 #define MM_ERROR_CAMCORDER_INVALID_CONDITION            (MM_ERROR_CAMCORDER_CLASS | 0x16)               /**< Invalid pre-condition */
254 #define MM_ERROR_CAMCORDER_INVALID_STATE                (MM_ERROR_CAMCORDER_CLASS | 0x17)               /**< Invalid state */
255 #define MM_ERROR_CAMCORDER_INVALID_ARGUMENT             (MM_ERROR_CAMCORDER_CLASS | 0x18)               /**< Invalid Argument */
256
257 #define MM_ERROR_CAMCORDER_INTERNAL                     (MM_ERROR_CAMCORDER_CLASS | 0x19)               /**< Internal error */
258 #define MM_ERROR_CAMCORDER_NOT_SUPPORTED                (MM_ERROR_CAMCORDER_CLASS | 0x1a)               /**< Not supported by camera device */
259 #define MM_ERROR_CAMCORDER_RESPONSE_TIMEOUT             (MM_ERROR_CAMCORDER_CLASS | 0x1b)               /**< Not responsed in time */
260 #define MM_ERROR_CAMCORDER_NOT_INITIALIZED              (MM_ERROR_CAMCORDER_CLASS | 0x1c)               /**< Not initialized camcorder */
261 #define MM_ERROR_CAMCORDER_LOW_MEMORY                   (MM_ERROR_CAMCORDER_CLASS | 0x1d)               /**< Memory alloc failed */
262 #define MM_ERROR_CAMCORDER_RESOURCE_CREATION            (MM_ERROR_CAMCORDER_CLASS | 0x1e)               /**< Creating resource of camcorder failed */
263 #define MM_ERROR_CAMCORDER_CMD_IS_RUNNING               (MM_ERROR_CAMCORDER_CLASS | 0x1f)               /**< Command is running now */
264 #define MM_ERROR_CAMCORDER_DSP_FAIL                     (MM_ERROR_CAMCORDER_CLASS | 0x20)               /**< DSP fail */
265 #define MM_ERROR_CAMCORDER_AUDIO_EMPTY                  (MM_ERROR_CAMCORDER_CLASS | 0x21)               /**< Audio data is empty */
266 #define MM_ERROR_CAMCORDER_CREATE_CONFIGURE             (MM_ERROR_CAMCORDER_CLASS | 0x22)               /**< Failed to create configure structure */
267 #define MM_ERROR_CAMCORDER_FILE_SIZE_OVER               (MM_ERROR_CAMCORDER_CLASS | 0x23)               /**< File size is greater than max size */
268 #define MM_ERROR_CAMCORDER_DISPLAY_DEVICE_OFF           (MM_ERROR_CAMCORDER_CLASS | 0x24)               /**< Display device is off. Requests could be ignored */
269
270 #define MM_ERROR_CAMCORDER_MNOTE_CREATION               (MM_ERROR_CAMCORDER_CLASS | 0x26)               /**< Exif makernote data construction failed */
271 #define MM_ERROR_CAMCORDER_MNOTE_MALLOC                 (MM_ERROR_CAMCORDER_CLASS | 0x27)               /**< Memory allocation for makernote entries failed */
272 #define MM_ERROR_CAMCORDER_MNOTE_ADD_ENTRY              (MM_ERROR_CAMCORDER_CLASS | 0x28)               /**< Adding a makernote entry to list failed */
273
274 /*
275         MM_ERROR_STREAMRECORDER_CLASS
276 */
277 #define MM_ERROR_STREAMRECORDER_DEVICE                  (MM_ERROR_STREAMRECORDER_CLASS | 0x01)          /**< General error of streamrecorder device */
278
279 #define MM_ERROR_STREAMRECORDER_GST_CORE                (MM_ERROR_STREAMRECORDER_CLASS | 0x0a)          /**< Gst Core error */
280 #define MM_ERROR_STREAMRECORDER_GST_LIBRARY             (MM_ERROR_STREAMRECORDER_CLASS | 0x0b)          /**< Gst library error */
281 #define MM_ERROR_STREAMRECORDER_GST_RESOURCE            (MM_ERROR_STREAMRECORDER_CLASS | 0x0c)          /**< Gst resource error */
282 #define MM_ERROR_STREAMRECORDER_GST_STREAM              (MM_ERROR_STREAMRECORDER_CLASS | 0x0d)          /**< Gst stream error */
283 #define MM_ERROR_STREAMRECORDER_GST_STATECHANGE         (MM_ERROR_STREAMRECORDER_CLASS | 0x0e)          /**< Gst state change failed */
284 #define MM_ERROR_STREAMRECORDER_GST_NEGOTIATION         (MM_ERROR_STREAMRECORDER_CLASS | 0x0f)          /**< Gst negotiation failed */
285 #define MM_ERROR_STREAMRECORDER_GST_LINK                (MM_ERROR_STREAMRECORDER_CLASS | 0x10)          /**< Gst linking failed */
286 #define MM_ERROR_STREAMRECORDER_GST_FLOW_ERROR          (MM_ERROR_STREAMRECORDER_CLASS | 0x11)          /**< Gst linking failed */
287
288 #define MM_ERROR_STREAMRECORDER_ENCODER                 (MM_ERROR_STREAMRECORDER_CLASS | 0x12)          /**< General error of Encoder */
289 #define MM_ERROR_STREAMRECORDER_ENCODER_BUFFER          (MM_ERROR_STREAMRECORDER_CLASS | 0x13)          /**< Encoder buffer error */
290 #define MM_ERROR_STREAMRECORDER_ENCODER_WRONG_TYPE      (MM_ERROR_STREAMRECORDER_CLASS | 0x14)          /**< Encoder wrong type (format or param) */
291 #define MM_ERROR_STREAMRECORDER_ENCODER_WORKING         (MM_ERROR_STREAMRECORDER_CLASS | 0x15)          /**< Encoding fail */
292
293 #define MM_ERROR_STREAMRECORDER_INVALID_CONDITION       (MM_ERROR_STREAMRECORDER_CLASS | 0x16)          /**< Invalid pre-condition */
294
295 #define MM_ERROR_STREAMRECORDER_INVALID_ARGUMENT        (MM_ERROR_STREAMRECORDER_CLASS | 0x18)          /**< Invalid Argument */
296
297 #define MM_ERROR_STREAMRECORDER_INTERNAL                (MM_ERROR_STREAMRECORDER_CLASS | 0x19)          /**< Internal error */
298 #define MM_ERROR_STREAMRECORDER_RESPONSE_TIMEOUT        (MM_ERROR_STREAMRECORDER_CLASS | 0x1b)          /**< Not responsed in time */
299
300 #define MM_ERROR_STREAMRECORDER_NOT_INITIALIZED         (MM_ERROR_STREAMRECORDER_CLASS | 0x1c)          /**< Not initialized streamrecorder */
301 #define MM_ERROR_STREAMRECORDER_LOW_MEMORY              (MM_ERROR_STREAMRECORDER_CLASS | 0x1d)          /**< Memory alloc failed */
302 #define MM_ERROR_STREAMRECORDER_RESOURCE_CREATION       (MM_ERROR_STREAMRECORDER_CLASS | 0x1e)          /**< Creating resource of streamrecorder failed */
303 #define MM_ERROR_STREAMRECORDER_CMD_IS_RUNNING          (MM_ERROR_STREAMRECORDER_CLASS | 0x1f)          /**< Command is running now */
304
305 #define MM_ERROR_STREAMRECORDER_FILE_SIZE_OVER          (MM_ERROR_STREAMRECORDER_CLASS | 0x23)          /**< File size is greater than max size */
306
307 #define MM_ERROR_STREAMRECORDER_AUDIOBUFFER_PUSH        (MM_ERROR_STREAMRECORDER_CLASS | 0x26)          /**< Exif makernote data construction failed */
308 #define MM_ERROR_STREAMRECORDER_VIDEOBUFFER_PUSH        (MM_ERROR_STREAMRECORDER_CLASS | 0x27)          /**< Memory allocation for makernote entries failed */
309 #define MM_ERROR_STREAMRECORDER_BUFFER_CONVERT          (MM_ERROR_STREAMRECORDER_CLASS | 0x28)          /**< Adding a makernote entry to list failed */
310
311 /*
312         MM_ERROR_WFD_CLASS
313 */
314 #define MM_ERROR_WFD_INVALID_ARGUMENT                   (MM_ERROR_WFD_CLASS | 0x01)             /**< Invalid Argument */
315 #define MM_ERROR_WFD_NO_FREE_SPACE                      (MM_ERROR_WFD_CLASS | 0x02)             /**< Out of storage */
316 #define MM_ERROR_WFD_NOT_INITIALIZED                    (MM_ERROR_WFD_CLASS | 0x03)             /**< Not initialized wifi-display */
317 #define MM_ERROR_WFD_NO_OP                              (MM_ERROR_WFD_CLASS | 0x04)             /**< No operation */
318 #define MM_ERROR_WFD_INVALID_STATE                      (MM_ERROR_WFD_CLASS | 0x05)             /**< Invalid state */
319 #define MM_ERROR_WFD_INTERNAL                           (MM_ERROR_WFD_CLASS | 0x06)             /**< Internal errors */
320 #define MM_ERROR_WFD_NOHDCPKEY                          (MM_ERROR_WFD_CLASS | 0x07)             /**< No HDCP key */
321
322
323 /*
324         MM_IMAGE_ERROR_CLASS
325 */
326 #define MM_ERROR_IMAGE_FILEOPEN                         (MM_ERROR_IMAGE_CLASS | 1)              /**< Cannot open file */
327 #define MM_ERROR_IMAGE_INTERNAL                         (MM_ERROR_IMAGE_CLASS | 2)              /**< Image module internal error */
328 #define MM_ERROR_IMAGEHANDLE_NOT_INITIALIZED            (MM_ERROR_IMAGE_CLASS | 3)              /**< Fail to open camera device */
329 #define MM_ERROR_NO_DECODED_DATA                        (MM_ERROR_IMAGE_CLASS | 4)              /**< Fail to control camera device */
330 #define MM_ERROR_IMAGE_NO_FREE_SPACE                    (MM_ERROR_IMAGE_CLASS | 5)              /**< Not enough memory */
331 #define MM_ERROR_IMAGE_INVALID_VALUE                    (MM_ERROR_IMAGE_CLASS | 0x22)           /**< Invalid value */
332 #define MM_ERROR_IMAGE_NOT_SUPPORT_FORMAT               (MM_ERROR_IMAGE_CLASS | 0x23)           /**< Not supported image format */
333 #define MM_ERROR_IMAGE_DEVICE_NOT_SUPPORT               (MM_ERROR_IMAGE_CLASS | 0x24)           /**< Not supported image device */
334
335 /*
336         MM_ERROR_TRANSCODE_CLASS
337 */
338 #define MM_ERROR_TRANSCODE_FILEOPEN                                     (MM_ERROR_TRANSCODE_CLASS | 1)          /**< Cannot open file */
339 #define MM_ERROR_TRANSCODE_INTERNAL                                     (MM_ERROR_TRANSCODE_CLASS | 2)          /**< Transcode internal error */
340 #define MM_ERROR_TRANSCODE_NOT_INITIALIZED                      (MM_ERROR_TRANSCODE_CLASS | 3)          /**< Fail to open transcode device */
341 #define MM_ERROR_TRANSCODE_NO_DECODED_DATA                      (MM_ERROR_TRANSCODE_CLASS | 4)          /**< Fail to control transcode device */
342 #define MM_ERROR_TRANSCODE_NO_FREE_SPACE                        (MM_ERROR_TRANSCODE_CLASS | 5)          /**< Not enough memory */
343 #define MM_ERROR_TRANSCODE_INVALID_VALUE                        (MM_ERROR_TRANSCODE_CLASS | 0x22)       /**< Invalid value */
344 #define MM_ERROR_TRANSCODE_NOT_SUPPORT_FORMAT           (MM_ERROR_TRANSCODE_CLASS | 0x23)       /**< Not supported transcode format */
345 #define MM_ERROR_TRANSCODE_DEVICE_NOT_SUPPORT           (MM_ERROR_TRANSCODE_CLASS | 0x24)       /**< Not supported transcode device */
346 #define MM_ERROR_TRANSCODE_FILE_NOT_FOUND                       (MM_ERROR_TRANSCODE_CLASS | 0x25)       /**< Cannot find file */
347 #define MM_ERROR_TRANSCODE_RESOURCE_CREATION            (MM_ERROR_TRANSCODE_CLASS | 0x26)       /**< Creating resource of transcode failed */
348 #define MM_ERROR_TRANSCODE_SEEK_FAILED                          (MM_ERROR_TRANSCODE_CLASS | 0x27)       /**< Transcode video seek  failed */
349
350 /*
351         MM_ERROR_FILE_CLASS
352  */
353 #define MM_ERROR_FILE_INTERNAL                  (MM_ERROR_FILE_CLASS | 0x01)            /**< Internal error */
354 #define MM_ERROR_FILE_UNKNOWN_FORMAT            (MM_ERROR_FILE_CLASS | 0x02)            /**< Unknown file format */
355
356
357 /*
358          MM_ERROR_POLICY_CLASS
359  */
360 #define MM_ERROR_POLICY_BLOCKED                 (MM_ERROR_POLICY_CLASS | 0x01)          /**< Blocked by Audio system policy */
361 #define MM_ERROR_POLICY_INTERRUPTED             (MM_ERROR_POLICY_CLASS | 0x02)          /**< Interrupted by Audio system policy */
362 #define MM_ERROR_POLICY_INTERNAL                (MM_ERROR_POLICY_CLASS | 0x03)          /**< Internal errors */
363 #define MM_ERROR_POLICY_DUPLICATED              (MM_ERROR_POLICY_CLASS | 0x04)          /**< Duplicated Policy Instance */
364 #define MM_ERROR_POLICY_RESTRICTED              (MM_ERROR_POLICY_CLASS | 0x05)          /**< Restricted by security system policy */
365 #define MM_ERROR_POLICY_BLOCKED_BY_CALL         (MM_ERROR_POLICY_CLASS | 0x06)          /**< Blocked by Audio system policy - CALL */
366 #define MM_ERROR_POLICY_BLOCKED_BY_ALARM        (MM_ERROR_POLICY_CLASS | 0x07)          /**< Blocked by Audio system policy - ALARM */
367
368 /*
369         MM_ERROR_EVASRENDER_CLASS
370  */
371 #define MM_ERROR_EVASRENDER_NO_FREE_SPACE               (MM_ERROR_EVASRENDER_CLASS | 0x01)              /**< Not enough memory */
372 #define MM_ERROR_EVASRENDER_NOT_INITIALIZED             (MM_ERROR_EVASRENDER_CLASS | 0x02)              /**< Not initialized */
373 #define MM_ERROR_EVASRENDER_INTERNAL                    (MM_ERROR_EVASRENDER_CLASS | 0x03)              /**< Internal error */
374 #define MM_ERROR_EVASRENDER_INVALID_OPERATION           (MM_ERROR_EVASRENDER_CLASS | 0x04)              /**< Invalid operation */
375 #define MM_ERROR_EVASRENDER_INVALID_ARGUMENT            (MM_ERROR_EVASRENDER_CLASS | 0x05)              /**< Invalid Argument */
376 /**
377         @}
378 */
379
380 #ifdef __cplusplus
381         }
382 #endif
383
384 #endif  /* __MM_ERROR_H__ */