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