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