avcpp 3.2.1
Wrapper for the FFmpeg that simplify usage from C++ projects.
Loading...
Searching...
No Matches
filterpad.h
Go to the documentation of this file.
1#pragma once
2
9
10#include <iterator>
11#include <memory>
12#include <type_traits>
13
14#include "avcpp/ffmpeg.h"
15#include "avcpp/avutils.h"
16
17#if AVCPP_HAS_AVFILTER
18
19namespace av {
20
28class FilterPadList : public FFWrapperPtr<const AVFilterPad>
29{
30private:
31 friend class Filter;
32 FilterPadList(const AVFilterPad *begin, size_t count);
33
34public:
35 using FFWrapperPtr<const AVFilterPad>::FFWrapperPtr;
36
42 size_t count() const noexcept;
50 std::string name(size_t index) const noexcept;
59 const char* nameCStr(size_t index) const noexcept;
67 AVMediaType type(size_t index) const noexcept;
68
69private:
70 size_t m_count = 0;
71};
72
73} // namespace av
74
75#endif // if AVCPP_HAS_AVFILTER
Common helpers: comparisons, value lookup, non-copyable base, string utilities.
size_t count() const noexcept
Number of pads.
AVMediaType type(size_t index) const noexcept
Media type a pad accepts or produces.
const char * nameCStr(size_t index) const noexcept
Name of a pad as a C string.
std::string name(size_t index) const noexcept
Name of a pad.
FFmpeg types re-exported for the public API and small value wrappers.
Root namespace of the library.
Definition audioresampler.h:19
STL namespace.