[Tizen] Bind NativeImageQueue constructor with queue size 41/303541/1
authorEunki Hong <eunkiki.hong@samsung.com>
Sat, 30 Dec 2023 15:02:38 +0000 (00:02 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 2 Jan 2024 04:28:27 +0000 (13:28 +0900)
Change-Id: Ibca8095ae42187d3ef355b14845383295fc90355
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
dali-csharp-binder/dali-adaptor/native-image-queue-wrap.cpp

index fc86dd2..b6fd03d 100644 (file)
@@ -45,6 +45,20 @@ SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_new_NativeImageQueuePtr(unsigned int wi
   return jresult;
 }
 
+SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_new_NativeImageQueuePtr_2(unsigned int queueCount, unsigned int width, unsigned int height, int colorFormat)
+{
+  void* jresult;
+  NativeImageSourceQueuePtrHandle* queue = new NativeImageSourceQueuePtrHandle();
+  {
+    try {
+      queue->Ptr = Dali::NativeImageSourceQueue::New(queueCount, width, height, (Dali::NativeImageSourceQueue::ColorFormat)colorFormat);
+    }
+    CALL_CATCH_EXCEPTION(0);
+  }
+  jresult = (void *)queue;
+  return jresult;
+}
+
 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_NativeImageQueue_GetPtr(void* nuiqueue)
 {
   void* jresult;
@@ -107,6 +121,19 @@ SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_NativeImageQueue_EnqueueBuffer(void* nui
   return jresult;
 }
 
+SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_NativeImageQueue_GetQueueCount(void* nuiqueue)
+{
+  unsigned int jresult;
+  Dali::NativeImageSourceQueue* queue = (Dali::NativeImageSourceQueue*)nuiqueue;
+  {
+    try {
+      jresult = static_cast<unsigned int>(queue->GetQueueCount());
+    }
+    CALL_CATCH_EXCEPTION(0);
+  }
+  return jresult;
+}
+
 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_NativeImageQueue_GenerateUrl(void* nuiqueue)
 {
   Dali::Toolkit::ImageUrl result;