From d7093af9b45472f8630ba42dce5a248813e8cd71 Mon Sep 17 00:00:00 2001 From: Eunki Hong Date: Thu, 26 Oct 2023 19:08:43 +0900 Subject: [PATCH] Bind NativeImageInterface generate url Change-Id: Ifefb6ccc2bd5433b25c1e8f30ff43de93a3fc499 Signed-off-by: Eunki Hong --- dali-csharp-binder/common/dali-wrap.cpp | 18 ++++++++++++++++++ .../dali-adaptor/native-image-queue-wrap.cpp | 17 +++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/dali-csharp-binder/common/dali-wrap.cpp b/dali-csharp-binder/common/dali-wrap.cpp index fb312185..5b1d72a8 100644 --- a/dali-csharp-binder/common/dali-wrap.cpp +++ b/dali-csharp-binder/common/dali-wrap.cpp @@ -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; diff --git a/dali-csharp-binder/dali-adaptor/native-image-queue-wrap.cpp b/dali-csharp-binder/dali-adaptor/native-image-queue-wrap.cpp index 78c7b949..fc86dd2e 100644 --- a/dali-csharp-binder/dali-adaptor/native-image-queue-wrap.cpp +++ b/dali-csharp-binder/dali-adaptor/native-image-queue-wrap.cpp @@ -17,6 +17,7 @@ // EXTERNAL INCLUDES #include +#include // INTERNAL INCLUDES #include @@ -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 -- 2.34.1