37 friend class FilterInOut;
118 const std::string& filterName,
119 const std::string& filterArgs,
133 void parse(
const std::string &graphDescription,
165 std::string
dump(
bool doPrint =
true,
const std::string& options = std::string());
190 bool m_bufferSrcSearchDone =
false;
192 bool m_bufferSinkSearchDone =
false;
194 bool m_configured =
false;
Error codes, error categories and the OptionalErrorCode convention.
Buffersink filter: frames leave the graph here.
Buffersrc filter: frames enter the graph here.
Exit point of a filter graph.
Definition buffersink.h:34
Entry point of a filter graph.
Definition buffersrc.h:31
One filter instance inside a graph.
Definition filtercontext.h:30
FilterContext filter(const std::string &name, OptionalErrorCode ec=throws())
Filter instance by name.
int filtersCount() const
Number of filters in the graph.
FilterGraph()
Create an empty graph.
FilterContext filter(unsigned idx, OptionalErrorCode ec=throws())
Filter instance by position.
std::string dump(bool doPrint=true, const std::string &options=std::string())
Describe the graph.
BufferSinkFilterContext bufferSinkFilter(OptionalErrorCode ec=throws())
The sink endpoint the graph was parsed with.
void parse(const std::string &graphDescription, FilterContext &srcFilterCtx, FilterContext &sinkFilterCtx, OptionalErrorCode ec=throws())
Build the graph from a textual description with explicit endpoints.
BufferSrcFilterContext bufferSrcFilter(OptionalErrorCode ec=throws())
The source endpoint the graph was parsed with.
void parse(const std::string &graphDescription, OptionalErrorCode ec=throws())
Build the graph from a textual description.
FilterContext allocFilter(const Filter &filter, const std::string &name, OptionalErrorCode ec=throws())
Add a filter without initialising it.
FilterContext createFilter(const Filter &filter, const std::string &filterName, const std::string &filterArgs, OptionalErrorCode ec=throws())
Add a filter and initialise it with its arguments.
FilterGraph(decltype(nullptr))
Create an empty graph from a nullptr tag; the graph starts empty.
void config(OptionalErrorCode ec=throws())
Negotiate formats and allocate the graph.
bool isValid()
Whether the graph has an FFmpeg context.
void setAutoConvert(unsigned flags)
Enable automatic format conversion between linked filters.
A filter descriptor: the static description of one filter.
Definition filter.h:48
Carries the caller's choice between exceptions and error codes.
Definition averror.h:96
FFmpeg types re-exported for the public API and small value wrappers.
Source and sink filter contexts.
Root namespace of the library.
Definition audioresampler.h:19