From: David Steele Date: Mon, 8 Jan 2024 10:33:54 +0000 (+0000) Subject: [Tizen] Fixing static analysis error X-Git-Tag: accepted/tizen/8.0/unified/20240109.155450^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4eecb51c4036eb9dac4ea9eef79da0025bc6cca;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git [Tizen] Fixing static analysis error 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 --- diff --git a/dali/internal/imaging/common/loader-jpeg-turbo.cpp b/dali/internal/imaging/common/loader-jpeg-turbo.cpp index 45b112cdd..cf1bcb91f 100644 --- a/dali/internal/imaging/common/loader-jpeg-turbo.cpp +++ b/dali/internal/imaging/common/loader-jpeg-turbo.cpp @@ -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; }