/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using Tizen.Internals.Errors;
namespace Tizen.Multimedia.MediaCodec
{
internal enum MediaCodecErrorCode
{
CodecDefinedBase = -0x019B0000,
None = ErrorCode.None,
OutOfMemory = ErrorCode.OutOfMemory,
InvalidParameter = ErrorCode.InvalidParameter,
InvalidOperation = ErrorCode.InvalidParameter,
NotSupportedOnDevice = ErrorCode.NotSupported,
PermissionDenied = ErrorCode.PermissionDenied,
InvalidState = CodecDefinedBase | 0x01,
InvalidInBuffer = CodecDefinedBase | 0x02,
InvalidOutBuffer = CodecDefinedBase | 0x03,
Internal = CodecDefinedBase | 0x04,
NotInitialized = CodecDefinedBase | 0x05,
InvalidStream = CodecDefinedBase | 0x06,
CodecNotFound = CodecDefinedBase | 0x07,
DecodingError = CodecDefinedBase | 0x08,
OutOfStorage = CodecDefinedBase | 0x09,
StreamNotFound = CodecDefinedBase | 0x0a,
NotSupportedFormat = CodecDefinedBase | 0x0b,
NoAvailableBuffer = CodecDefinedBase | 0x0c,
OverflowInBuffer = CodecDefinedBase | 0x0d,
}
///
/// Specifies the errors of .
///
///
public enum MediaCodecError
{
///
/// The format is not supported.
///
NotSupportedFormat = MediaCodecErrorCode.NotSupportedFormat,
///
/// An internal error.
///
InternalError = MediaCodecErrorCode.Internal,
///
/// Not enough storage.
///
OutOfStorage = MediaCodecErrorCode.OutOfStorage,
///
/// The stream is invalid.
///
InvalidStream = MediaCodecErrorCode.InvalidStream,
}
}