Reorder NativeImageQueue's ColorFormat 22/277322/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 5 Jul 2022 06:08:57 +0000 (15:08 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 5 Jul 2022 06:08:57 +0000 (15:08 +0900)
Due to the NUI use ColorFormat as int,
and BGR types are legacy works,
let we keep previous behavior (==BGR) number as 0,1,2.
And make new things as bigger than 2.

Change-Id: I8d18c08aa79166f047e7f2b3844df7ca2847c546
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/devel-api/adaptor-framework/native-image-source-queue.h

index 01ca473..cba01ca 100644 (file)
@@ -65,12 +65,12 @@ public:
     */
   enum class ColorFormat
   {
-    RGB888,   /// 8 red bits, 8 green bits, 8 blue bits
-    RGBA8888, /// 8 red bits, 8 green bits, 8 blue bits, alpha 8 bits
-    RGBX8888, /// 8 red bits, 8 green bits, 8 blue bits, and 8 ignored bits
-    BGR888,   /// 8 blue bits, 8 green bits, 8 red bits
-    BGRA8888, /// 8 blue bits, 8 green bits, 8 red bits, alpha 8 bits
-    BGRX8888, /// 8 blue bits, 8 green bits, 8 red bits, and 8 ignored bits
+    BGR888   = 0, /// 8 blue bits, 8 green bits, 8 red bits
+    BGRA8888 = 1, /// 8 blue bits, 8 green bits, 8 red bits, alpha 8 bits
+    BGRX8888 = 2, /// 8 blue bits, 8 green bits, 8 red bits, and 8 ignored bits
+    RGB888   = 3, /// 8 red bits, 8 green bits, 8 blue bits
+    RGBA8888 = 4, /// 8 red bits, 8 green bits, 8 blue bits, alpha 8 bits
+    RGBX8888 = 5, /// 8 red bits, 8 green bits, 8 blue bits, and 8 ignored bits
   };
 
   /**