forked from avTranscoder/avTranscoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFilter.hpp
More file actions
40 lines (31 loc) · 956 Bytes
/
Copy pathFilter.hpp
File metadata and controls
40 lines (31 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _AV_TRANSCODER_FILTER_FILTER_HPP_
#define _AV_TRANSCODER_FILTER_FILTER_HPP_
#include <AvTranscoder/common.hpp>
struct AVFilter;
struct AVFilterContext;
namespace avtranscoder
{
/**
* @brief Describe a filter and its options.
**/
class AvExport Filter
{
public:
Filter(const std::string& name, const std::string& options = "", const std::string& instanceName = "");
~Filter();
std::string getName() const;
std::string getOptions() const { return _options; }
std::string getInstanceName() const { return _instanceName; }
#ifndef SWIG
AVFilter& getAVFilter() { return *_filter; }
AVFilterContext* getAVFilterContext() { return _context; }
void setAVFilterContext(AVFilterContext* newContext) { _context = newContext; }
#endif
private:
AVFilter* _filter; ///< Has ownership
AVFilterContext* _context; ///< Has link (no ownership)
std::string _options;
std::string _instanceName;
};
}
#endif