Fixing static analysis error 58/303958/1
authorDavid Steele <david.steele@samsung.com>
Mon, 8 Jan 2024 10:33:54 +0000 (10:33 +0000)
committerDavid Steele <david.steele@samsung.com>
Mon, 8 Jan 2024 10:33:54 +0000 (10:33 +0000)
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 45b112c..cf1bcb9 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;
   }