Bind NativeImageInterface generate url 13/300513/1
authorEunki Hong <eunkiki.hong@samsung.com>
Thu, 26 Oct 2023 10:08:43 +0000 (19:08 +0900)
committerEunki Hong <eunkiki.hong@samsung.com>
Thu, 26 Oct 2023 10:09:45 +0000 (19:09 +0900)
Change-Id: Ifefb6ccc2bd5433b25c1e8f30ff43de93a3fc499
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
dali-csharp-binder/common/dali-wrap.cpp
dali-csharp-binder/dali-adaptor/native-image-queue-wrap.cpp

index fb31218..5b1d72a 100644 (file)
@@ -20233,6 +20233,24 @@ SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_NativeImageInterface_RequiresBlending(vo
   return jresult;
 }
 
+SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_NativeImageInterface_GenerateUrl(void* nuiHandle)
+{
+  Dali::Toolkit::ImageUrl result;
+  Dali::NativeImageInterface* nativeImage = (Dali::NativeImageInterface*)nuiHandle;
+  void *jresult;
+
+  {
+    try {
+      result = Dali::Toolkit::Image::GenerateUrl(nativeImage);
+    }
+    CALL_CATCH_EXCEPTION(0);
+  }
+
+  jresult = new Dali::Toolkit::ImageUrl((const Dali::Toolkit::ImageUrl &)result);
+  return jresult;
+}
+
+
 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_CameraActor_Property_TYPE_get() {
   int jresult ;
   int result;
index 78c7b94..fc86dd2 100644 (file)
@@ -17,6 +17,7 @@
 
 // EXTERNAL INCLUDES
 #include <dali/devel-api/adaptor-framework/native-image-source-queue.h>
+#include <dali-toolkit/public-api/image-loader/image.h>
 
 // INTERNAL INCLUDES
 #include <dali-csharp-binder/common/common.h>
@@ -106,6 +107,22 @@ SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_NativeImageQueue_EnqueueBuffer(void* nui
   return jresult;
 }
 
+SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_NativeImageQueue_GenerateUrl(void* nuiqueue)
+{
+  Dali::Toolkit::ImageUrl result;
+  Dali::NativeImageSourceQueue* queue = (Dali::NativeImageSourceQueue*)nuiqueue;
+  void *jresult;
+  {
+    try {
+      result = Dali::Toolkit::Image::GenerateUrl(queue);
+    }
+    CALL_CATCH_EXCEPTION(0);
+  }
+
+  jresult = new Dali::Toolkit::ImageUrl((const Dali::Toolkit::ImageUrl &)result);
+  return jresult;
+}
+
 #ifdef __cplusplus
 }
 #endif