2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 using Tizen.Internals.Errors;
19 namespace Tizen.Multimedia.MediaCodec
21 internal enum MediaCodecErrorCode
23 CodecDefinedBase = -0x019B0000,
25 None = ErrorCode.None,
26 OutOfMemory = ErrorCode.OutOfMemory,
27 InvalidParameter = ErrorCode.InvalidParameter,
28 InvalidOperation = ErrorCode.InvalidParameter,
29 NotSupportedOnDevice = ErrorCode.NotSupported,
30 PermissionDenied = ErrorCode.PermissionDenied,
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,
48 /// Specifies the errors of <see cref="MediaCodec"/>.
50 /// <seealso cref="MediaCodec.ErrorOccurred"/>
51 public enum MediaCodecError
54 /// The format is not supported.
56 NotSupportedFormat = MediaCodecErrorCode.NotSupportedFormat,
59 /// An internal error.
61 InternalError = MediaCodecErrorCode.Internal,
64 /// Not enough storage.
66 OutOfStorage = MediaCodecErrorCode.OutOfStorage,
69 /// The stream is invalid.
71 InvalidStream = MediaCodecErrorCode.InvalidStream,