Revert "[Tizen] Support L8 for jpeg and png"
authorhuiyu.eun <huiyu.eun@samsung.com>
Wed, 29 Nov 2023 04:35:14 +0000 (13:35 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Wed, 29 Nov 2023 04:35:14 +0000 (13:35 +0900)
This reverts commit b39ca20d2edbfe13e7d0fe1d034f8237c27ae8d7.

dali/internal/imaging/common/loader-jpeg-turbo.cpp
dali/internal/imaging/common/loader-png.cpp

index 45b112c..cfb8fde 100644 (file)
@@ -1013,11 +1013,6 @@ bool EncodeToJpeg(const uint8_t* const pixelBuffer, Vector<uint8_t>& encodedPixe
 
   switch(pixelFormat)
   {
-    case Pixel::L8:
-    {
-      jpegPixelFormat = TJPF_GRAY;
-      break;
-    }
     case Pixel::RGB888:
     {
       jpegPixelFormat = TJPF_RGB;
index a84b205..9c6d4f1 100644 (file)
@@ -417,18 +417,6 @@ bool EncodeToPng(const unsigned char* const pixelBuffer, Vector<unsigned char>&
   // Account for RGB versus BGR and presence of alpha in input pixels:
   switch(pixelFormat)
   {
-    case Pixel::L8:
-    {
-      pngPixelFormat = PNG_COLOR_TYPE_GRAY;
-      pixelBytes     = 1;
-      break;
-    }
-    case Pixel::LA88:
-    {
-      pngPixelFormat = PNG_COLOR_TYPE_GRAY_ALPHA;
-      pixelBytes     = 2;
-      break;
-    }
     case Pixel::RGB888:
     {
       pngPixelFormat = PNG_COLOR_TYPE_RGB;