Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia.MediaCodec / MediaCodec / MediaCodecError.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 using Tizen.Internals.Errors;
18
19 namespace Tizen.Multimedia.MediaCodec
20 {
21     internal enum MediaCodecErrorCode
22     {
23         CodecDefinedBase = -0x019B0000,
24
25         None = ErrorCode.None,
26         OutOfMemory = ErrorCode.OutOfMemory,
27         InvalidParameter = ErrorCode.InvalidParameter,
28         InvalidOperation = ErrorCode.InvalidParameter,
29         NotSupportedOnDevice = ErrorCode.NotSupported,
30         PermissionDenied = ErrorCode.PermissionDenied,
31
32         InvalidState = CodecDefinedBase | 0x01,
33         InvalidInBuffer = CodecDefinedBase | 0x02,
34         InvalidOutBuffer = CodecDefinedBase | 0x03,
35         Internal = CodecDefinedBase | 0x04,
36         NotInitialized = CodecDefinedBase | 0x05,
37         InvalidStream = CodecDefinedBase | 0x06,
38         CodecNotFound = CodecDefinedBase | 0x07,
39         DecodingError = CodecDefinedBase | 0x08,
40         OutOfStorage = CodecDefinedBase | 0x09,
41         StreamNotFound = CodecDefinedBase | 0x0a,
42         NotSupportedFormat = CodecDefinedBase | 0x0b,
43         NoAvailableBuffer = CodecDefinedBase | 0x0c,
44         OverflowInBuffer = CodecDefinedBase | 0x0d,
45     }
46
47     public enum MediaCodecError
48     {
49         NotSupportedFormat = MediaCodecErrorCode.NotSupportedFormat,
50         InternalError = MediaCodecErrorCode.Internal,
51         OutOfStorage = MediaCodecErrorCode.OutOfStorage,
52         InvalidStream = MediaCodecErrorCode.InvalidStream,
53     }
54 }