Go to the documentation of this file.
19 #ifndef AVFILTER_BUFFERSRC_H
20 #define AVFILTER_BUFFERSRC_H
enum AVColorSpace color_space
Video only, the YUV colorspace and range.
@ AV_BUFFERSRC_FLAG_PUSH
Immediately push the frame to the output.
This structure describes decoded (raw) audio or video data.
av_warn_unused_result int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame)
Add a frame to the buffer source.
@ AV_BUFFERSRC_FLAG_KEEP_REF
Keep a reference to the frame.
AVRational sample_aspect_ratio
Video only, the sample (pixel) aspect ratio.
AVChannelLayout ch_layout
Audio only, the audio channel layout.
Rational number (pair of numerator and denominator).
AVRational frame_rate
Video only, the frame rate of the input video.
int av_buffersrc_close(AVFilterContext *ctx, int64_t pts, unsigned flags)
Close the buffer source after EOF.
An AVChannelLayout holds information about the channel layout of audio data.
AVBufferSrcParameters * av_buffersrc_parameters_alloc(void)
Allocate a new AVBufferSrcParameters instance.
AVBufferRef * hw_frames_ctx
Video with a hwaccel pixel format only.
int sample_rate
Audio only, the audio sampling rate in samples per second.
AVRational time_base
The timebase to be used for the timestamps on the input frames.
#define av_warn_unused_result
int av_buffersrc_parameters_set(AVFilterContext *ctx, AVBufferSrcParameters *param)
Initialize the buffersrc or abuffersrc filter with the provided parameters.
int width
Video only, the display dimensions of the input frames.
av_warn_unused_result int av_buffersrc_add_frame_flags(AVFilterContext *buffer_src, AVFrame *frame, int flags)
Add a frame to the buffer source.
AVColorSpace
YUV colorspace type.
@ AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT
Do not check for format changes.
enum AVColorRange color_range
This structure contains the parameters describing the frames that will be passed to this filter.
int format
video: the pixel format, value corresponds to enum AVPixelFormat audio: the sample format,...
unsigned av_buffersrc_get_nb_failed_requests(AVFilterContext *buffer_src)
Get the number of failed requests.
A reference to a data buffer.
av_warn_unused_result int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame)
Add a frame to the buffer source.
#define flags(name, subs,...)
AVColorRange
Visual content value range.