• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 SCENE_INTERFACE_POSTPROCESS_ITONEMAP_H
17 #define SCENE_INTERFACE_POSTPROCESS_ITONEMAP_H
18 
19 #include <scene/base/types.h>
20 #include <scene/interface/postprocess/intf_postprocess_effect.h>
21 
22 SCENE_BEGIN_NAMESPACE()
23 
24 enum class TonemapType {
25     /** Aces */
26     ACES = 0,
27     /** Aces 2020 */
28     ACES_2020 = 1,
29     /** Filmic */
30     FILMIC = 2,
31 };
32 
33 class ITonemap : public IPostProcessEffect {
34     META_INTERFACE(IPostProcessEffect, ITonemap, "aec077b9-42bf-49e3-87f4-d3b7e821768f")
35 public:
36     /**
37      * @brief Camera postprocessing settings, tonemap type
38      * @return
39      */
40     META_PROPERTY(TonemapType, Type)
41 
42     /**
43      * @brief Camera postprocessing settings, tonemap exposure
44      * @return
45      */
46     META_PROPERTY(float, Exposure)
47 };
48 
49 SCENE_END_NAMESPACE()
50 
51 META_TYPE(SCENE_NS::TonemapType)
52 META_INTERFACE_TYPE(SCENE_NS::ITonemap)
53 
54 #endif
55