19 #ifndef AVFILTER_BUFFERSRC_H 20 #define AVFILTER_BUFFERSRC_H 153 av_warn_unused_result
174 av_warn_unused_result
192 av_warn_unused_result
This structure describes decoded (raw) audio or video data.
Definition: frame.h:218
Main libavfilter public API header.
AVRational frame_rate
Video only, the frame rate of the input video.
Definition: buffersrc.h:100
AVRational sample_aspect_ratio
Video only, the sample (pixel) aspect ratio.
Definition: buffersrc.h:92
AVRational time_base
The timebase to be used for the timestamps on the input frames.
Definition: buffersrc.h:82
int sample_rate
Audio only, the audio sampling rate in samples per secon.
Definition: buffersrc.h:111
Do not check for format changes.
Definition: buffersrc.h:41
uint64_t channel_layout
Audio only, the audio channel layout.
Definition: buffersrc.h:116
int av_buffersrc_close(AVFilterContext *ctx, int64_t pts, unsigned flags)
Close the buffer source after EOF.
Definition: buffersrc.c:263
int format
video: the pixel format, value corresponds to enum AVPixelFormat audio: the sample format...
Definition: buffersrc.h:78
This structure contains the parameters describing the frames that will be passed to this filter...
Definition: buffersrc.h:73
struct AVBufferSrcParameters AVBufferSrcParameters
This structure contains the parameters describing the frames that will be passed to this filter...
Keep a reference to the frame.
Definition: buffersrc.h:53
AVBufferRef * hw_frames_ctx
Video with a hwaccel pixel format only.
Definition: buffersrc.h:106
Rational number (pair of numerator and denominator).
Definition: rational.h:58
unsigned av_buffersrc_get_nb_failed_requests(AVFilterContext *buffer_src)
Get the number of failed requests.
Definition: buffersrc.c:293
av_warn_unused_result int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame)
Add a frame to the buffer source.
Definition: buffersrc.c:138
A reference to a data buffer.
Definition: buffer.h:81
Immediately push the frame to the output.
Definition: buffersrc.h:46
int av_buffersrc_parameters_set(AVFilterContext *ctx, AVBufferSrcParameters *param)
Initialize the buffersrc or abuffersrc filter with the provided parameters.
Definition: buffersrc.c:93
av_warn_unused_result int av_buffersrc_add_frame_flags(AVFilterContext *buffer_src, AVFrame *frame, int flags)
Add a frame to the buffer source.
Definition: buffersrc.c:152
AVBufferSrcParameters * av_buffersrc_parameters_alloc(void)
Allocate a new AVBufferSrcParameters instance.
Definition: buffersrc.c:82
An instance of a filter.
Definition: avfilter.h:338
int width
Video only, the display dimensions of the input frames.
Definition: buffersrc.h:87
av_warn_unused_result int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame)
Add a frame to the buffer source.
Definition: buffersrc.c:144