[NUI] C# binding for PixelBuffer::GetMetadata() 15/165315/1
authoradam.b <adam.b@samsung.com>
Mon, 11 Dec 2017 17:40:58 +0000 (17:40 +0000)
committerdongsug.song <dongsug.song@samsung.com>
Thu, 28 Dec 2017 06:40:30 +0000 (15:40 +0900)
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
src/Tizen.NUI/src/public/ImageLoading.cs
src/Tizen.NUI/src/public/PixelBuffer.cs

index 2dbb943..23be7ce 100755 (executable)
@@ -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);
 
index b04a085..2bff4e9 100755 (executable)
@@ -14,6 +14,7 @@
  * limitations under the License.
  *
  */
+
 using System.ComponentModel;
 
 namespace Tizen.NUI
index 5c922f1..c74bc4c 100755 (executable)
@@ -301,6 +301,21 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
+        /// <summary>
+        /// Get Meta data.
+        /// </summary>
+        /// <returns>PropertyMap of Metadata.</returns>
+        /// <since_tizen> 5 </since_tizen>
+        /// 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();