Miam-Player  0.8.0
A nice music player
buffersink.h
Go to the documentation of this file.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef AVFILTER_BUFFERSINK_H
20 #define AVFILTER_BUFFERSINK_H
21 
28 #include "avfilter.h"
29 
46 int av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags);
47 
53 #define AV_BUFFERSINK_FLAG_PEEK 1
54 
60 #define AV_BUFFERSINK_FLAG_NO_REQUEST 2
61 
65 typedef struct {
66  const enum AVPixelFormat *pixel_fmts;
68 
75 
79 typedef struct {
81  const int64_t *channel_layouts;
82  const int *channel_counts;
84  int *sample_rates;
86 
93 
101 void av_buffersink_set_frame_size(AVFilterContext *ctx, unsigned frame_size);
102 
107 
123 
141 int av_buffersink_get_samples(AVFilterContext *ctx, AVFrame *frame, int nb_samples);
142 
147 #endif /* AVFILTER_BUFFERSINK_H */
enum AVPixelFormat * pixel_fmts
list of allowed pixel formats, terminated by AV_PIX_FMT_NONE
Definition: buffersink.h:66
int all_channel_counts
if not 0, accept any channel count or layout
Definition: buffersink.h:83
AVBufferSinkParams * av_buffersink_params_alloc(void)
AVABufferSinkParams * av_abuffersink_params_alloc(void)
Definition: frame.h:184
int * sample_rates
list of allowed sample rates, terminated by -1
Definition: buffersink.h:84
const int * channel_counts
list of allowed channel counts, terminated by -1
Definition: buffersink.h:82
int av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags)
int av_buffersink_get_samples(AVFilterContext *ctx, AVFrame *frame, int nb_samples)
AVSampleFormat
Definition: samplefmt.h:58
const int64_t * channel_layouts
list of allowed channel layouts, terminated by -1
Definition: buffersink.h:81
enum AVSampleFormat * sample_fmts
list of allowed sample formats, terminated by AV_SAMPLE_FMT_NONE
Definition: buffersink.h:80
Definition: rational.h:58
AVRational av_buffersink_get_frame_rate(AVFilterContext *ctx)
Definition: buffersink.h:79
Definition: avfilter.h:307
void av_buffersink_set_frame_size(AVFilterContext *ctx, unsigned frame_size)
Definition: buffersink.h:65
int av_buffersink_get_frame(AVFilterContext *ctx, AVFrame *frame)
AVPixelFormat
Definition: pixfmt.h:60