10#include "avcpp/avconfig.h"
33class BufferSinkFilterContext
43 BufferSinkFilterContext() =
default;
153 int m_req = ReqUninited;
Error codes, error categories and the OptionalErrorCode convention.
One buffer of decoded audio samples.
Definition frame.h:892
BufferSinkFilterContext(const FilterContext &ctx, OptionalErrorCode ec=throws())
Wrap a sink context created by a graph.
Rational frameRate(OptionalErrorCode ec=throws())
Frame rate the sink reports.
bool getAudioFrame(AudioSamples &samples, OptionalErrorCode ec=throws())
Read one buffer of samples from the graph.
static FilterMediaType checkFilter(const Filter &filter) noexcept
Media type a filter would accept as a sink.
bool getVideoFrame(VideoFrame &frame, OptionalErrorCode ec=throws())
Read one frame from the graph.
bool getVideoFrame(VideoFrame &frame, int flags, OptionalErrorCode ec=throws())
Read one frame with explicit AV_BUFFERSINK_FLAG_* flags.
void assign(const FilterContext &ctx, OptionalErrorCode ec=throws())
Point the wrapper at another sink context.
bool getAudioFrame(AudioSamples &samples, int flags, OptionalErrorCode ec=throws())
Read one buffer of samples with explicit sink flags.
bool getAudioSamples(AudioSamples &samples, size_t samplesCount, OptionalErrorCode ec=throws())
Read an exact number of samples.
BufferSinkFilterContext & operator=(const FilterContext &ctx)
Assign from a filter context.
void setFrameSize(unsigned size, OptionalErrorCode ec=throws())
Ask the sink to deliver frames of a fixed size.
One filter instance inside a graph.
Definition filtercontext.h:30
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
Rational number: a numerator and a denominator.
Definition rational.h:49
One video frame.
Definition frame.h:578
FFmpeg types re-exported for the public API and small value wrappers.
A single filter instance and its pads.
Source and sink filter contexts.
Video frames, audio samples and their common frame interface.
Root namespace of the library.
Definition audioresampler.h:19
FilterMediaType
Media type a filter works with.
Definition filter.h:30
@ Unknown
The filter did not declare a type, or it was not inspected yet.
Definition filter.h:32
Rational numbers, time bases and arithmetic on them.