YUV format + FastTrackUploading test demo 83/319683/7
authorEunki Hong <eunkiki.hong@samsung.com>
Fri, 14 Feb 2025 12:13:03 +0000 (21:13 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 24 Feb 2025 04:32:42 +0000 (13:32 +0900)
Add YUV444, YUV420, YUV422 load demo and FastTrackUploading test

TODO : Need to add more resources to YUV testing

Change-Id: I004f67aca4bae45d0e4a2e5135e2b445545564c4
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
17 files changed:
com.samsung.dali-demo.xml
examples/image-view-yuv/README.md [new file with mode: 0644]
examples/image-view-yuv/image-view-yuv-example.cpp [new file with mode: 0644]
examples/image-view-yuv/image-view-yuv.png [new file with mode: 0644]
resources/images/gallery-small-1-yuv420.jpg [new file with mode: 0644]
resources/po/as.po
resources/po/de.po
resources/po/en_GB.po
resources/po/en_US.po
resources/po/es.po
resources/po/fi.po
resources/po/ko.po
resources/po/ml.po
resources/po/ur.po
resources/po/zn_CH.po
shared/dali-demo-strings.h
tests-reel/dali-tests-reel.cpp

index d83bbcca22bb5f8aeaac125ca9f0cbcd2d9bc048..2e9381e81b80a537948cb296b13fddeb2c8f0629 100644 (file)
        <ui-application appid="image-view-svg.example" exec="/usr/apps/com.samsung.dali-demo/bin/image-view-svg.example" nodisplay="true" multiple="false" type="c++app" taskmanage="true">
                <label>ImageView SVG</label>
        </ui-application>
+       <ui-application appid="image-view-yuv.example" exec="/usr/apps/com.samsung.dali-demo/bin/image-view-yuv.example" nodisplay="true" multiple="false" type="c++app" taskmanage="true">
+               <label>ImageView YUV</label>
+       </ui-application>
        <ui-application appid="item-view.example" exec="/usr/apps/com.samsung.dali-demo/bin/item-view.example" nodisplay="true" multiple="false" type="c++app" taskmanage="true">
                <label>Item View</label>
        </ui-application>
diff --git a/examples/image-view-yuv/README.md b/examples/image-view-yuv/README.md
new file mode 100644 (file)
index 0000000..d68e493
--- /dev/null
@@ -0,0 +1,75 @@
+# Image View with YUV plane loading Test Example
+
+## Overview
+
+Test application that YUV format jpg images load with 3-planes and combine the result at GPU time.
+
+Basically, jpg image loaded by single buffer.
+But if we want to reduce buffer's memory, we can turn on below environments and load YUV images
+as each planes.
+
+```shell
+$ export DALI_LOAD_IMAGE_YUV_PLANES=1
+$ export DALI_ENABLE_DECODE_JPEG_TO_YUV_444=0 # Do not use YUV plane loading for YUV444 format
+$ export DALI_ENABLE_DECODE_JPEG_TO_YUV_420=1 # Let we use YUV plane loading for YUV420 format
+```
+It will be helpful when we want to reduce GPU memory for YUV format images.
+
+We can also test that YUV loading successed when `DevelImageVisual::Property::FAST_TRACK_UPLOADING` is true.
+
+For this demo application, we turn on every YUV format load as 3-planes.
+
+@TODO : Need to collect more kinds of YUV!
+        Required resources : GRAY, YUV_440, YUV_411, YUV_441
+
+
+Press `R` key to test Attach / Detach.
+
+Press `T` key to test Detach and Attach immediatly. (Test wether the YUV result cached or not.)
+
+![](./image-view-yuv.png)
+
+## Developer Note
+
+If you want to see that we upload images 3 planes,
+
+Please build `dali-core`, `dali-adaptor`, `dali-toolkit` and `dali-demo` as `Debug` option, include `-DENABLE_TRACE=ON` options.
+
+```shell
+$ cd ~/dali-core/build/tizen/
+$ cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_TRACE=ON
+$ make install -j9
+... And so on to dali-adaptor, dali-toolkit, dali-demo.
+```
+
+After build finished, set environment values like below
+
+```shell
+$ export DALI_PRINT_LOG_LEVEL=0
+$ export DALI_TRACE_ENABLE_PRINT_LOG=1
+$ export DALI_TRACE_IMAGE_PERFORMANCE_MARKER=1
+```
+Check that `b:3` print well both `DALI_IMAGE_LOADING_TASK` and `DALI_IMAGE_FAST_TRACK_UPLOADING_TASK` case.
+
+`b:` means the number of bitmaps what we loaded.
+
+```shell
+$ ./image-view-yuv.example
+...
+$ DEBUG: DALI: trace-manager-impl-generic.cpp: LogContext(84) > BEGIN: DALI_IMAGE_LOADING_TASK [u:.../gallery-small-1.jpg]
+$ DEBUG: DALI: trace-manager-impl-generic.cpp: LogContext(88) > END: DALI_IMAGE_LOADING_TASK [d:0.499ms m:0 i:0 b:3 s:128x128 p:1 u:.../gallery-small-1.jpg]
+$ DEBUG: DALI: trace-manager-impl-generic.cpp: LogContext(84) > BEGIN: DALI_IMAGE_FAST_TRACK_UPLOADING_TASK [u:.../gallery-small-1.jpg]
+$ DEBUG: DALI: trace-manager-impl-generic.cpp: LogContext(88) > END: DALI_IMAGE_FAST_TRACK_UPLOADING_TASK [d:0.267ms b:3 s:128x128 p:1 u:.../gallery-small-1.jpg]
+```
+
+If you want to check YUV image cached or not, set `LOG_TEXTURE_MANAGER` environment value as `3`, and see `RequestLoadInternal` logs.
+
+```shell
+$ export LOG_TEXTURE_MANAGER=3
+$ ./image-view-yuv.example
+...
+$ INFO: DALI: texture-manager-impl.cpp: RequestLoadInternal(563) > TextureManager::RequestLoad( url=/home/hpichu/work/dali-env/opt/share/com.samsung.dali-demo/res/images/gallery-small-1.jpg size=0x0 observer=0x5583e2c820f8 ) New texture, cacheIndex:0, textureId=0, maskTextureId=-1, frameindex=0 orientCorrect=0 premultiply=1 # Request new loading
+...
+$ INFO: DALI: texture-manager-impl.cpp: RequestLoadInternal(552) > TextureManager::RequestLoad( url=/home/hpichu/work/dali-env/opt/share/com.samsung.dali-demo/res/images/gallery-small-1.jpg size=0x0 observer=0x5583e2c820f8 ) Using cached texture id@0, textureId=0, maskTextureId=-1, prevTextureId=-1, frameindex=0, orientCorrect=0, premultiplied=1, refCount=2 # Use cached texture
+
+```
\ No newline at end of file
diff --git a/examples/image-view-yuv/image-view-yuv-example.cpp b/examples/image-view-yuv/image-view-yuv-example.cpp
new file mode 100644 (file)
index 0000000..9a70e66
--- /dev/null
@@ -0,0 +1,212 @@
+/*
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#include <dali-toolkit/dali-toolkit.h>
+#include <dali-toolkit/devel-api/controls/table-view/table-view.h>
+#include <dali-toolkit/devel-api/visuals/image-visual-properties-devel.h>
+#include <dali-toolkit/devel-api/visuals/visual-properties-devel.h>
+#include <string.h>
+
+using namespace Dali;
+using namespace Dali::Toolkit;
+
+namespace
+{
+struct YuvImageInfo
+{
+  const char* formatName;
+  const char* fileName;
+};
+
+static const YuvImageInfo IMAGE_INFOS[] =
+  {
+    {"YUV444", DEMO_IMAGE_DIR "gallery-small-1.jpg"},
+    {"YUV420", DEMO_IMAGE_DIR "gallery-small-1-yuv420.jpg"},
+    {"YUV422", DEMO_IMAGE_DIR "woodEffect.jpg"},
+    ///< TODO : Need to collect more kinds of YUV!
+    /// Required resources : GRAY, YUV_440, YUV_411, YUV_441
+};
+static const int NUM_IMAGE_INFOS = (sizeof(IMAGE_INFOS) / sizeof(IMAGE_INFOS[0]));
+
+} // unnamed namespace
+
+// This example shows how to display YUV images with ImageView.
+//
+class ImageYuvController : public ConnectionTracker
+{
+public:
+  ImageYuvController(Application& application)
+  : mApplication(application),
+    mLastPoint(1.f)
+  {
+    // Connect to the Application's Init signal
+    mApplication.InitSignal().Connect(this, &ImageYuvController::Create);
+  }
+
+  ~ImageYuvController()
+  {
+  }
+
+  // The Init signal is received once (only) during the Application lifetime
+  void Create(Application& application)
+  {
+    // Get a handle to the window
+    mWindow = application.GetWindow();
+
+    mWindow.KeyEventSignal().Connect(this, &ImageYuvController::OnKeyEvent);
+    mWindow.SetBackgroundColor(Color::WHITE);
+    mWindow.GetRootLayer().TouchedSignal().Connect(this, &ImageYuvController::OnTouch);
+
+    mTableView = Toolkit::TableView::New(NUM_IMAGE_INFOS, 3);
+    mTableView.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH);
+    mTableView.SetResizePolicy(ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT);
+    mTableView.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
+    mTableView.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+    mWindow.Add(mTableView);
+
+    for(unsigned int index = 0u; index < NUM_IMAGE_INFOS; ++index)
+    {
+      TextLabel label = TextLabel::New();
+      label.SetProperty(TextLabel::Property::MULTI_LINE, true);
+      label.SetProperty(TextLabel::Property::TEXT, IMAGE_INFOS[index].formatName);
+
+      mTableView.SetFitHeight(index);
+      mTableView.AddChild(label, Toolkit::TableView::CellPosition(index, 0));
+
+      ImageView image = ImageView::New(IMAGE_INFOS[index].fileName);
+      {
+        Property::Map map;
+        map.Add(Visual::Property::TYPE, Visual::IMAGE);
+        map.Add(ImageVisual::Property::URL, IMAGE_INFOS[index].fileName);
+        map.Add(ImageVisual::Property::ORIENTATION_CORRECTION, false); ///< Ensure to make we load YUV plane
+
+        image.SetProperty(ImageView::Property::IMAGE, map);
+      }
+      image.SetProperty(Actor::Property::SIZE, Vector2(128.0f, 128.0f));
+      mTableView.AddChild(image, Toolkit::TableView::CellPosition(index, 1));
+
+      ImageView roundedFastTrackImage = ImageView::New();
+      roundedFastTrackImage.SetProperty(Actor::Property::SIZE, Vector2(128.0f, 128.0f));
+      {
+        Property::Map map;
+        map.Add(Visual::Property::TYPE, Visual::IMAGE);
+        map.Add(ImageVisual::Property::URL, IMAGE_INFOS[index].fileName);
+        map.Add(DevelVisual::Property::CORNER_RADIUS, 0.5f);
+        map.Add(DevelVisual::Property::CORNER_RADIUS_POLICY, Visual::Transform::Policy::RELATIVE);
+        map.Add(ImageVisual::Property::ORIENTATION_CORRECTION, false); ///< Ensure to make we load YUV plane
+        map.Add(DevelImageVisual::Property::FAST_TRACK_UPLOADING, true);
+
+        roundedFastTrackImage.SetProperty(ImageView::Property::IMAGE, map);
+      }
+      mTableView.AddChild(roundedFastTrackImage, Toolkit::TableView::CellPosition(index, 2));
+    }
+
+    {
+      TextLabel label = TextLabel::New();
+      label.SetProperty(TextLabel::Property::TEXT, "Press \'R\' key to Attach / Detach images\nPress \'T\' key to Detach and Attach images immediatly\n");
+      label.SetProperty(TextLabel::Property::MULTI_LINE, true);
+      label.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::BOTTOM_CENTER);
+      label.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::BOTTOM_CENTER);
+      mWindow.Add(label);
+    }
+  }
+
+  void OnKeyEvent(const KeyEvent& event)
+  {
+    if(event.GetState() == KeyEvent::DOWN)
+    {
+      if(IsKey(event, Dali::DALI_KEY_ESCAPE) || IsKey(event, Dali::DALI_KEY_BACK))
+      {
+        mApplication.Quit();
+      }
+      else if(event.GetKeyName() == "r" || event.GetKeyName() == "R")
+      {
+        if(mTableView.GetProperty<bool>(Actor::Property::CONNECTED_TO_SCENE))
+        {
+          mTableView.Unparent();
+        }
+        else
+        {
+          mWindow.Add(mTableView);
+        }
+      }
+      else if(event.GetKeyName() == "t" || event.GetKeyName() == "T")
+      {
+        if(mTableView.GetProperty<bool>(Actor::Property::CONNECTED_TO_SCENE))
+        {
+          mTableView.Unparent();
+          mWindow.Add(mTableView);
+        }
+        else
+        {
+          mWindow.Add(mTableView);
+        }
+      }
+    }
+  }
+
+  bool OnTouch(Actor actor, const TouchEvent& event)
+  {
+    if(1u == event.GetPointCount())
+    {
+      const PointState::Type state = event.GetState(0);
+
+      const float screenPoint = event.GetScreenPosition(0).y;
+
+      if(PointState::DOWN == state)
+      {
+        mLastPoint = screenPoint;
+      }
+      else if(PointState::MOTION == state)
+      {
+        if(mTableView)
+        {
+          mTableView.TranslateBy(Vector3(0.0f, screenPoint - mLastPoint, 0.0f));
+          mLastPoint = screenPoint;
+        }
+      }
+    }
+
+    return true;
+  }
+
+private:
+  Application& mApplication;
+  Window       mWindow;
+  TableView    mTableView;
+  float        mLastPoint;
+};
+
+int DALI_EXPORT_API main(int argc, char** argv)
+{
+  // Set YUV format load + rendering environment, before application class create.
+  setenv("DALI_LOAD_IMAGE_YUV_PLANES", "1", 1);
+
+  // Turn on each format load as YUV or not.
+  setenv("DALI_ENABLE_DECODE_JPEG_TO_YUV_444", "1", 1);
+  setenv("DALI_ENABLE_DECODE_JPEG_TO_YUV_422", "1", 1);
+  setenv("DALI_ENABLE_DECODE_JPEG_TO_YUV_420", "1", 1);
+  // TJSAMP_GRAY already supported
+  setenv("DALI_ENABLE_DECODE_JPEG_TO_YUV_440", "1", 1);
+  setenv("DALI_ENABLE_DECODE_JPEG_TO_YUV_411", "1", 1);
+  setenv("DALI_ENABLE_DECODE_JPEG_TO_YUV_441", "1", 1);
+
+  Application        application = Application::New(&argc, &argv);
+  ImageYuvController test(application);
+  application.MainLoop();
+  return 0;
+}
diff --git a/examples/image-view-yuv/image-view-yuv.png b/examples/image-view-yuv/image-view-yuv.png
new file mode 100644 (file)
index 0000000..2e78348
Binary files /dev/null and b/examples/image-view-yuv/image-view-yuv.png differ
diff --git a/resources/images/gallery-small-1-yuv420.jpg b/resources/images/gallery-small-1-yuv420.jpg
new file mode 100644 (file)
index 0000000..c1362a6
Binary files /dev/null and b/resources/images/gallery-small-1-yuv420.jpg differ
index 51364e8e74c165449a5a54e0d97bf6cd03499475..5a8d67a4f76054295870c5eb62b04c9b9299ab67 100755 (executable)
@@ -61,6 +61,9 @@ msgstr "অনুবিম্ব Pixel Area"
 msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_SVG"
 msgstr "অনুবিম্ব SVG"
 
+msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_YUV"
+msgstr "অনুবিম্ব YUV"
+
 msgid "DALI_DEMO_STR_TITLE_INHERIT_TEST"
 msgstr "Inherit Test"
 
index 293ac058a9ae21637de6d1a147f3d764730dc619..28136c4dd7a40cf6121c2fa8ed97b0a6fe732213 100755 (executable)
@@ -61,6 +61,9 @@ msgstr "Bildansicht Pixelbereich"
 msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_SVG"
 msgstr "Bildansicht SVG"
 
+msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_YUV"
+msgstr "Bildansicht YUV"
+
 msgid "DALI_DEMO_STR_TITLE_INHERIT_TEST"
 msgstr "Inherit Test"
 
index a8e9d98cb6aa0331c336e57d7bd9fa8cc8d5ffd2..c6660ac563dc0c02fd2178f5c554d51661222484 100755 (executable)
@@ -139,6 +139,9 @@ msgstr "Image View Pixel Area"
 msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_SVG"
 msgstr "Image View SVG"
 
+msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_YUV"
+msgstr "Image View YUV"
+
 msgid "DALI_DEMO_STR_TITLE_INHERIT_TEST"
 msgstr "Inherit Test"
 
index 98cee83e67ba23b7ac56442f4e175a2357020c48..f619dcaef1691dcd3b4d0e289349c52b04416e9e 100755 (executable)
@@ -148,6 +148,9 @@ msgstr "Image View SVG"
 msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_URL"
 msgstr "Image View URL"
 
+msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_YUV"
+msgstr "Image View YUV"
+
 msgid "DALI_DEMO_STR_TITLE_INHERIT_TEST"
 msgstr "Inherit Test"
 
index af195df0bcc6ba2e5af77052d0fbfce9ca36b2df..5307429c733c8b5ae2f60937c23120f71c970879 100755 (executable)
@@ -61,6 +61,9 @@ msgstr "Control con imagenes con area de pixeles"
 msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_SVG"
 msgstr "Control con imagenes SVG"
 
+msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_YUV"
+msgstr "Control con imagenes YUV"
+
 msgid "DALI_DEMO_STR_TITLE_INHERIT_TEST"
 msgstr "Inherit Test"
 
index 51dff5d10ec3c4d0f6bf84c3675ce8db7c51e715..094bb143a73a42341e4231ab3ab7a4179f2395c9 100755 (executable)
@@ -61,6 +61,9 @@ msgstr "Kuvanäkymän Pikselialue"
 msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_SVG"
 msgstr "SVG Kuvanäkymä"
 
+msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_YUV"
+msgstr "YUV Kuvanäkymä"
+
 msgid "DALI_DEMO_STR_TITLE_INHERIT_TEST"
 msgstr "Inherit Test"
 
index ecaf5afbaf0885d8af5971689025581f48da0d23..320c9dbee2f0b4f3b805922c8432b422b0fde86d 100755 (executable)
@@ -82,6 +82,9 @@ msgstr "이미지 뷰 픽셀 영역"
 msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_SVG"
 msgstr "이미지 뷰 SVG"
 
+msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_YUV"
+msgstr "이미지 뷰 YUV"
+
 msgid "DALI_DEMO_STR_TITLE_INHERIT_TEST"
 msgstr "속성 전파 테스트"
 
index 54e9c1f25ff108e3fdcdb0c0675eb49f221d6551..2fa8579e0a60f0c4a15f0f1b57d290588260b39a 100755 (executable)
@@ -61,6 +61,9 @@ msgstr "സുതാര്യത ഉപയോഗിച്ച് ഇമേജ
 msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_SVG"
 msgstr "ചിത്രം കാഴ്ച SVG"
 
+msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_YUV"
+msgstr "ചിത്രം കാഴ്ച YUV"
+
 msgid "DALI_DEMO_STR_TITLE_INHERIT_TEST"
 msgstr "Inherit Test"
 
index 59cf30b1c36ed9d93795a5020769949873c3ced4..ea08c029bfa1cf2b58c2a77dabda6f58ce30b3e7 100755 (executable)
@@ -61,6 +61,9 @@ msgstr "تصویر کنٹرول شفافیت کے ساتھ"
 msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_SVG"
 msgstr "تصویر کنٹرول SVG"
 
+msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_YUV"
+msgstr "تصویر کنٹرول YUV"
+
 msgid "DALI_DEMO_STR_TITLE_INHERIT_TEST"
 msgstr "Inherit Test"
 
index 0888d1aa401258996100976541a44644a1b4fb8f..01b6cfdcbfe00f5194563473622d5b108e1c987c 100755 (executable)
@@ -64,6 +64,9 @@ msgstr "图像视图像素区域"
 msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_SVG"
 msgstr "图像视图 SVG"
 
+msgid "DALI_DEMO_STR_TITLE_IMAGE_VIEW_YUV"
+msgstr "图像视图 YUV"
+
 msgid "DALI_DEMO_STR_TITLE_INHERIT_TEST"
 msgstr "Inherit Test"
 
index f2c1b21c3b1072b9784736693be62b93fdb6eac1..efad758ed6468cbe5067c20f35a871f5bb1ca12f 100644 (file)
@@ -87,6 +87,7 @@ extern "C"
 #define DALI_DEMO_STR_TITLE_IMAGE_VIEW_PIXEL_AREA dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_IMAGE_VIEW_PIXEL_AREA")
 #define DALI_DEMO_STR_TITLE_IMAGE_VIEW_SVG dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_IMAGE_VIEW_SVG")
 #define DALI_DEMO_STR_TITLE_IMAGE_VIEW_URL dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_IMAGE_VIEW_URL")
+#define DALI_DEMO_STR_TITLE_IMAGE_VIEW_YUV dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_IMAGE_VIEW_YUV")
 #define DALI_DEMO_STR_TITLE_INHERIT_TEST dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_INHERIT_TEST")
 #define DALI_DEMO_STR_TITLE_ITEM_VIEW dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_ITEM_VIEW")
 #define DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS")
@@ -214,6 +215,7 @@ extern "C"
 #define DALI_DEMO_STR_TITLE_IMAGE_VIEW_PIXEL_AREA "Image View Pixel Area"
 #define DALI_DEMO_STR_TITLE_IMAGE_VIEW_SVG "Image View SVG"
 #define DALI_DEMO_STR_TITLE_IMAGE_VIEW_URL "Image View URL"
+#define DALI_DEMO_STR_TITLE_IMAGE_VIEW_YUV "Image View YUV"
 #define DALI_DEMO_STR_TITLE_INHERIT_TEST "Inherit Test"
 #define DALI_DEMO_STR_TITLE_ITEM_VIEW "Item View"
 #define DALI_DEMO_STR_TITLE_LIGHTS_AND_SHADOWS "Lights and shadows"
index 38a841aadca728ec0f64055d86f0d576d436aac7..006dfc4e6ad0a2ebcdd792bbe5e042d9c92a68d3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -43,6 +43,7 @@ int DALI_EXPORT_API main(int argc, char** argv)
   demo.AddExample(Example("compressed-texture-formats.example", DALI_DEMO_STR_TITLE_COMPRESSED_TEXTURE_FORMATS));
   demo.AddExample(Example("homescreen-benchmark.example", DALI_DEMO_STR_TITLE_HOMESCREEN));
   demo.AddExample(Example("inherit-test.example", DALI_DEMO_STR_TITLE_INHERIT_TEST));
+  demo.AddExample(Example("image-view-yuv.example", DALI_DEMO_STR_TITLE_IMAGE_VIEW_YUV));
   demo.AddExample(Example("pre-render-callback.example", DALI_DEMO_STR_TITLE_PRE_RENDER_CALLBACK));
   demo.AddExample(Example("perf-scroll.example", DALI_DEMO_STR_TITLE_PERF_SCROLL));
   demo.AddExample(Example("perf-view-creation.example", DALI_DEMO_STR_TITLE_PERF_VIEW_CREATION));