• 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 API_RENDER_NODECONTEXT_IRENDER_POST_PROCESS_H
17 #define API_RENDER_NODECONTEXT_IRENDER_POST_PROCESS_H
18 
19 #include <base/util/uid.h>
20 #include <core/plugin/intf_interface.h>
21 #include <core/property/intf_property_handle.h>
22 #include <render/namespace.h>
23 
24 RENDER_BEGIN_NAMESPACE()
25 
26 class IRenderNodeContextManager;
27 class IRenderCommandList;
28 
29 /** @ingroup group_render_IRenderPostProcess */
30 /**
31  * Provides interface to access post process properties.
32  */
33 class IRenderPostProcess : public CORE_NS::IInterface {
34 public:
35     static constexpr auto UID = BASE_NS::Uid("f0a2ac94-f117-4abe-a564-362b37251e26");
36 
37     using Ptr = BASE_NS::refcnt_ptr<IRenderPostProcess>;
38 
39     /** Get property handle for built-in properties for this effect. Check the pointer always.
40      * These properties are global values which are usually set once or changed sparingly.
41      * For example quality parameters for the post process.
42      * @return Pointer to property handle if properties present, nullptr otherwise.
43      */
44     virtual CORE_NS::IPropertyHandle* GetProperties() = 0;
45 
46     /** Return UID of the render post process node implementation.
47      * Based on this new instances are created per render node.
48      * @return UID of the render post process node.
49      */
50     virtual BASE_NS::Uid GetRenderPostProcessNodeUid() = 0;
51 
52 protected:
53     IRenderPostProcess() = default;
54     virtual ~IRenderPostProcess() = default;
55 
56     IRenderPostProcess(const IRenderPostProcess&) = delete;
57     IRenderPostProcess& operator=(const IRenderPostProcess&) = delete;
58     IRenderPostProcess(IRenderPostProcess&&) = delete;
59     IRenderPostProcess& operator=(IRenderPostProcess&&) = delete;
60 };
61 RENDER_END_NAMESPACE()
62 
63 #endif // API_RENDER_NODECONTEXT_IRENDER_POST_PROCESS_H
64