namespace Tizen.Multimedia.MediaCodec
{
/// <summary>
- /// Provides the means to encode and decode the video and the audio data.
+ /// Provides a means to encode and decode the video and the audio data.
/// </summary>
public class MediaCodec : IDisposable
{
/// </summary>
/// <exception cref="InvalidOperationException">
/// Not connected to a source.<br/>
- /// <br/>
+ /// -or-<br/>
/// An internal error occurs.
/// </exception>
/// <exception cref="ObjectDisposedException">The <see cref="ScreenMirroring"/> has already been disposed.</exception>
/// </summary>
/// <exception cref="InvalidOperationException">
/// Not connected to a source.<br/>
- /// <br/>
+ /// -or-<br/>
/// An internal error occurs.
/// </exception>
/// <exception cref="ObjectDisposedException">The <see cref="ScreenMirroring"/> has already been disposed.</exception>
/// </summary>
/// <exception cref="InvalidOperationException">
/// Not connected to a source.<br/>
- /// <br/>
+ /// -or-<br/>
/// An internal error occurs.
/// </exception>
/// <exception cref="ObjectDisposedException">The <see cref="ScreenMirroring"/> has already been disposed.</exception>
/// </summary>
/// <exception cref="InvalidOperationException">
/// Not connected to a source.<br/>
- /// <br/>
+ /// -or-<br/>
/// An internal error occurs.
/// </exception>
/// <exception cref="ObjectDisposedException">The <see cref="ScreenMirroring"/> has already been disposed.</exception>
/// </summary>
/// <exception cref="InvalidOperationException">
/// Not connected to a source.<br/>
- /// <br/>
+ /// -or-<br/>
/// An internal error occurs.
/// </exception>
/// <exception cref="ObjectDisposedException">The <see cref="ScreenMirroring"/> has already been disposed.</exception>
/// </summary>
/// <exception cref="InvalidOperationException">
/// Not connected to a source.<br/>
- /// <br/>
+ /// -or-<br/>
/// An internal error occurs.
/// </exception>
/// <exception cref="ObjectDisposedException">The <see cref="ScreenMirroring"/> has already been disposed.</exception>
/// </summary>
/// <exception cref="InvalidOperationException">
/// Not connected to a source.<br/>
- /// <br/>
+ /// -or-<br/>
/// An internal error occurs.
/// </exception>
/// <exception cref="ObjectDisposedException">The <see cref="ScreenMirroring"/> has already been disposed.</exception>
/// Initializes a new instance of the <see cref="GifFrame"/> class with a buffer and a delay.
/// </summary>
/// <param name="buffer">The raw image buffer to be encoded.</param>
- /// <param name="delay">The delay for this image, in 0.001 sec units.</param>
+ /// <param name="delay">The delay for this image in milliseconds.</param>
/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is null.</exception>
/// <exception cref="ArgumentException">The length of <paramref name="buffer"/> is zero.</exception>
public GifFrame(byte[] buffer, uint delay)
/// <summary>
/// Gets or sets the delay for this image.
/// </summary>
- /// <value>Time delay in 0.001 sec units.</value>
+ /// <value>Time delay in milliseconds.</value>
public uint Delay { get; set; }
}
}
/// <exception cref="ArgumentException">
/// <paramref name="inputFilePath"/> is an empty string.<br/>
/// -or-<br/>
- /// <paramref name="inputFilePath"/> is not a image file.<br/>
- /// -or-<br/>
- /// The format of <paramref name="inputFilePath"/> is not <see cref="InputFormat"/>.
+ /// <paramref name="inputFilePath"/> is not a image file.
/// </exception>
/// <exception cref="FileNotFoundException"><paramref name="inputFilePath"/> does not exists.</exception>
/// <exception cref="UnauthorizedAccessException">The caller does not have required permission to access the path.</exception>
/// <returns>A task that represents the asynchronous decoding operation.</returns>
/// <remarks>Only Graphics Interchange Format(GIF) codec returns more than one frame.</remarks>
/// <exception cref="ArgumentNullException"><paramref name="inputBuffer"/> is null.</exception>
- /// <exception cref="ArgumentException">
- /// <paramref name="inputBuffer"/> is an empty array.<br/>
- /// -or-<br/>
- /// The format of <paramref name="inputBuffer"/> is not <see cref="InputFormat"/>.
- /// </exception>
+ /// <exception cref="ArgumentException"><paramref name="inputBuffer"/> is an empty array.</exception>
/// <exception cref="FileFormatException">The format of <paramref name="inputBuffer"/> is not <see cref="InputFormat"/>.</exception>
/// <exception cref="ObjectDisposedException">The <see cref="ImageDecoder"/> has already been disposed of.</exception>
public Task<IEnumerable<BitmapFrame>> DecodeAsync(byte[] inputBuffer)
/// <exception cref="ArgumentOutOfRangeException">
/// index is less than 0.<br/>
/// -or-<br/>
- /// index is equal to or greater than Count.
+ /// index is equal to or greater than <see cref="Count"/>.
/// </exception>
public ImageTransform this[int index]
{
private Flips _flip;
/// <summary>
- /// Initializes a new instance of the <see cref="RotateTransform"/> class.
+ /// Initializes a new instance of the <see cref="FlipTransform"/> class.
/// </summary>
/// <param name="flip">The value how to flip an image.</param>
/// <exception cref="ArgumentException"><paramref name="flip"/> is invalid.</exception>
}
/// <summary>
- /// Gets or sets the value how to rotate an image.
+ /// Gets or sets the value how to flip an image.
/// </summary>
/// <exception cref="ArgumentException"><paramref name="value"/> is invalid.</exception>
/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> is <see cref="Flips.None"/>.</exception>
internal static partial class Interop
{
- internal static partial class Libraries
- {
- public const string Base = "libcapi-base-common.so.0";
- }
-
internal static partial class CommonError
{
[DllImport(Libraries.Base, EntryPoint = "get_last_result")]
--- /dev/null
+/*
+ * 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 System;
+using System.Runtime.InteropServices;
+
+internal static partial class Interop
+{
+ internal static partial class DotnetUtil
+ {
+ [DllImport(Libraries.Vconf, EntryPoint = "vconf_get_int")]
+ internal static extern int GetVconfInt(string key, out int value);
+ }
+}
--- /dev/null
+/*
+ * 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.
+ */
+
+internal static partial class Interop
+{
+ internal static partial class Libraries
+ {
+ public const string Base = "libcapi-base-common.so.0";
+ public const string Vconf = "libvconf.so.0";
+ }
+}
--- /dev/null
+/*
+ * 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 System;
+
+namespace Tizen.Common
+{
+ /// <summary>
+ /// The DotnetAPIs class provides the .NET api version.
+ /// </summary>
+ public static class DotnetUtil
+ {
+ /// <summary>
+ /// Gets the version of Tizen .NET API.
+ /// </summary>
+ /// <returns>The Tizen .NET API version</returns>
+ public static int TizenAPIVersion
+ {
+ get
+ {
+ int version = 0;
+ DotnetUtilError ret = (DotnetUtilError)Interop.DotnetUtil.GetVconfInt("db/dotnet/tizen_api_version", out version);
+ if (ret != DotnetUtilError.None)
+ {
+ Log.Warn(DotnetUtilErrorFactory.LogTag, "unable to get Tizen .NET API version.");
+ }
+ return version;
+ }
+ }
+ }
+}
--- /dev/null
+/*
+* 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 System;
+using Tizen.Internals.Errors;
+
+namespace Tizen.Common
+{
+ internal enum DotnetUtilError
+ {
+ None = ErrorCode.None,
+ }
+
+ internal static class DotnetUtilErrorFactory
+ {
+ internal const string LogTag = "Tizen.Common.DotnetUtil";
+
+ internal static void ThrowException(DotnetUtilError err)
+ {
+ DotnetUtilError error = err;
+ if (error != DotnetUtilError.None)
+ {
+ throw new ArgumentException("Vconf error");
+ }
+ }
+ }
+}
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
+ </ItemGroup>
+
</Project>