avcpp  2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
filter.h
Go to the documentation of this file.
1 #ifndef AV_FILTER_H
2 #define AV_FILTER_H
3 
4 #include <memory>
5 
6 #include "ffmpeg.h"
7 #include "filterpad.h"
8 
9 extern "C" {
10 #include <libavfilter/avfilter.h>
11 }
12 
13 namespace av {
14 
15 enum class FilterMediaType
16 {
17  Unknown,
18  Video,
19  Audio,
20 };
21 
22 
23 class Filter : public FFWrapperPtr<const AVFilter>
24 {
25 public:
27 
28  Filter() = default;
29  Filter(const AVFilter *ptr);
30  explicit Filter(const std::string& name);
31  explicit Filter(const char* name);
32 
33  bool setFilter(const std::string &name);
34  bool setFilter(const char* name);
35 
36  std::string name() const;
37  std::string description() const;
38 
39  FilterPadList inputs() const;
40  FilterPadList outputs() const;
41 
42  int flags() const;
43 
44  operator bool() const;
45 };
46 
47 
48 } // namespace av
49 
50 #endif // AV_FILTER_H
av::FilterMediaType
FilterMediaType
Definition: filter.h:15
av::Filter
Definition: filter.h:23
ffmpeg.h
FFWrapperPtr
Definition: ffmpeg.h:68
av::FilterMediaType::Audio
@ Audio
filterpad.h
av::FilterMediaType::Unknown
@ Unknown
av::Filter::setFilter
bool setFilter(const std::string &name)
Definition: filter.cpp:31
av::Filter::flags
int flags() const
Definition: filter.cpp:62
av::Filter::Filter
Filter()=default
av::Filter::outputs
FilterPadList outputs() const
Definition: filter.cpp:57
av::Filter::description
std::string description() const
Definition: filter.cpp:47
av
Definition: audioresampler.cpp:8
av::FilterMediaType::Video
@ Video
av::FilterPadList
Definition: filterpad.h:13
av::Filter::inputs
FilterPadList inputs() const
Definition: filter.cpp:52
av::Filter::name
std::string name() const
Definition: filter.cpp:42