Libav
Data Fields

This structure contains the parameters describing the frames that will be passed to this filter. More...

#include <buffersrc.h>

Data Fields

int format
 video: the pixel format, value corresponds to enum AVPixelFormat audio: the sample format, value corresponds to enum AVSampleFormat More...
 
AVRational time_base
 The timebase to be used for the timestamps on the input frames. More...
 
int width
 Video only, the display dimensions of the input frames. More...
 
int height
 
AVRational sample_aspect_ratio
 Video only, the sample (pixel) aspect ratio. More...
 
AVRational frame_rate
 Video only, the frame rate of the input video. More...
 
AVBufferRefhw_frames_ctx
 Video with a hwaccel pixel format only. More...
 
int sample_rate
 Audio only, the audio sampling rate in samples per secon. More...
 
uint64_t channel_layout
 Audio only, the audio channel layout. More...
 

Detailed Description

This structure contains the parameters describing the frames that will be passed to this filter.

It should be allocated with av_buffersrc_parameters_alloc() and freed with av_free(). All the allocated fields in it remain owned by the caller.

Definition at line 43 of file buffersrc.h.

Field Documentation

◆ format

int AVBufferSrcParameters::format

video: the pixel format, value corresponds to enum AVPixelFormat audio: the sample format, value corresponds to enum AVSampleFormat

Definition at line 48 of file buffersrc.h.

Referenced by av_buffersrc_parameters_alloc(), av_buffersrc_parameters_set(), configure_input_audio_filter(), and configure_input_video_filter().

◆ time_base

AVRational AVBufferSrcParameters::time_base

The timebase to be used for the timestamps on the input frames.

Definition at line 52 of file buffersrc.h.

Referenced by av_buffersrc_parameters_set(), configure_input_audio_filter(), and configure_input_video_filter().

◆ width

int AVBufferSrcParameters::width

Video only, the display dimensions of the input frames.

Definition at line 57 of file buffersrc.h.

Referenced by av_buffersrc_parameters_set(), and configure_input_video_filter().

◆ height

int AVBufferSrcParameters::height

Definition at line 57 of file buffersrc.h.

Referenced by av_buffersrc_parameters_set(), and configure_input_video_filter().

◆ sample_aspect_ratio

AVRational AVBufferSrcParameters::sample_aspect_ratio

Video only, the sample (pixel) aspect ratio.

Definition at line 62 of file buffersrc.h.

Referenced by av_buffersrc_parameters_set(), and configure_input_video_filter().

◆ frame_rate

AVRational AVBufferSrcParameters::frame_rate

Video only, the frame rate of the input video.

This field must only be set to a non-zero value if input stream has a known constant framerate and should be left at its initial value if the framerate is variable or unknown.

Definition at line 70 of file buffersrc.h.

Referenced by av_buffersrc_parameters_set(), and configure_input_video_filter().

◆ hw_frames_ctx

AVBufferRef* AVBufferSrcParameters::hw_frames_ctx

Video with a hwaccel pixel format only.

This should be a reference to an AVHWFramesContext instance describing the input frames.

Definition at line 76 of file buffersrc.h.

Referenced by av_buffersrc_parameters_set(), and configure_input_video_filter().

◆ sample_rate

int AVBufferSrcParameters::sample_rate

Audio only, the audio sampling rate in samples per secon.

Definition at line 81 of file buffersrc.h.

Referenced by av_buffersrc_parameters_set(), and configure_input_audio_filter().

◆ channel_layout

uint64_t AVBufferSrcParameters::channel_layout

Audio only, the audio channel layout.

Definition at line 86 of file buffersrc.h.

Referenced by av_buffersrc_parameters_set(), and configure_input_audio_filter().


The documentation for this struct was generated from the following file: