avcpp
3.1.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Toggle main menu visibility
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
17
extern
"C"
{
18
#include <libavfilter/avfilter.h>
19
}
20
21
namespace
av
{
22
29
enum class
FilterMediaType
30
{
32
Unknown
,
34
Video
,
36
Audio
,
37
};
38
39
47
class
Filter :
public
FFWrapperPtr
<const AVFilter>
48
{
49
public
:
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
107
FilterPadList
inputs
()
const
;
113
FilterPadList
outputs
()
const
;
114
120
int
flags
()
const
;
121
127
operator
bool()
const
;
128
};
129
130
131
}
// namespace av
132
133
#endif
// if AVCPP_HAS_AVFILTER
av::FilterPadList
Pads of a filter: its inputs or its outputs.
Definition
filterpad.h:29
av::Filter::name
std::string name() const
Name of the filter.
av::Filter::inputs
FilterPadList inputs() const
Inputs of the filter.
av::Filter::flags
int flags() const
AVFILTER_FLAG_* flags of the filter.
av::Filter::outputs
FilterPadList outputs() const
Outputs of the filter.
av::Filter::setFilter
bool setFilter(const std::string &name)
Point the wrapper at another filter.
av::Filter::Filter
Filter(const AVFilter *ptr)
Wrap an FFmpeg filter descriptor.
av::Filter::Filter
Filter(const char *name)
Look a filter up by name.
av::Filter::Filter
Filter(const std::string &name)
Look a filter up by name.
av::Filter::setFilter
bool setFilter(const char *name)
Point the wrapper at another filter.
av::Filter::description
std::string description() const
Description of what the filter does.
ffmpeg.h
FFmpeg types re-exported for the public API and small value wrappers.
filterpad.h
Filter pads and the links between them.
av
Root namespace of the library.
Definition
audioresampler.h:19
av::FilterMediaType
FilterMediaType
Media type a filter works with.
Definition
filter.h:30
av::FilterMediaType::Video
@ Video
The filter processes video frames.
Definition
filter.h:34
av::FilterMediaType::Unknown
@ Unknown
The filter did not declare a type, or it was not inspected yet.
Definition
filter.h:32
av::FilterMediaType::Audio
@ Audio
The filter processes audio samples.
Definition
filter.h:36
FFWrapperPtr< const AVFilter >::FFWrapperPtr
FFWrapperPtr()=default
avcpp
filters
filter.h
Generated by
1.18.0