From 931475fd043007bae11a6be1d669cf0ae55ab233 Mon Sep 17 00:00:00 2001 From: coderhyme Date: Thu, 28 Sep 2017 12:46:37 +0900 Subject: [PATCH] [Multimedia] Added missing comments and fixed comment errors in MediaCodec. Change-Id: I1171073143ef640251e9053fdb30f49dcb33c0a1 Signed-off-by: coderhyme --- .../MediaCodec/MediaCodec.cs | 15 ++++++++++++--- .../MediaCodec/MediaCodecError.cs | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/src/Tizen.Multimedia.MediaCodec/MediaCodec/MediaCodec.cs b/src/Tizen.Multimedia.MediaCodec/MediaCodec/MediaCodec.cs index b01f245..f4b3f1f 100644 --- a/src/Tizen.Multimedia.MediaCodec/MediaCodec/MediaCodec.cs +++ b/src/Tizen.Multimedia.MediaCodec/MediaCodec/MediaCodec.cs @@ -53,6 +53,12 @@ namespace Tizen.Multimedia.MediaCodec #region IDisposable-support private bool _isDisposed = false; + /// + /// Releases the resources used by the object. + /// + /// + /// true to release both managed and unmanaged resources; false to release only unmanaged resources. + /// protected virtual void Dispose(bool disposing) { if (!_isDisposed) @@ -72,6 +78,9 @@ namespace Tizen.Multimedia.MediaCodec Dispose(false); } + /// + /// Releases all resources used by the object. + /// public void Dispose() { Dispose(true); @@ -343,7 +352,7 @@ namespace Tizen.Multimedia.MediaCodec /// Adds the packet to the internal queue of the codec. /// /// The packet to be encoded or decoded. - /// is null. + /// is null. /// The current codec is not prepared yet. /// Any attempts to modify the packet will fail until the event for the packet is invoked. public void ProcessInput(MediaPacket packet) @@ -385,7 +394,7 @@ namespace Tizen.Multimedia.MediaCodec /// The value indicating encoder or decoder. /// The mime type to query. /// The values indicating which codec types are supported on the current device. - /// is invalid. + /// is invalid. public MediaCodecTypes GetCodecType(bool encoder, MediaFormatVideoMimeType type) { ValidateNotDisposed(); @@ -404,7 +413,7 @@ namespace Tizen.Multimedia.MediaCodec /// The value indicating encoder or decoder. /// The mime type to query. /// The values indicating which codec types are supported on the current device. - /// is invalid. + /// is invalid. public MediaCodecTypes GetCodecType(bool encoder, MediaFormatAudioMimeType type) { ValidateNotDisposed(); diff --git a/src/Tizen.Multimedia.MediaCodec/MediaCodec/MediaCodecError.cs b/src/Tizen.Multimedia.MediaCodec/MediaCodec/MediaCodecError.cs index 14508f2..6a3c8a1 100644 --- a/src/Tizen.Multimedia.MediaCodec/MediaCodec/MediaCodecError.cs +++ b/src/Tizen.Multimedia.MediaCodec/MediaCodec/MediaCodecError.cs @@ -44,11 +44,30 @@ namespace Tizen.Multimedia.MediaCodec 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, } } -- 2.7.4