|
avcpp 3.2.1
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
Exit point of a filter graph. More...
#include <buffersink.h>
Public Member Functions | |
| BufferSinkFilterContext (const FilterContext &ctx, OptionalErrorCode ec=throws()) | |
| Wrap a sink context created by a graph. | |
| void | assign (const FilterContext &ctx, OptionalErrorCode ec=throws()) |
| Point the wrapper at another sink context. | |
| BufferSinkFilterContext & | operator= (const FilterContext &ctx) |
| Assign from a filter context. | |
| bool | getVideoFrame (VideoFrame &frame, int flags, OptionalErrorCode ec=throws()) |
| Read one frame with explicit AV_BUFFERSINK_FLAG_* flags. | |
| bool | getVideoFrame (VideoFrame &frame, OptionalErrorCode ec=throws()) |
| Read one frame from the graph. | |
| bool | getAudioFrame (AudioSamples &samples, int flags, OptionalErrorCode ec=throws()) |
| Read one buffer of samples with explicit sink flags. | |
| bool | getAudioFrame (AudioSamples &samples, OptionalErrorCode ec=throws()) |
| Read one buffer of samples from the graph. | |
| bool | getAudioSamples (AudioSamples &samples, size_t samplesCount, OptionalErrorCode ec=throws()) |
| Read an exact number of samples. | |
| void | setFrameSize (unsigned size, OptionalErrorCode ec=throws()) |
| Ask the sink to deliver frames of a fixed size. | |
| Rational | frameRate (OptionalErrorCode ec=throws()) |
| Frame rate the sink reports. | |
Static Public Member Functions | |
| static FilterMediaType | checkFilter (const Filter &filter) noexcept |
| Media type a filter would accept as a sink. | |
Wraps the "buffersink" or "abuffersink" filter: frames or samples leave the graph here. A sink can produce zero, one or several outputs after a single push, so reading in a loop until it returns false is the normal pattern.
|
explicit |
| ctx | the filter context to wrap |
| ec | holder for the error code; a non-sink filter is reported |
| void av::BufferSinkFilterContext::assign | ( | const FilterContext & | ctx, |
| OptionalErrorCode | ec = throws() ) |
| ctx | the filter context to wrap |
| ec | holder for the error code |
|
staticnoexcept |
| filter | the filter descriptor to inspect |
| Rational av::BufferSinkFilterContext::frameRate | ( | OptionalErrorCode | ec = throws() | ) |
| ec | holder for the error code |
| bool av::BufferSinkFilterContext::getAudioFrame | ( | AudioSamples & | samples, |
| int | flags, | ||
| OptionalErrorCode | ec = throws() ) |
| samples | receives the samples; left invalid when nothing is available |
| flags | the sink flags |
| ec | holder for the error code |
| bool av::BufferSinkFilterContext::getAudioFrame | ( | AudioSamples & | samples, |
| OptionalErrorCode | ec = throws() ) |
| samples | receives the samples; left invalid when nothing is available |
| ec | holder for the error code |
| bool av::BufferSinkFilterContext::getAudioSamples | ( | AudioSamples & | samples, |
| size_t | samplesCount, | ||
| OptionalErrorCode | ec = throws() ) |
| samples | receives the samples |
| samplesCount | number of samples per channel to read |
| ec | holder for the error code |
| bool av::BufferSinkFilterContext::getVideoFrame | ( | VideoFrame & | frame, |
| int | flags, | ||
| OptionalErrorCode | ec = throws() ) |
| frame | receives the frame; left invalid when nothing is available |
| flags | the sink flags |
| ec | holder for the error code |
| bool av::BufferSinkFilterContext::getVideoFrame | ( | VideoFrame & | frame, |
| OptionalErrorCode | ec = throws() ) |
| frame | receives the frame; left invalid when nothing is available |
| ec | holder for the error code |
| BufferSinkFilterContext & av::BufferSinkFilterContext::operator= | ( | const FilterContext & | ctx | ) |
| ctx | the filter context to wrap |
| void av::BufferSinkFilterContext::setFrameSize | ( | unsigned | size, |
| OptionalErrorCode | ec = throws() ) |
| size | samples per channel per output buffer |
| ec | holder for the error code |