Go to the documentation of this file.
19 #ifndef AVFILTER_BUFFERSINK_H
20 #define AVFILTER_BUFFERSINK_H
89 #define AV_BUFFERSINK_FLAG_PEEK 1
96 #define AV_BUFFERSINK_FLAG_NO_REQUEST 2
98 #if FF_API_BUFFERSINK_ALLOC
102 typedef struct AVBufferSinkParams {
104 } AVBufferSinkParams;
117 typedef struct AVABufferSinkParams {
121 int all_channel_counts;
123 } AVABufferSinkParams;
int av_buffersink_get_samples(AVFilterContext *ctx, AVFrame *frame, int nb_samples)
Same as av_buffersink_get_frame(), but with the ability to specify the number of samples read.
AVPixelFormat
Pixel format.
AVRational av_buffersink_get_sample_aspect_ratio(const AVFilterContext *ctx)
static enum AVSampleFormat sample_fmts[]
int av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags)
Get a frame with filtered data from sink and put it in frame.
This structure describes decoded (raw) audio or video data.
static enum AVPixelFormat pixel_fmts[]
AVBufferRef * av_buffersink_get_hw_frames_ctx(const AVFilterContext *ctx)
void av_buffersink_set_frame_size(AVFilterContext *ctx, unsigned frame_size)
Set the frame size for an audio buffer sink.
AVRational av_buffersink_get_frame_rate(const AVFilterContext *ctx)
AVABufferSinkParams * av_abuffersink_params_alloc(void)
int av_buffersink_get_frame(AVFilterContext *ctx, AVFrame *frame)
Get a frame with filtered data from sink and put it in frame.
int av_buffersink_get_format(const AVFilterContext *ctx)
AVRational av_buffersink_get_time_base(const AVFilterContext *ctx)
Rational number (pair of numerator and denominator).
AVBufferSinkParams * av_buffersink_params_alloc(void)
uint64_t av_buffersink_get_channel_layout(const AVFilterContext *ctx)
#define attribute_deprecated
enum AVMediaType av_buffersink_get_type(const AVFilterContext *ctx)
int av_buffersink_get_w(const AVFilterContext *ctx)
AVSampleFormat
Audio sample formats.
int av_buffersink_get_h(const AVFilterContext *ctx)
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a frame
static const uint8_t channel_counts[7]
int av_buffersink_get_sample_rate(const AVFilterContext *ctx)
int av_buffersink_get_channels(const AVFilterContext *ctx)
A reference to a data buffer.
static const uint16_t channel_layouts[7]
#define flags(name, subs,...)