1 /* 2 * Copyright (c) 2024 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 #ifndef AIHDR_ENHANCER_BASE_H 17 #define AIHDR_ENHANCER_BASE_H 18 19 #include <functional> 20 #include <memory> 21 22 #include "nocopyable.h" 23 24 #include "frame_info.h" 25 26 namespace OHOS { 27 namespace Media { 28 namespace VideoProcessingEngine { 29 class AihdrEnhancerBase : public NoCopyable { 30 public: 31 virtual ~AihdrEnhancerBase() = default; 32 virtual VPEAlgoErrCode Init() = 0; 33 virtual VPEAlgoErrCode Deinit() = 0; 34 virtual VPEAlgoErrCode SetParameter(const int& parameter) = 0; 35 virtual VPEAlgoErrCode GetParameter(int& parameter) = 0; 36 virtual VPEAlgoErrCode Process(const sptr<SurfaceBuffer>& input) = 0; 37 }; 38 39 using AihdrEnhancerCreator = std::function<std::shared_ptr<AihdrEnhancerBase>()>; 40 } // namespace VideoProcessingEngine 41 } // namespace Media 42 } // namespace OHOS 43 44 #endif // AIHDR_ENHANCER_BASE_H 45