/* * 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, } public enum MediaCodecError { NotSupportedFormat = MediaCodecErrorCode.NotSupportedFormat, InternalError = MediaCodecErrorCode.Internal, OutOfStorage = MediaCodecErrorCode.OutOfStorage, InvalidStream = MediaCodecErrorCode.InvalidStream, } }