World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
buffersink.h
См. документацию.
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 
47 
53 #define AV_BUFFERSINK_FLAG_PEEK 1
54 
60 #define AV_BUFFERSINK_FLAG_NO_REQUEST 2
61 
65 typedef struct AVBufferSinkParams {
66  const enum AVPixelFormat *pixel_fmts;
68 
75 
79 typedef struct AVABufferSinkParams {
82  const int *channel_counts;
84  int *sample_rates;
86 
93 
101 void av_buffersink_set_frame_size(AVFilterContext *ctx, unsigned frame_size);
102 
112 
117 
121 
123 
141 
159 int av_buffersink_get_samples(AVFilterContext *ctx, AVFrame *frame, int nb_samples);
160 
165 #endif /* AVFILTER_BUFFERSINK_H */
av_buffersink_get_samples
int av_buffersink_get_samples(AVFilterContext *ctx, AVFrame *frame, int nb_samples)
AVPixelFormat
AVPixelFormat
Definition: pixfmt.h:64
av_buffersink_get_sample_aspect_ratio
AVRational av_buffersink_get_sample_aspect_ratio(const AVFilterContext *ctx)
AVABufferSinkParams::sample_rates
int * sample_rates
list of allowed sample rates, terminated by -1
Definition: buffersink.h:84
AVFilterContext
Definition: avfilter.h:338
av_buffersink_get_frame_flags
int av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags)
av_buffersink_get_hw_frames_ctx
AVBufferRef * av_buffersink_get_hw_frames_ctx(const AVFilterContext *ctx)
AVBufferSinkParams
Definition: buffersink.h:65
AVABufferSinkParams::all_channel_counts
int all_channel_counts
if not 0, accept any channel count or layout
Definition: buffersink.h:83
av_buffersink_set_frame_size
void av_buffersink_set_frame_size(AVFilterContext *ctx, unsigned frame_size)
int64_t
__int64 int64_t
Definition: alext.h:31
AVABufferSinkParams
struct AVABufferSinkParams AVABufferSinkParams
uint64_t
unsigned __int64 uint64_t
Definition: alext.h:32
av_buffersink_get_frame_rate
AVRational av_buffersink_get_frame_rate(const AVFilterContext *ctx)
av_buffersink_get_frame
int av_buffersink_get_frame(AVFilterContext *ctx, AVFrame *frame)
av_buffersink_get_format
int av_buffersink_get_format(const AVFilterContext *ctx)
av_buffersink_get_time_base
AVRational av_buffersink_get_time_base(const AVFilterContext *ctx)
av_buffersink_params_alloc
AVBufferSinkParams * av_buffersink_params_alloc(void)
AVABufferSinkParams::sample_fmts
enum AVSampleFormat * sample_fmts
list of allowed sample formats, terminated by AV_SAMPLE_FMT_NONE
Definition: buffersink.h:80
av_buffersink_get_channel_layout
uint64_t av_buffersink_get_channel_layout(const AVFilterContext *ctx)
AVMediaType
AVMediaType
Definition: avutil.h:199
ctx
EGLContext ctx
Definition: SDL_egl.h:952
av_abuffersink_params_alloc
AVABufferSinkParams * av_abuffersink_params_alloc(void)
AVBufferRef
Definition: buffer.h:81
av_buffersink_get_type
enum AVMediaType av_buffersink_get_type(const AVFilterContext *ctx)
AVABufferSinkParams::channel_counts
const int * channel_counts
list of allowed channel counts, terminated by -1
Definition: buffersink.h:82
av_buffersink_get_w
int av_buffersink_get_w(const AVFilterContext *ctx)
AVBufferSinkParams::pixel_fmts
enum AVPixelFormat * pixel_fmts
list of allowed pixel formats, terminated by AV_PIX_FMT_NONE
Definition: buffersink.h:66
AVABufferSinkParams
Definition: buffersink.h:79
AVSampleFormat
AVSampleFormat
Definition: samplefmt.h:58
av_buffersink_get_h
int av_buffersink_get_h(const AVFilterContext *ctx)
flags
EGLSyncKHR EGLint flags
Definition: SDL_egl.h:898
av_buffersink_get_sample_rate
int av_buffersink_get_sample_rate(const AVFilterContext *ctx)
avfilter.h
av_buffersink_get_channels
int av_buffersink_get_channels(const AVFilterContext *ctx)
AVABufferSinkParams::channel_layouts
const int64_t * channel_layouts
list of allowed channel layouts, terminated by -1
Definition: buffersink.h:81
AVRational
Definition: rational.h:58
AVBufferSinkParams
struct AVBufferSinkParams AVBufferSinkParams
AVFrame
Definition: frame.h:295