[Tizen] Fixing static analysis error 99/303999/1 accepted/tizen/8.0/unified/20240109.155450
authorDavid Steele <david.steele@samsung.com>
Mon, 8 Jan 2024 10:33:54 +0000 (10:33 +0000)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 9 Jan 2024 03:47:21 +0000 (12:47 +0900)
The libturbojpeg library has been updated on the target, and there is
a new subsampling option available, which means the array we use for
testing is now too small.

Added an entry to this array for the new subsampling option. In
theory, this should just work, but as we don't set this variable,
there's nothing to test.

See
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-adaptor/+/277590
for more details

Change-Id: I02bb90830d6d0969cafae635ceb6b1b6bc9c2e1a
Signed-off-by: David Steele <david.steele@samsung.com>
dali/internal/imaging/common/loader-jpeg-turbo.cpp

index 45b112cdda0ec5afa1f9f756830e295a9bab6e14..cf1bcb91f0bf2e0e4af140258b607e0146b86617 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 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.
@@ -56,7 +56,8 @@ const char* CHROMINANCE_SUBSAMPLING_OPTIONS_ENV[] = {"DALI_ENABLE_DECODE_JPEG_TO
                                                      "DALI_ENABLE_DECODE_JPEG_TO_YUV_420",
                                                      "",
                                                      "DALI_ENABLE_DECODE_JPEG_TO_YUV_440",
-                                                     "DALI_ENABLE_DECODE_JPEG_TO_YUV_411"};
+                                                     "DALI_ENABLE_DECODE_JPEG_TO_YUV_411",
+                                                     "DALI_ENABLE_DECODE_JPEG_TO_YUV_441"};
 
 static bool gSubsamplingFormatTable[TJ_NUMSAMP] = {
   false,
@@ -202,7 +203,7 @@ public:
   }
 
   /// @brief Pointer to Pointer cast operator
-  operator T**()
+  operator T* *()
   {
     return &mRawPointer;
   }