From 99d391c8c1a5ce1e3132dbffe95d6d2c7b0af025 Mon Sep 17 00:00:00 2001 From: "adam.b" Date: Mon, 11 Dec 2017 17:40:58 +0000 Subject: [PATCH] [NUI] C# binding for PixelBuffer::GetMetadata() Needed to obtain EXIF data from the PixelBuffer. Conflicts: src/Tizen.NUI/src/internal/NDalicPINVOKE.cs src/Tizen.NUI/src/public/ImageLoading.cs src/Tizen.NUI/src/public/PixelBuffer.cs Change-Id: Id0e82822a3b7622cddc5df69b7cdef1b21873c74 --- src/Tizen.NUI/src/internal/NDalicPINVOKE.cs | 3 +++ src/Tizen.NUI/src/public/ImageLoading.cs | 1 + src/Tizen.NUI/src/public/PixelBuffer.cs | 15 +++++++++++++++ 3 files changed, 19 insertions(+) diff --git a/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs b/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs index 2dbb943..23be7ce 100755 --- a/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs +++ b/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs @@ -11456,6 +11456,9 @@ class NDalicPINVOKE { [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_PixelBuffer_Resize")] public static extern void PixelBuffer_Resize(global::System.Runtime.InteropServices.HandleRef jarg1, ushort jarg2, ushort jarg3); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_PixelBuffer_GetMetadata")] + public static extern void PixelBuffer_GetMetadata(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_PixelBuffer__SWIG_2")] public static extern global::System.IntPtr new_PixelBuffer__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); diff --git a/src/Tizen.NUI/src/public/ImageLoading.cs b/src/Tizen.NUI/src/public/ImageLoading.cs index b04a085..2bff4e9 100755 --- a/src/Tizen.NUI/src/public/ImageLoading.cs +++ b/src/Tizen.NUI/src/public/ImageLoading.cs @@ -14,6 +14,7 @@ * limitations under the License. * */ + using System.ComponentModel; namespace Tizen.NUI diff --git a/src/Tizen.NUI/src/public/PixelBuffer.cs b/src/Tizen.NUI/src/public/PixelBuffer.cs index 5c922f1..c74bc4c 100755 --- a/src/Tizen.NUI/src/public/PixelBuffer.cs +++ b/src/Tizen.NUI/src/public/PixelBuffer.cs @@ -301,6 +301,21 @@ namespace Tizen.NUI if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Get Meta data. + /// + /// PropertyMap of Metadata. + /// 5 + /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public PropertyMap GetMetadata() + { + var retval = new PropertyMap(); + NDalicPINVOKE.PixelBuffer_GetMetadata(swigCPtr, PropertyMap.getCPtr(retval)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return retval; + } + internal PixelBuffer(SWIGTYPE_p_unsigned_char pointer) : this(NDalicPINVOKE.new_PixelBuffer__SWIG_2(SWIGTYPE_p_unsigned_char.getCPtr(pointer)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); -- 2.7.4