avcpp 3.2.1
Wrapper for the FFmpeg that simplify usage from C++ projects.
Loading...
Searching...
No Matches
filter.h
Go to the documentation of this file.
1#pragma once
2
9
10#include <memory>
11
12#include "avcpp/ffmpeg.h"
13#include "filterpad.h"
14
15#if AVCPP_HAS_AVFILTER
16
17extern "C" {
18#include <libavfilter/avfilter.h>
19}
20
21namespace av {
22
38
39
47class Filter : public FFWrapperPtr<const AVFilter>
48{
49public:
50 using FFWrapperPtr<const AVFilter>::FFWrapperPtr;
51
52 Filter() = default;
58 Filter(const AVFilter *ptr);
64 explicit Filter(const std::string& name);
70 explicit Filter(const char* name);
71
79 bool setFilter(const std::string &name);
87 bool setFilter(const char* name);
88
94 std::string name() const;
100 std::string description() const;
101
114
120 int flags() const;
121
127 operator bool() const;
128};
129
130
131} // namespace av
132
133#endif // if AVCPP_HAS_AVFILTER
Pads of a filter: its inputs or its outputs.
Definition filterpad.h:29
std::string name() const
Name of the filter.
FilterPadList inputs() const
Inputs of the filter.
int flags() const
AVFILTER_FLAG_* flags of the filter.
FilterPadList outputs() const
Outputs of the filter.
bool setFilter(const std::string &name)
Point the wrapper at another filter.
Filter(const AVFilter *ptr)
Wrap an FFmpeg filter descriptor.
Filter(const char *name)
Look a filter up by name.
Filter(const std::string &name)
Look a filter up by name.
bool setFilter(const char *name)
Point the wrapper at another filter.
std::string description() const
Description of what the filter does.
FFmpeg types re-exported for the public API and small value wrappers.
Filter pads and the links between them.
Root namespace of the library.
Definition audioresampler.h:19
FilterMediaType
Media type a filter works with.
Definition filter.h:30
@ Video
The filter processes video frames.
Definition filter.h:34
@ Unknown
The filter did not declare a type, or it was not inspected yet.
Definition filter.h:32
@ Audio
The filter processes audio samples.
Definition filter.h:36