64c67a39b6ba672bcb1e89f936fb4c8ca00e6c1b
[platform/core/multimedia/dfs-adaptation.git] / include / dfs_adaptation.h
1 /**
2  * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __DFS_ADAPTATION_H__
18 #define __DFS_ADAPTATION_H__
19
20 #include <map>
21 #include <vector>
22 #include <string>
23
24 #include "dfs_parameter.h"
25
26 namespace DfsAdaptation
27 {
28         class IDfsAdaptation
29         {
30         public:
31                 virtual ~IDfsAdaptation() {};
32
33                 /**
34                  * @brief Initialize dfs adaptor.
35                  * @since_tizen 7.0
36                  */
37                 virtual void Initialize(DfsParameter& param,
38                                                                 size_t width,
39                                                                 size_t height,
40                                                                 size_t minDisp,
41                                                                 size_t maxDisp) = 0;
42
43                 /**
44                  * @brief Run dfs adaptor.
45                  * @since_tizen 7.0
46                  */
47                 virtual void Run(DfsData& base, DfsData& extra) = 0;
48
49                 /**
50                  * @brief Run dfs adaptor.
51                  * @since_tizen 7.0
52                  */
53                 virtual DfsData& GetDepthData() = 0;
54         };
55
56         typedef void destroy_t(IDfsAdaptation *);
57         typedef IDfsAdaptation *init_t(void);
58 } /* DfsAdaptation */
59
60 #endif /* __DFS_ADAPTATION_H__ */