19 #ifndef AVFILTER_BUFFERSRC_H
20 #define AVFILTER_BUFFERSRC_H
This structure describes decoded (raw) audio or video data.
Main libavfilter public API header.
AVRational frame_rate
Video only, the frame rate of the input video.
AVRational sample_aspect_ratio
Video only, the sample (pixel) aspect ratio.
Do not check for format changes.
AVRational time_base
The timebase to be used for the timestamps on the input frames.
int sample_rate
Audio only, the audio sampling rate in samples per secon.
uint64_t channel_layout
Audio only, the audio channel layout.
int format
video: the pixel format, value corresponds to enum AVPixelFormat audio: the sample format...
Immediately push the frame to the output.
This structure contains the parameters describing the frames that will be passed to this filter...
AVBufferRef * hw_frames_ctx
Video with a hwaccel pixel format only.
Libavcodec external API header.
Keep a reference to the frame.
rational number numerator/denominator
unsigned av_buffersrc_get_nb_failed_requests(AVFilterContext *buffer_src)
Get the number of failed requests.
#define av_warn_unused_result
av_warn_unused_result int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame)
Add a frame to the buffer source.
A reference to a data buffer.
int av_buffersrc_parameters_set(AVFilterContext *ctx, AVBufferSrcParameters *param)
Initialize the buffersrc or abuffersrc filter with the provided parameters.
av_warn_unused_result int av_buffersrc_add_frame_flags(AVFilterContext *buffer_src, AVFrame *frame, int flags)
Add a frame to the buffer source.
AVBufferSrcParameters * av_buffersrc_parameters_alloc(void)
Allocate a new AVBufferSrcParameters instance.
int width
Video only, the display dimensions of the input frames.
av_warn_unused_result int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame)
Add a frame to the buffer source.