Libav
buffersrc.h
Go to the documentation of this file.
1 /*
2  * This file is part of Libav.
3  *
4  * Libav 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  * Libav 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 Libav; 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_BUFFERSRC_H
20 #define AVFILTER_BUFFERSRC_H
21 
28 #include "avfilter.h"
29 
43 typedef struct AVBufferSrcParameters {
48  int format;
53 
57  int width, height;
58 
63 
71 
77 
82 
86  uint64_t channel_layout;
88 
94 
109 
121 
138 
143 #endif /* AVFILTER_BUFFERSRC_H */
This structure describes decoded (raw) audio or video data.
Definition: frame.h:140
Main libavfilter public API header.
AVRational frame_rate
Video only, the frame rate of the input video.
Definition: buffersrc.h:70
AVRational sample_aspect_ratio
Video only, the sample (pixel) aspect ratio.
Definition: buffersrc.h:62
AVRational time_base
The timebase to be used for the timestamps on the input frames.
Definition: buffersrc.h:52
int sample_rate
Audio only, the audio sampling rate in samples per secon.
Definition: buffersrc.h:81
uint64_t channel_layout
Audio only, the audio channel layout.
Definition: buffersrc.h:86
int format
video: the pixel format, value corresponds to enum AVPixelFormat audio: the sample format...
Definition: buffersrc.h:48
This structure contains the parameters describing the frames that will be passed to this filter...
Definition: buffersrc.h:43
AVFormatContext * ctx
Definition: movenc.c:48
AVBufferRef * hw_frames_ctx
Video with a hwaccel pixel format only.
Definition: buffersrc.h:76
int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame)
Add a frame to the buffer source.
Definition: buffersrc.c:137
rational number numerator/denominator
Definition: rational.h:43
int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame)
Add a frame to the buffer source.
Definition: buffersrc.c:152
A reference to a data buffer.
Definition: buffer.h:81
int av_buffersrc_parameters_set(AVFilterContext *ctx, AVBufferSrcParameters *param)
Initialize the buffersrc or abuffersrc filter with the provided parameters.
Definition: buffersrc.c:92
AVBufferSrcParameters * av_buffersrc_parameters_alloc(void)
Allocate a new AVBufferSrcParameters instance.
Definition: buffersrc.c:81
An instance of a filter.
Definition: avfilter.h:262
int width
Video only, the display dimensions of the input frames.
Definition: buffersrc.h:57