avcpp  2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
filtercontext.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 
5 #include "ffmpeg.h"
6 #include "filter.h"
7 #include "averror.h"
8 //#include "filteropaque.h"
9 //#include "filtercontext_helper.h"
10 
11 #if AVCPP_HAS_AVFILTER
12 
13 namespace av {
14 
15 class FilterContext : public FFWrapperPtr<AVFilterContext>
16 {
17  friend class FilterGraph;
18 
19 public:
21 
22  FilterContext(AVFilterContext *ctx);
23  FilterContext() = default;
24 
25  Filter filter() const;
26  std::string name() const;
27 
28  size_t inputsCount() const;
29  size_t outputsCount() const;
30 
31  void init(const std::string &args, OptionalErrorCode ec = throws());
32  void free();
33 
34  void link(unsigned srcPad, FilterContext& dstFilter, unsigned dstPad, OptionalErrorCode ec = throws());
35 
36  operator bool() const;
37 
38 protected:
39 
40 };
41 
42 } // namespace av
43 
44 #endif // if AVCPP_HAS_AVFILTER
Definition: audioresampler.cpp:8
void init()
Init all subsustems needed by avcpp.
Definition: avutils.cpp:175
Definition: ffmpeg.h:22