1 /* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #include "filter_param.h" 17 18 namespace OHOS::Rosen { 19 IsFilterCacheEnable()20bool FilterParam::IsFilterCacheEnable() 21 { 22 return isFilterCacheEnable_; 23 } 24 IsEffectMergeEnable()25bool FilterParam::IsEffectMergeEnable() 26 { 27 return isEffectMergeEnable_; 28 } 29 IsBlurAdaptiveAdjust()30bool FilterParam::IsBlurAdaptiveAdjust() 31 { 32 return isBlurAdaptiveAdjust_; 33 } 34 IsMesablurAllEnable()35bool FilterParam::IsMesablurAllEnable() 36 { 37 return isMesablurAllEnbale_; 38 } 39 GetSimplifiedMesaMode()40int FilterParam::GetSimplifiedMesaMode() 41 { 42 return simplifiedMesaMode_; 43 } 44 SetFilterCacheEnable(bool isEnable)45void FilterParam::SetFilterCacheEnable(bool isEnable) 46 { 47 isFilterCacheEnable_ = isEnable; 48 } 49 SetEffectMergeEnable(bool isEnable)50void FilterParam::SetEffectMergeEnable(bool isEnable) 51 { 52 isEffectMergeEnable_ = isEnable; 53 } 54 SetBlurAdaptiveAdjust(bool isEnable)55void FilterParam::SetBlurAdaptiveAdjust(bool isEnable) 56 { 57 isBlurAdaptiveAdjust_ = isEnable; 58 } 59 SetMesablurAllEnable(bool isEnable)60void FilterParam::SetMesablurAllEnable(bool isEnable) 61 { 62 isMesablurAllEnbale_ = isEnable; 63 } 64 SetSimplifiedMesaMode(int mode)65void FilterParam::SetSimplifiedMesaMode(int mode) 66 { 67 simplifiedMesaMode_ = mode; 68 } 69 } // namespace OHOS::Rosen