FFmpeg
Data Fields
AVBufferSrcParameters Struct Reference
libavfilter » Buffer source API

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...
 
  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
 
  Video only, the sample (pixel) aspect ratio. More...
 
  Video only, the frame rate of the input video. More...
 
  Video with a hwaccel pixel format only. More...
 
int  sample_rate
  Audio only, the audio sampling rate in samples per second. More...
 
  Audio only, the audio channel layout. More...
 
  Video only, the YUV colorspace and range. More...
 
 
 
int  nb_side_data
 
  Video only, the alpha mode. 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 73 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 78 of file buffersrc.h.

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

time_base

AVRational AVBufferSrcParameters::time_base

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

Definition at line 82 of file buffersrc.h.

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

width

int AVBufferSrcParameters::width

Video only, the display dimensions of the input frames.

Definition at line 87 of file buffersrc.h.

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

height

int AVBufferSrcParameters::height

Definition at line 87 of file buffersrc.h.

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

sample_aspect_ratio

AVRational AVBufferSrcParameters::sample_aspect_ratio

Video only, the sample (pixel) aspect ratio.

Definition at line 92 of file buffersrc.h.

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

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 100 of file buffersrc.h.

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

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 106 of file buffersrc.h.

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

sample_rate

int AVBufferSrcParameters::sample_rate

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

Definition at line 111 of file buffersrc.h.

Referenced by av_buffersrc_parameters_set().

ch_layout

AVChannelLayout AVBufferSrcParameters::ch_layout

Audio only, the audio channel layout.

Definition at line 116 of file buffersrc.h.

Referenced by av_buffersrc_parameters_set().

color_space

enum AVColorSpace AVBufferSrcParameters::color_space

Video only, the YUV colorspace and range.

Definition at line 121 of file buffersrc.h.

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

color_range

enum AVColorRange AVBufferSrcParameters::color_range

Definition at line 122 of file buffersrc.h.

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

side_data

AVFrameSideData** AVBufferSrcParameters::side_data

Definition at line 124 of file buffersrc.h.

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

nb_side_data

int AVBufferSrcParameters::nb_side_data

Definition at line 125 of file buffersrc.h.

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

alpha_mode

enum AVAlphaMode AVBufferSrcParameters::alpha_mode

Video only, the alpha mode.

Definition at line 130 of file buffersrc.h.

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


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

Generated on Wed Oct 15 2025 19:23:59 for FFmpeg by   doxygen 1.8.17

AltStyle によって変換されたページ (->オリジナル) /