Go to the documentation of this file.
19 #ifndef AVFILTER_BUFFERSINK_H
20 #define AVFILTER_BUFFERSINK_H
88 #define AV_BUFFERSINK_FLAG_PEEK 1
95 #define AV_BUFFERSINK_FLAG_NO_REQUEST 2
97 #if FF_API_BUFFERSINK_ALLOC
101 typedef struct AVBufferSinkParams {
103 } AVBufferSinkParams;
111 AVBufferSinkParams *av_buffersink_params_alloc(
void);
116 typedef struct AVABufferSinkParams {
118 const int64_t *channel_layouts;
119 const int *channel_counts;
120 int all_channel_counts;
122 } AVABufferSinkParams;
130 AVABufferSinkParams *av_abuffersink_params_alloc(
void);
158 #if FF_API_OLD_CHANNEL_LAYOUT
160 uint64_t av_buffersink_get_channel_layout (
const AVFilterContext *ctx);
int av_buffersink_get_ch_layout(const AVFilterContext *ctx, AVChannelLayout *ch_layout)
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)
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.
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)
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).
An AVChannelLayout holds information about the channel layout of audio data.
#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)
int av_buffersink_get_sample_rate(const AVFilterContext *ctx)
Main libavfilter public API header.
int av_buffersink_get_channels(const AVFilterContext *ctx)
A reference to a data buffer.