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 IMAGE_EFFECT_EFFECT_CONTEXT_H
17 #define IMAGE_EFFECT_EFFECT_CONTEXT_H
18 
19 #include <unordered_set>
20 
21 #include "effect_info.h"
22 #include "effect_memory_manager.h"
23 #include "render_strategy.h"
24 #include "capability_negotiate.h"
25 #include "colorspace_manager.h"
26 #include "image_effect_marco_define.h"
27 #include "efilter_metainfo_negotiate.h"
28 
29 namespace OHOS {
30 namespace Media {
31 namespace Effect {
32 class RenderEnvironment;
33 struct EffectContext {
34 public:
35     std::shared_ptr<EffectMemoryManager> memoryManager_;
36     std::shared_ptr<RenderStrategy> renderStrategy_;
37     std::shared_ptr<CapabilityNegotiate> capNegotiate_;
38     std::shared_ptr<RenderEnvironment> renderEnvironment_;
39     std::shared_ptr<ColorSpaceManager> colorSpaceManager_;
40     std::shared_ptr<EfilterMetaInfoNegotiate> metaInfoNegotiate_;
41     IPType ipType_ = IPType::DEFAULT;
42     std::unordered_set<EffectColorSpace> filtersSupportedColorSpace_;
43 
44     IMAGE_EFFECT_EXPORT std::shared_ptr<ExifMetadata> GetExifMetadata();
45 };
46 } // namespace Effect
47 } // namespace Media
48 } // namespace OHOS
49 #endif // IMAGE_EFFECT_EFFECT_CONTEXT_H
50