FFmpeg
Macros | Functions | Variables
ffmpeg_filter.c File Reference
#include <stdint.h>
#include "ffmpeg.h"
#include "libavfilter/avfilter.h"
#include "libavfilter/buffersink.h"
#include "libavfilter/buffersrc.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
#include "libavutil/channel_layout.h"
#include "libavutil/display.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/pixfmt.h"
#include "libavutil/imgutils.h"
#include "libavutil/samplefmt.h"

Go to the source code of this file.

Macros

#define DEF_CHOOSE_FORMAT(name, type, var, supported_list, none, printf_format, get_name)
 
#define AUTO_INSERT_FILTER(opt_name, filter_name, arg)
 
#define AUTO_INSERT_FILTER_INPUT(opt_name, filter_name, arg)
 

Functions

static enum AVPixelFormatget_compliance_normal_pix_fmts (const AVCodec *codec, const enum AVPixelFormat default_formats[])
 
static enum AVPixelFormat choose_pixel_fmt (AVStream *st, AVCodecContext *enc_ctx, const AVCodec *codec, enum AVPixelFormat target)
 
static char * choose_pix_fmts (OutputFilter *ofilter)
 
 DEF_CHOOSE_FORMAT (sample_fmts, enum AVSampleFormat, format, formats, AV_SAMPLE_FMT_NONE, "%s", av_get_sample_fmt_name) DEF_CHOOSE_FORMAT(sample_rates
 
 DEF_CHOOSE_FORMAT (channel_layouts, uint64_t, channel_layout, channel_layouts, 0, "0x%"PRIx64,) int init_simple_filtergraph(InputStream *ist
 
 if (!fg) exit_program(1)
 
 GROW_ARRAY (fg->outputs, fg->nb_outputs)
 
 if (!(fg->outputs[0]=av_mallocz(sizeof(*fg->outputs[0])))) exit_program(1)
 
 if (!(fg->inputs[0]=av_mallocz(sizeof(*fg->inputs[0])))) exit_program(1)
 
 if (!fg->inputs[0]->frame_queue) exit_program(1)
 
 GROW_ARRAY (ist->filters, ist->nb_filters)
 
 GROW_ARRAY (filtergraphs, nb_filtergraphs)
 
static char * describe_filter_link (FilterGraph *fg, AVFilterInOut *inout, int in)
 
static void init_input_filter (FilterGraph *fg, AVFilterInOut *in)
 
int init_complex_filtergraph (FilterGraph *fg)
 
static int insert_trim (int64_t start_time, int64_t duration, AVFilterContext **last_filter, int *pad_idx, const char *filter_name)
 
static int insert_filter (AVFilterContext **last_filter, int *pad_idx, const char *filter_name, const char *args)
 
static int configure_output_video_filter (FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out)
 
static int configure_output_audio_filter (FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out)
 
static int configure_output_filter (FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out)
 
void check_filter_outputs (void)
 
static int sub2video_prepare (InputStream *ist, InputFilter *ifilter)
 
static int configure_input_video_filter (FilterGraph *fg, InputFilter *ifilter, AVFilterInOut *in)
 
static int configure_input_audio_filter (FilterGraph *fg, InputFilter *ifilter, AVFilterInOut *in)
 
static int configure_input_filter (FilterGraph *fg, InputFilter *ifilter, AVFilterInOut *in)
 
static void cleanup_filtergraph (FilterGraph *fg)
 
int configure_filtergraph (FilterGraph *fg)
 
int ifilter_parameters_from_frame (InputFilter *ifilter, const AVFrame *frame)
 
int filtergraph_is_simple (FilterGraph *fg)
 

Variables

 int
 
 sample_rate
 
 sample_rates
 
 d
 
OutputStreamost
 
fg index = nb_filtergraphs
 
fg outputs[0] graph = fg
 
fg outputs[0] format = -1
 
ost filter = fg->outputs[0]
 
fg inputs[0] ist = ist
 
fg inputs[0] frame_queue = av_fifo_alloc(8 * sizeof(AVFrame*))
 
ist filters [ist->nb_filters - 1] = fg->inputs[0]
 
 filtergraphs [nb_filtergraphs - 1] = fg
 
 return
 

Macro Definition Documentation

◆ DEF_CHOOSE_FORMAT

#define DEF_CHOOSE_FORMAT (   name,
  type,
  var,
  supported_list,
  none,
  printf_format,
  get_name 
)
Value:
static void choose_ ## name (OutputFilter *ofilter, AVBPrint *bprint) \
{ \
if (ofilter->var == none && !ofilter->supported_list) \
return; \
av_bprintf(bprint, #name "="); \
if (ofilter->var != none) { \
av_bprintf(bprint, printf_format, get_name(ofilter->var)); \
} else { \
const type *p; \
for (p = ofilter->supported_list; *p != none; p++) { \
av_bprintf(bprint, printf_format "|", get_name(*p)); \
} \
if (bprint->len > 0) \
bprint->str[--bprint->len] = '\0'; \
} \
av_bprint_chars(bprint, ':', 1); \
}

Definition at line 130 of file ffmpeg_filter.c.

◆ AUTO_INSERT_FILTER

#define AUTO_INSERT_FILTER (   opt_name,
  filter_name,
  arg 
)
Value:
do { \
AVFilterContext *filt_ctx; \
av_log(NULL, AV_LOG_INFO, opt_name " is forwarded to lavfi " \
"similarly to -af " filter_name "=%s.\n", arg); \
\
ret = avfilter_graph_create_filter(&filt_ctx, \
avfilter_get_by_name(filter_name), \
filter_name, arg, NULL, fg->graph); \
if (ret < 0) \
goto fail; \
\
ret = avfilter_link(last_filter, pad_idx, filt_ctx, 0); \
if (ret < 0) \
goto fail; \
\
last_filter = filt_ctx; \
pad_idx = 0; \
} while (0)

◆ AUTO_INSERT_FILTER_INPUT

#define AUTO_INSERT_FILTER_INPUT (   opt_name,
  filter_name,
  arg 
)
Value:
do { \
AVFilterContext *filt_ctx; \
av_log(NULL, AV_LOG_INFO, opt_name " is forwarded to lavfi " \
"similarly to -af " filter_name "=%s.\n", arg); \
snprintf(name, sizeof(name), "graph_%d_%s_in_%d_%d", \
fg->index, filter_name, ist->file_index, ist->st->index); \
ret = avfilter_graph_create_filter(&filt_ctx, \
avfilter_get_by_name(filter_name), \
name, arg, NULL, fg->graph); \
if (ret < 0) \
return ret; \
\
ret = avfilter_link(last_filter, 0, filt_ctx, 0); \
if (ret < 0) \
return ret; \
\
last_filter = filt_ctx; \
} while (0)

Function Documentation

◆ get_compliance_normal_pix_fmts()

static enum AVPixelFormat* get_compliance_normal_pix_fmts ( const AVCodec codec,
const enum AVPixelFormat  default_formats[] 
)
static

Definition at line 42 of file ffmpeg_filter.c.

Referenced by choose_pix_fmts(), and choose_pixel_fmt().

◆ choose_pixel_fmt()

static enum AVPixelFormat choose_pixel_fmt ( AVStream st,
AVCodecContext enc_ctx,
const AVCodec codec,
enum AVPixelFormat  target 
)
static

Definition at line 55 of file ffmpeg_filter.c.

Referenced by choose_pix_fmts().

◆ choose_pix_fmts()

static char* choose_pix_fmts ( OutputFilter ofilter)
static

Definition at line 86 of file ffmpeg_filter.c.

Referenced by configure_output_video_filter().

◆ DEF_CHOOSE_FORMAT() [1/2]

DEF_CHOOSE_FORMAT ( sample_fmts  ,
enum  AVSampleFormat,
format  ,
formats  ,
AV_SAMPLE_FMT_NONE  ,
"%s"  ,
av_get_sample_fmt_name   
)

◆ DEF_CHOOSE_FORMAT() [2/2]

DEF_CHOOSE_FORMAT ( channel_layouts  ,
uint64_t  ,
channel_layout  ,
channel_layouts  ,
,
"0x%"  PRIx64 
)

◆ if() [1/4]

if ( fg)

Definition at line 61 of file snow.txt.

◆ GROW_ARRAY() [1/3]

GROW_ARRAY ( fg->  outputs,
fg->  nb_outputs 
)

◆ if() [2/4]

if ( fg->outputs[0]=av_mallocz(sizeof(*fg->outputs[0])))

◆ if() [3/4]

if ( fg->inputs[0]=av_mallocz(sizeof(*fg->inputs[0])))

◆ if() [4/4]

if ( !fg->inputs->  frame_queue[0])

◆ GROW_ARRAY() [2/3]

GROW_ARRAY ( ist->  filters,
ist->  nb_filters 
)

◆ GROW_ARRAY() [3/3]

GROW_ARRAY ( filtergraphs  ,
nb_filtergraphs   
)

◆ describe_filter_link()

static char* describe_filter_link ( FilterGraph fg,
AVFilterInOut inout,
int  in 
)
static

Definition at line 199 of file ffmpeg_filter.c.

Referenced by init_complex_filtergraph(), and init_input_filter().

◆ init_input_filter()

static void init_input_filter ( FilterGraph fg,
AVFilterInOut in 
)
static

Definition at line 218 of file ffmpeg_filter.c.

Referenced by init_complex_filtergraph().

◆ init_complex_filtergraph()

int init_complex_filtergraph ( FilterGraph fg)

Definition at line 305 of file ffmpeg_filter.c.

Referenced by init_complex_filters().

◆ insert_trim()

static int insert_trim ( int64_t  start_time,
int64_t  duration,
AVFilterContext **  last_filter,
int pad_idx,
const char *  filter_name 
)
static

◆ insert_filter()

static int insert_filter ( AVFilterContext **  last_filter,
int pad_idx,
const char *  filter_name,
const char *  args 
)
static

Definition at line 397 of file ffmpeg_filter.c.

Referenced by configure_input_video_filter().

◆ configure_output_video_filter()

static int configure_output_video_filter ( FilterGraph fg,
OutputFilter ofilter,
AVFilterInOut out 
)
static

Definition at line 419 of file ffmpeg_filter.c.

Referenced by configure_output_filter().

◆ configure_output_audio_filter()

static int configure_output_audio_filter ( FilterGraph fg,
OutputFilter ofilter,
AVFilterInOut out 
)
static

Definition at line 512 of file ffmpeg_filter.c.

Referenced by configure_output_filter().

◆ configure_output_filter()

static int configure_output_filter ( FilterGraph fg,
OutputFilter ofilter,
AVFilterInOut out 
)
static

Definition at line 620 of file ffmpeg_filter.c.

Referenced by configure_filtergraph().

◆ check_filter_outputs()

void check_filter_outputs ( void  )

Definition at line 635 of file ffmpeg_filter.c.

◆ sub2video_prepare()

static int sub2video_prepare ( InputStream ist,
InputFilter ifilter 
)
static

Definition at line 650 of file ffmpeg_filter.c.

Referenced by configure_input_video_filter().

◆ configure_input_video_filter()

static int configure_input_video_filter ( FilterGraph fg,
InputFilter ifilter,
AVFilterInOut in 
)
static

Definition at line 697 of file ffmpeg_filter.c.

Referenced by configure_input_filter().

◆ configure_input_audio_filter()

static int configure_input_audio_filter ( FilterGraph fg,
InputFilter ifilter,
AVFilterInOut in 
)
static

Definition at line 819 of file ffmpeg_filter.c.

Referenced by configure_input_filter().

◆ configure_input_filter()

static int configure_input_filter ( FilterGraph fg,
InputFilter ifilter,
AVFilterInOut in 
)
static

Definition at line 929 of file ffmpeg_filter.c.

Referenced by configure_filtergraph().

◆ cleanup_filtergraph()

static void cleanup_filtergraph ( FilterGraph fg)
static

Definition at line 945 of file ffmpeg_filter.c.

Referenced by configure_filtergraph().

◆ configure_filtergraph()

int configure_filtergraph ( FilterGraph fg)

Definition at line 955 of file ffmpeg_filter.c.

Referenced by flush_encoders(), ifilter_send_frame(), and transcode_step().

◆ ifilter_parameters_from_frame()

int ifilter_parameters_from_frame ( InputFilter ifilter,
const AVFrame frame 
)

Definition at line 1129 of file ffmpeg_filter.c.

Referenced by ifilter_send_frame().

◆ filtergraph_is_simple()

int filtergraph_is_simple ( FilterGraph fg)

Definition at line 1152 of file ffmpeg_filter.c.

Referenced by configure_filtergraph(), and transcode_init().

Variable Documentation

◆ int

int
Examples
encode_audio.c, and muxing.c.

Definition at line 156 of file ffmpeg_filter.c.

Referenced by adaptive_quantization(), add_bytes_c(), add_bytes_l2_c(), add_int16_c(), add_peak(), adpcm_decode_frame(), adpcm_ms_expand_nibble(), amf_encode_init_h264(), amf_encode_init_hevc(), amf_parse_object(), apply_dependent_coupling_fixed(), apply_independent_coupling_fixed(), asf_write_packet(), async_seek(), autocorr_calc(), av_lfg_init_from_data(), av_opt_query_ranges(), av_opt_set_image_size(), av_sincos_sf(), av_sqrt_sf(), av_vlog(), avf_read_packet(), avfilter_config_links(), calc_lsq_max_fit_error(), calculate_visual_weight(), capture_screen(), cdtoons_render_sprite(), celt_gauge_psy_weight(), check_eq(), check_idct(), check_idct_multiple(), check_loopfilter_16y(), check_loopfilter_8uv(), check_loopfilter_simple(), checkasm_check_h264pred(), chroma_mc_bi(), chs_parse_header(), color_distance(), compare_fields(), compute_default_clut(), compute_vmaf_score(), config_input(), config_output(), config_props(), construct_vector(), dct_quantize_trellis_c(), dct_unquantize_mpeg1_inter_c(), dct_unquantize_mpeg1_intra_c(), dct_unquantize_mpeg2_inter_c(), dct_unquantize_mpeg2_intra_bitexact(), dct_unquantize_mpeg2_intra_c(), decfloat(), decode_block(), decode_blocks(), decode_envelope(), decode_fixed_vector(), decode_inter_block(), decode_intra_block(), decode_ppc(), decode_spectrum_and_dequant(), decode_str(), decode_subband_slice_buffered(), decor_c(), decorrelation(), deshake_opencl_init(), diff_bytes_c(), diff_int16_c(), distortion_correction_filter_slice(), dng_decode_tiles(), dnn_detect_post_proc(), do_apply_filter(), do_chromakey_pixel(), do_chromakey_pixel16(), do_colorkey_pixel(), draw_mandelbrot(), draw_sierpinski(), dss_sp_shift_sq_sub(), dv_write_pack(), dvbsub_encode(), dxv_decode(), encode_block(), eval_expr(), ff_affine_transform(), ff_convert_matrix(), ff_dirac_golomb_read_16bit(), ff_dirac_golomb_read_32bit(), ff_eval_refl(), ff_filter_frame_framed(), ff_h264_chroma422_dc_dequant_idct(), ff_h264_chroma_dc_dequant_idct(), ff_h264_init_poc(), ff_h264_luma_dc_dequant_idct(), ff_h264_slice_context_init(), ff_init_block_index(), ff_intra_pred_8_16x16_msa(), ff_intra_pred_8_32x32_msa(), ff_mpv_encode_init(), ff_opus_parse_extradata(), ff_rate_estimate_qscale(), ff_rtp_send_mpegvideo(), ff_scale_eval_dimensions(), ff_socket(), ff_vc1_pred_dc(), ff_wma_init(), ffio_fdopen(), ffio_geturlcontext(), fic_idct(), filter16_3x3(), filter16_5x5(), filter16_7x7(), filter16_column(), filter16_row(), filter_3x3(), filter_5x5(), filter_7x7(), filter_column(), filter_frame(), filter_row(), finish_file(), fir_to_phase(), fixed_exp(), fixed_log(), fixed_sqrt(), flac_decorrelate_indep_c(), floormod(), get_audio_frame(), get_expected(), get_high_utility_cell(), get_matching_parameters(), get_qminmax(), get_qtable(), get_utc_date_time_insec(), get_vcd_padding_size(), get_video_config(), global_mv(), glslang_compile(), guess_mv(), horizontal_compose_dd137i_TMPL(), horizontal_compose_dd97i_TMPL(), hq_decode_block(), hScale8To15_c(), hScale8To19_c(), hScale_real(), ict_int(), id3v2_encode_string(), idct248_ref(), idct2_1d(), idct_1d(), idct_col(), idct_col_3(), idct_col_4(), idct_col_8(), idct_row(), idctRowCondDC(), idctSparseCol(), init(), init_axis_color(), init_noise(), init_pass2(), interleave_TMPL(), interpolate(), INTERPOLATE_METHOD(), inverse4(), iterate_frame(), libopenjpeg_copy_packed12(), libopenjpeg_copy_packed16(), libopenjpeg_copy_packed8(), libopenjpeg_copy_unpacked16(), libopenjpeg_copy_unpacked8(), LLVMFuzzerTestOneInput(), load_data(), lpc_prediction(), lpf(), lum(), luma_mc_bi(), lumRangeToJpeg16_c(), main(), make_bands(), make_filters_from_proto(), map_val_34_to_20(), mediumthresh_c(), mf_enca_output_score(), mlp_encode_init(), mov_read_default(), mov_read_tkhd(), mov_read_udta_string(), MPA_encode_init(), multiple_resample(), multiply(), noise_scale(), nvenc_setup_rate_control(), open_filter_param(), open_output_file(), opt_size(), optimize_colors(), optimum_block_height(), optimum_block_width(), plot_gamuts(), plot_white_point(), postProcess_TMPL(), predictor_update_3930(), process(), process_c(), ps_hybrid_analysis_c(), ps_tableinit(), psy_3gpp_init(), psycho_acoustic_model(), put_float(), qdm2_decode(), quantize_bands(), read_diff_float_data(), ref_function(), ring2_test(), round_sample(), rpza_encode_stream(), sbc_synthesize_eight(), sbc_synthesize_four(), sbr_hf_apply_noise(), sbr_hf_assemble(), sbr_hf_g_filt_c(), sbr_hf_gen_c(), sbr_hf_inverse_filter(), sbr_make_f_derived(), sbr_make_f_master(), sbr_qmf_deint_bfly_c(), scale_eval_dimensions(), scc_write_packet(), segment_end(), set_noise_profile(), set_roi_map(), set_volume(), sgi_rle_encode(), sign_extend(), softthresh_c(), spx_coordinates(), sr_1d53(), ssim_end1(), ssim_plane(), stream_read(), stream_seek(), stream_skip(), stream_write(), subband_scale(), svq3_luma_dc_dequant_idct_c(), svq3_mc_dir_part(), sws_getGaussianVec(), sws_printVec2(), synchronize_audio(), tansig_approx(), tm2_low_chroma(), tm2_low_res_block(), truespeech_synth(), udp_port(), unquantize_dct_coeffs(), unsharp_opencl_make_filter_params(), vaapi_encode_init_rate_control(), value_string(), vector_fmul_add_c(), vector_fmul_c(), vector_fmul_reverse_c(), vector_pow43(), vertical_compose53iL0_TMPL(), viv_read_packet(), vtenc_cm_to_avpacket(), wma_decode_block(), wmv2_idct_col(), wmv2_idct_row(), write_packet(), wv_unpack_mono(), wv_unpack_stereo(), xvid_correct_framerate(), yae_adjust_position(), yae_flush(), and zero_extend().

◆ sample_rate

sample_rate

◆ sample_rates

sample_rates

◆ d

d

Definition at line 156 of file ffmpeg_filter.c.

Referenced by activate(), add_filename_as_pkt_side_data(), adx_decode(), adx_encode(), append_path(), aptx_quantize_difference(), ARRAY_RENAME(), asf_get_packet(), audio_frame_cksum(), av_add_stable(), av_basename(), av_d2q(), av_d2str(), av_des_crypt(), av_des_crypt_mac(), av_des_init(), av_des_mac(), av_dirname(), av_expr_parse_and_eval(), av_input_audio_device_next(), av_input_video_device_next(), av_opt_is_set_to_default(), av_output_audio_device_next(), av_output_video_device_next(), av_parse_ratio(), av_strtod(), av_timecode_adjust_ntsc_framenum2(), av_timegm(), avi_sync(), avio_close_dyn_buf(), avio_get_dyn_buf(), avpriv_fits_header_parse_line(), avs_probe(), blend_slice_packed_rgb(), body(), build_color_map(), build_filter(), calculate_visual_weight(), cas_slice16(), cas_slice8(), cavs_filter_ch_c(), cavs_filter_cv_c(), cavs_filter_lh_c(), cavs_filter_lv_c(), celt_autocorr(), check_idct(), check_idct_dc4(), check_loopfilter_16y(), check_loopfilter_8uv(), check_loopfilter_simple(), check_luma_dc_wht(), check_mc(), clamp_add_subtract_half(), cluster_mvs(), cmp_direct_inline(), cmp_inline(), color_distance(), color_graticule(), color_graticule16(), colormap_nearest_bruteforce(), compute_mb_distortion(), compute_unsafe_ssd_integral_image(), config_input(), conjugate_quaternion(), copy_context_after_encode(), copy_context_before_encode(), count_colors(), cubic_interpolate_func(), decode_13(), decode_adaptive45(), decode_adaptive6(), decode_deep_tvdc32(), decode_delta_j(), decode_mb_i(), decode_rle(), decode_subframe_fixed(), decoder_abort(), decoder_decode_frame(), decoder_destroy(), decoder_init(), decoder_start(), decompose_transform(), decompress_texture_thread(), decompress_texture_thread_internal(), deInterlaceMedian_TMPL(), delta_decode(), delta_mono(), delta_stereo(), diff_pixels_mvi(), diff_planes(), dirac_decode_frame_internal(), distortion_correction_filter_slice(), do_a_deblock_C(), doHorizDefFilter_C(), doVertDefFilter_altivec(), doVertDefFilter_TMPL(), dpx_parse(), draw_response(), dss_read_metadata_date(), dv_calc_mb_coordinates(), dv_encode_video_segment(), dv_extract_audio(), dv_init_weight_tables(), dv_inject_audio(), dv_work_pool_size(), dyn_buf_seek(), dyn_buf_write(), ebur128_calc_gating_block(), encode_frame(), encode_init(), encode_residual_fixed(), encode_thread(), epzs_motion_search2(), epzs_motion_search_internal(), eval_expr(), exchange(), factor(), fade(), ff_aptx_generate_dither(), ff_big_div(), ff_check_pixfmt_descriptors(), ff_dv_init_dynamic_tables(), ff_generate_wave_table(), ff_h264_chroma_dc_dequant_idct(), ff_h264_chroma_dc_dequant_idct_8_mmi(), ff_h264_execute_ref_pic_marking(), ff_is_intra_only(), ff_me_search_umh(), ff_mpeg12_find_best_frame_rate(), ff_mqc_encode(), ff_printGUID(), ff_put_vp8_bilinear16_hv_mmi(), ff_put_vp8_bilinear16_v_mmi(), ff_put_vp8_bilinear4_hv_mmi(), ff_put_vp8_bilinear4_v_mmi(), ff_put_vp8_bilinear8_hv_mmi(), ff_put_vp8_bilinear8_v_mmi(), ff_spatial_idwt_init(), ff_spatial_idwt_init_TMPL(), ff_spatial_idwt_init_x86(), ff_spatial_idwt_slice2(), ff_sws_alphablendaway(), ff_urldecode(), ff_vc1_h_overlap_mmi(), ff_vc1_h_s_overlap_mmi(), ff_vc1_mc_4mv_chroma4(), ff_vc1_v_overlap_mmi(), ff_vc1_v_s_overlap_mmi(), ff_vector_fmul_add_altivec(), ff_vector_fmul_add_vsx(), ff_vector_fmul_reverse_altivec(), ff_vector_fmul_reverse_vsx(), ffio_close_null_buf(), ffio_free_dyn_buf(), ffio_reset_dyn_buf(), fill_gamma_table(), fill_lut(), filter_dbl(), filter_dblp(), filter_flt(), filter_fltp(), filter_frame(), find_form_factor(), flac_lpc_16_c(), format_duration(), fov_from_dfov(), free_vsframe_ref(), freq2bark(), ftp_passive_mode_epsv(), full_search(), funny_diamond_search(), gain_interpolate_func(), generate_round_keys(), get_coeff(), get_coeffs(), get_dc(), get_mb_score(), get_nb_points(), get_shift(), get_stream_idx(), getsigctxno(), getSplineCoeff(), getSSD(), h263_h_loop_filter_c(), h263_v_loop_filter_c(), h264_loop_filter_chroma(), h264_loop_filter_chroma_intra(), h264_loop_filter_luma(), h264_loop_filter_luma_intra(), h_block_filter(), hable(), hevc_loop_filter_chroma(), hevc_loop_filter_luma(), hex_search(), hexfloat(), horizX1Filter(), hpel_motion_search(), idct_1d(), iff_probe(), ifilter_dbl(), ifilter_dblp(), ifilter_flt(), ifilter_fltp(), incr_cntdec(), init_context_defaults(), init_MP4DescrParseContext(), init_pass2(), initFilter(), interleave_cols_to_any(), interp_prism(), interp_pyramid(), interp_tetrahedral(), interp_trilinear(), interpol(), interpolate(), intra_pred_dc_128(), intra_pred_down_left(), intra_pred_down_right(), intra_pred_horiz(), intra_pred_lp(), intra_pred_lp_left(), intra_pred_lp_top(), intra_pred_plane(), intra_pred_vert(), inverse4(), invert_step(), is_mv_diff_gt_3(), kux_probe(), l2s_dia_search(), lavfi_read_packet(), lbr_bank_c(), lex_double(), log_value(), logdb(), lowpass(), lpc_prediction(), LR128(), lz_unpack(), MAC64(), main(), median4(), midequalizer16(), mix_core(), MLS64(), mode23(), mode24(), modify_qscale(), monoblack2Y_c(), monowhite2Y_c(), motion_search(), mp4_read_iods(), mp4_read_od(), mpadsp_init_tabs(), mpc_probe(), mpeg4_decode_sprite_trajectory(), nlmeans_slice(), normalize_double(), normalize_xy(), null_buf_write(), offset_fn(), open_filter_param(), opencl_device_create(), opencl_device_create_internal(), opus_packet(), palToA_c(), palToY_c(), pannini_to_xyz(), parse_dsd_prop(), parse_keyframes_index(), parse_mp4_descr(), parse_mp4_descr_arr(), parse_MP4DecConfigDescrTag(), parse_MP4ESDescrTag(), parse_MP4IODescrTag(), parse_MP4ODescrTag(), parse_MP4SLDescrTag(), parse_number_or_die(), parse_playlist(), parse_primary(), picmemset(), picmemset_8bpp(), png_get_interlaced_row(), png_put_interlaced_row(), pred16x16_vertical(), predictor(), prelut_interp_1d_linear(), print_fps(), probe(), psnr(), put_amf_double(), put_swf_matrix(), put_vector(), qpel_motion_search(), quant(), read_high_coeffs(), read_highpass(), ref_function(), render_slice(), renew_table3(), resample_cubic(), resync(), rgb12to15(), rgb12tobgr12(), rgb15to16_c(), rgb15to16_TMPL(), rgb15to24(), rgb15to32_c(), rgb15to32_TMPL(), rgb15tobgr24_c(), rgb15tobgr24_TMPL(), rgb15tobgr32(), rgb16to15_c(), rgb16to15_TMPL(), rgb16to24(), rgb16to32_c(), rgb16to32_TMPL(), rgb16tobgr24_c(), rgb16tobgr24_TMPL(), rgb16tobgr32(), rgb24to15_c(), rgb24to15_TMPL(), rgb24to16_c(), rgb24to16_TMPL(), rgb24tobgr15_c(), rgb24tobgr15_TMPL(), rgb24tobgr16_c(), rgb24tobgr16_TMPL(), rgb32to15_c(), rgb32to15_TMPL(), rgb32to16_c(), rgb32to16_TMPL(), rgb32tobgr15_c(), rgb32tobgr15_TMPL(), rgb32tobgr16_c(), rgb32tobgr16_TMPL(), rgtc2_block_internal(), ring2_test(), ripemd128_transform(), ripemd160_transform(), ripemd256_transform(), ripemd320_transform(), rle(), rtcp_update_jitter(), run_estimate_kernel(), run_postproc(), run_test(), sab_diamond_search(), sad_hpel_motion_search(), sbc_encode_init(), scale_double(), select_palette(), set_frame(), set_meta(), set_param(), set_string_number(), sha1_transform(), sha256_transform(), sha512_transform(), shrink22(), shrink44(), shuffle_bytes_0321_c(), shuffle_bytes_2103_c(), silk_decode_excitation(), small_diamond_search(), solve(), spatial_compose_daub97i_dy_TMPL(), spatial_compose_dd137i_dy_TMPL(), spatial_compose_dd97i_dy_TMPL(), spatial_compose_dirac53i_dy_TMPL(), spatial_compose_fidelity_TMPL(), spatial_compose_haari_dy_TMPL(), srt_write_packet(), ssd_plane(), store_slice16_c(), store_slice2_c(), store_slice_c(), swri_noise_shaping_TMPL(), synth_filter_fixed(), synth_filter_fixed_64(), synth_filter_float(), synth_filter_float_64(), tempNoiseReducer_altivec(), tempNoiseReducer_TMPL(), thp_probe(), tm2_apply_deltas(), tm2_read_deltas(), tm2_update_block(), transform_step(), umh_search(), update_double_stat(), update_float_stat(), update_minmax(), update_model2_to_6(), update_model3_to_7(), update_model5_to_6(), update_model6_to_7(), update_prob(), update_stat(), url_open_dyn_buf_internal(), v_block_filter(), var_diamond_search(), vc1_filter_line(), vc1_h_overlap_c(), vc1_h_s_overlap_c(), vc1_v_overlap_c(), vc1_v_s_overlap_c(), vertX1Filter_TMPL(), video_audio_display(), vorbis_packet(), vu9_to_vu12_c(), vu9_to_vu12_TMPL(), wdec16(), write_matrix(), write_number(), writer_print_time(), xa_decode(), xyz_to_pannini(), xyz_to_tetrahedron(), yvu9_to_yuy2_c(), yvu9_to_yuy2_TMPL(), zmbv_decode_xor_16(), zmbv_decode_xor_32(), and zmbv_decode_xor_8().

◆ ost

fg outputs [0] ost
Initial value:
{
FilterGraph *fg = av_mallocz(sizeof(*fg))
Examples
muxing.c, and vaapi_transcode.c.

Definition at line 163 of file ffmpeg_filter.c.

Referenced by add_stream(), adjust_frame_pts_to_encoder_tb(), avformat_transfer_internal_stream_timing_info(), check_init_output_file(), check_keyboard_interaction(), check_output_constraints(), check_recording_time(), check_streamcopy_filters(), choose_encoder(), choose_output(), choose_pix_fmts(), close_all_output_streams(), close_output_stream(), close_stream(), configure_filtergraph(), configure_output_audio_filter(), configure_output_video_filter(), dash_check_bitstream(), do_audio_out(), do_streamcopy(), do_subtitle_out(), do_video_out(), do_video_stats(), ffmpeg_cleanup(), finish_output_stream(), flush_encoders(), get_audio_frame(), get_input_stream(), get_ost_filters(), get_video_frame(), hw_device_setup_for_encode(), init_encoder_time_base(), init_output_bsfs(), init_output_filter(), init_output_stream(), init_output_stream_encode(), init_output_stream_streamcopy(), init_output_stream_wrapper(), need_output(), new_attachment_stream(), new_audio_stream(), new_data_stream(), new_output_stream(), new_subtitle_stream(), new_unknown_stream(), new_video_stream(), ogg_restore(), ogg_save(), open_audio(), open_output_file(), open_video(), output_packet(), parse_forced_key_frames(), print_final_stats(), print_report(), process_input(), process_input_packet(), reap_filters(), seg_check_bitstream(), set_encoder_id(), transcode(), transcode_init(), transcode_step(), transcode_subtitles(), webm_chunk_init(), write_audio_frame(), write_packet(), and write_video_frame().

◆ index

fg index = nb_filtergraphs

Definition at line 168 of file ffmpeg_filter.c.

Referenced by ac3_decode_frame(), acb_search(), add_index_entry(), add_symbol(), add_tone(), adpcm_decode_frame(), adpcm_zork_expand_nibble(), aix_read_packet(), alac_linear_predictor(), alloc_mem(), alloc_table(), analyze_sample_buffer(), ape_read_seek(), apply_channel_coupling(), apply_dependent_coupling(), apply_dependent_coupling_fixed(), apply_independent_coupling(), apply_independent_coupling_fixed(), apply_intensity_stereo(), asf_read_seek(), asf_write_index(), asv1_encode_block(), asv1_put_level(), asv2_encode_block(), asv2_get_vlc2(), asv2_put_level(), ath_init1(), av_channel_layout_extract_channel(), av_dump_format(), av_get_standard_channel_layout(), av_parser_parse2(), av_shr_i(), avcodec_get_hw_config(), avf_read_header(), avfilter_graph_parse2(), avfilter_graph_parse_ptr(), avformat_match_stream_specifier(), avi_read_idx1(), avi_read_packet(), avi_read_seek(), avi_stream2fourcc(), block_matching_multi(), buffer_pool_get(), build_basis(), build_canonical_huff(), build_def_list(), build_frame_code(), build_qp_table(), build_table(), callback(), categorize(), cdxl_decode_ham6(), cdxl_decode_ham8(), celt_encode_frame(), cfhd_encode_frame(), check_4block_inter(), check_block(), check_idct_multiple(), codec2subblock(), comp_block(), comp_interp_index(), compute_coef(), compute_scale_factors(), config_output(), config_props(), construct_vector(), copy_restart_frame_params(), copy_TMPL(), cqueue_peek(), create_augmented_vector(), create_filter(), create_iv(), d3d11va_transfer_data(), dat_read_packet(), dctcoef_get(), dctcoef_set(), dec_delay3_1st(), dec_delay3_2nd(), decode(), decode_alcd(), decode_avcf(), decode_bgr_1(), decode_cabac_luma_residual(), decode_cabac_residual_internal(), decode_envelope(), decode_fixed_sparse(), decode_frame(), decode_gain_info(), decode_i2_frame(), decode_init(), decode_luma_residual(), decode_mb_mode(), decode_p_block(), decode_palette(), decode_picture_timing(), decode_plane_bitstream(), decode_q_branch(), decode_vector(), decode_vectors(), del_tracked_method(), detect_clicks(), detect_clips(), detect_peak(), dhav_read_seek(), direct_search(), dnxhd_init_vlc(), do_block_matching_multi(), dpcm_decode_frame(), draw_cursor(), draw_glyph(), dss_sp_unpack_coeffs(), dump_stream_format(), dv_decode_ac(), encode_dc(), encode_q_branch(), encode_q_branch2(), estimate_pitch(), execute_code(), fade_gain(), fcb_search(), ff_add_index_entry(), ff_amf_receive_packet(), ff_bufqueue_peek(), ff_dct_unquantize_h263_inter_msa(), ff_dct_unquantize_h263_intra_msa(), ff_dshow_meminputpin_Receive(), ff_ebur128_loudness_range_multiple(), ff_gmc_c(), ff_h261_reorder_mb_index(), ff_h264_build_ref_list(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_h264_decode_ref_pic_list_reordering(), ff_huffyuv_generate_bits_table(), ff_init_ff_cos_tabs(), ff_init_ff_sine_windows(), ff_init_filters(), ff_insert_inpad(), ff_insert_outpad(), ff_mediacodec_dec_receive(), ff_mediacodec_dec_send(), ff_mjpeg_decode_dht(), ff_mjpeg_decode_dqt(), ff_mjpeg_decode_sos(), ff_mjpeg_receive_frame(), ff_mlp_rematrix_channel(), ff_mov_init_hinting(), ff_mpeg1_decode_block_intra(), ff_opus_psy_celt_frame_init(), ff_opus_psy_celt_frame_process(), ff_seek_frame_binary(), ff_srtp_decrypt(), ff_srtp_encrypt(), ff_v4l2_buffer_initialize(), ff_vaapi_decode_make_slice_buffer(), fft_lut_init(), fill_picture_entry(), fill_slice_long(), filter(), filter_channel(), filter_slice(), find_index(), find_prev_closest_index(), finish_file(), fix_frag_index_entries(), flac_seek(), format_name(), gain_dequantization(), gather_data_for_cel(), gaussian_filter(), gen_fcb_excitation(), get(), get_bits1(), get_block_bits(), get_block_rate(), get_channel_weights(), get_closest_codebook(), get_codebook(), get_dc(), get_frag_stream_info(), get_frag_time(), get_mvdata_interlaced(), get_prediction(), get_rl_index(), get_sample_rate(), get_surface(), gif_find_frame_end(), handle_pac(), hds_flush(), heap_bubble_down(), heap_bubble_up(), hpel_motion_search(), hvcc_array_add_nal_unit(), hw_device_default_name(), idct_put(), ifv_read_seek(), img_read_seek(), imm5_decode_frame(), index_conv(), init_cos_tabs(), init_cos_tabs_idx(), init_default_huffman_tables(), init_ff_cos_tabs(), init_pass2(), init_uni_h261_rl_tab(), init_uni_h263_rl_tab(), init_uni_mpeg4_rl_tab(), input_to_sample_buffer(), insert_mb_into_sb(), interpolate_delay(), interpolate_lsp(), interpolation(), iterative_me(), ivr_read_packet(), lag_decode_line(), libopenjpeg_copy_to_packed16(), libopenjpeg_copy_to_packed8(), libopenjpeg_copyto16(), libopenjpeg_copyto8(), libopenjpeg_guess_pix_fmt(), lin_calc(), load_font_file(), lsf_dequantization(), lsp2lpc(), mediacodec_receive_frame(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_buffer(), median_frames16(), median_frames8(), mlp_encode_frame(), mlp_encode_init(), mov_create_timecode_track(), mov_fix_index(), mov_free_encryption_index(), mov_get_stsc_samples(), mov_read_sidx(), mov_read_udta_string(), mov_seek_fragment(), mov_stsc_index_valid(), mov_switch_root(), mov_write_stsc_tag(), mov_write_stss_tag(), mov_write_tfrf_tag(), mpc8_read_seek(), mpc_read_seek(), mpeg4_encode_block(), mpeg4_get_block_length(), mv_read_packet(), mxf_compute_ptses_fake_index(), mxf_decrypt_triplet(), mxf_edit_unit_absolute_offset(), mxf_read_packet(), nsv_read_seek(), nut_write_packet(), open_filter_param(), open_output_file(), output_client_manifest(), paf_video_decode(), parse_aux_data(), parse_coding_header(), parse_dmix_coeffs(), parse_ext(), parse_filter(), parse_forced_key_frames(), parse_meta_type(), parse_subframe_audio(), predict_motion(), probe(), process_block(), pseudocolor_filter(), pseudocolor_filter_10(), pseudocolor_filter_10d(), pseudocolor_filter_11(), pseudocolor_filter_11d(), pseudocolor_filter_16(), pseudocolor_filter_16_10(), pseudocolor_filter_16_10d(), pseudocolor_filter_16_11(), pseudocolor_filter_16_11d(), put_runcode(), qdm2_synthesis_filter(), qpel_motion_search(), quant_array_idx(), quantize(), read_packet(), read_seek(), read_tfra(), resample_common_TMPL(), resample_cubic(), resample_linear(), resample_linear_TMPL(), rl2_read_seek(), rpza_decode_stream(), rtsp_send_reply(), sad_hpel_motion_search(), scalar_dequant_float(), scan_mmco_reset(), seek_frame_generic(), set(), set_best_codebook(), set_blocks(), set_major_params(), set_param(), shall_we_drop(), shift(), silk_decode_frame(), silk_decode_lpc(), silk_lsf2lpc(), small_diamond_search(), speedhq_init_static_data(), step_collect_psy_metrics(), store_table(), svq3_decode_block(), svq3_decode_mb(), synthfilt_build_sb_samples(), tak_parse(), thd_channel_layout_extract_channel(), true_peak_limiter(), truemotion1_decode_16bit(), truemotion1_decode_24bit(), tta_read_seek(), unpack_parse_unit(), update_frag_index(), update_model6_to_7(), update_palette_index(), update_stat(), vaapi_encode_make_tile_slice(), vaapi_encode_mjpeg_write_extra_buffer(), vaapi_encode_vp8_write_quant_table(), value_string(), vc1_decode_ac_coeff(), vc1_decode_b_mb(), vc1_decode_p_mb(), vk_alloc_mem(), voc_read_seek(), vqa_decode_chunk(), wma_decode_block(), wrap_texture_buf(), write_abst(), write_manifest(), wv_unpack_dsd_fast(), xan_wc3_output_pixel_run(), xpm_decode_frame(), yuv420_bgr24_TMPL(), yuv420_bgr32_TMPL(), yuv420_rgb15_TMPL(), yuv420_rgb16_TMPL(), yuv420_rgb24_TMPL(), yuv420_rgb32_TMPL(), yuva420_bgr32_TMPL(), and yuva420_rgb32_TMPL().

◆ graph

fg inputs [0] graph = fg

◆ format

fg inputs [0] format = -1

Definition at line 175 of file ffmpeg_filter.c.

Referenced by convert_from_tensorflow.Operand::__str__(), alloc_frame_empty(), av_hwframe_ctx_create_derived(), av_sscanf(), avformat_alloc_output_context2(), bktr_init(), call_kernel(), cdxl_read_packet(), compute_vmaf_score(), config_props(), configure_output_audio_filter(), configure_video_device(), convert_axis_pixel_format(), copy_picture_field(), create(), create_frame(), decode_frame(), dnxhd_decode_frame(), dxva_list_guids_debug(), ff_alloc_input_device_context(), ff_alsa_open(), ff_AMediaCodec_configure(), ff_AMediaFormat_delete(), ff_AMediaFormat_getBuffer(), ff_AMediaFormat_getFloat(), ff_AMediaFormat_getInt32(), ff_AMediaFormat_getInt64(), ff_AMediaFormat_getString(), ff_AMediaFormat_new(), ff_AMediaFormat_newFromObject(), ff_AMediaFormat_setBuffer(), ff_AMediaFormat_setFloat(), ff_AMediaFormat_setInt32(), ff_AMediaFormat_setInt64(), ff_AMediaFormat_setString(), ff_AMediaFormat_toString(), ff_draw_init(), ff_flac_is_extradata_valid(), ff_flv_decode_picture_header(), ff_flv_encode_picture_header(), ff_frame_pool_audio_init(), ff_frame_pool_get(), ff_frame_pool_get_audio_config(), ff_frame_pool_get_video_config(), ff_frame_pool_video_init(), ff_h261_encode_picture_header(), ff_h263_decode_picture_header(), ff_h263_encode_picture_header(), ff_intel_h263_decode_picture_header(), ff_mediacodec_dec_init(), ff_mediacodec_dec_receive(), ff_mov_read_stsd_entries(), ff_overlay_init_x86(), ff_qsv_map_pixfmt(), ffat_update_ctx(), filter(), filter_color(), filter_color2(), filter_mono(), flac_decode_init(), format_init(), fov_from_dfov(), fsb_read_header(), get_plane_wh(), get_sample(), get_sdl_pix_fmt_and_blendmode(), get_sindex(), h261_decode_picture_header(), handle_0alpha(), handle_jpeg(), handle_xyz(), import_pem(), init(), init_processing_chain(), libdav1d_picture_allocator(), magy_decode_frame(), main(), match_video_size(), mediacodec_dec_parse_format(), mediacodec_decode_init(), mkv_write_stereo_mode(), moflex_read_sync(), mov_codec_id(), mov_parse_stsd_data(), mov_read_frma(), mov_skip_multiple_stsd(), nist_read_header(), open_slave(), opengl_get_fragment_shader_code(), pix_fmt_to_mfx_fourcc(), print_link_prop(), query_formats(), range_override_needed(), realloc_texture(), resample_init(), reset_ptr(), sdl2_write_header(), setup_array(), swap_sample_fmts_on_filter(), vaapi_decode_find_best_format(), vs2av_log(), vt_map_frame(), writer_print_integers(), xv_get_tag_from_format(), and yae_reset().

◆ filter

ost filter = fg->outputs[0]

Definition at line 177 of file ffmpeg_filter.c.

Referenced by configure_output_video_filter().

◆ ist

fg inputs [0] ist = ist

◆ frame_queue

fg inputs [0] frame_queue = av_fifo_alloc(8 * sizeof(AVFrame*))

Definition at line 186 of file ffmpeg_filter.c.

◆ filters

ist filters[ist->nb_filters - 1] = fg->inputs[0]

◆ filtergraphs

filtergraphs[nb_filtergraphs - 1] = fg

Definition at line 194 of file ffmpeg_filter.c.

Referenced by check_filter_outputs().

◆ return

return

Definition at line 196 of file ffmpeg_filter.c.

name
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
Definition: writing_filters.txt:88
avfilter_graph_create_filter
int avfilter_graph_create_filter(AVFilterContext **filt_ctx, const AVFilter *filt, const char *name, const char *args, void *opaque, AVFilterGraph *graph_ctx)
Create and add a filter instance into an existing graph.
Definition: avfiltergraph.c:139
fail
#define fail()
Definition: checkasm.h:134
type
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf type
Definition: writing_filters.txt:86
ist
fg inputs[0] ist
Definition: ffmpeg_filter.c:182
arg
const char * arg
Definition: jacosubdec.c:67
avfilter_get_by_name
const AVFilter * avfilter_get_by_name(const char *name)
Get a filter definition matching the given name.
Definition: allfilters.c:546
NULL
#define NULL
Definition: coverity.c:32
for
for(j=16;j >0;--j)
Definition: h264pred_template.c:469
FilterGraph
Definition: ffmpeg.h:287
avfilter_link
int avfilter_link(AVFilterContext *src, unsigned srcpad, AVFilterContext *dst, unsigned dstpad)
Link two filters together.
Definition: avfilter.c:135
AV_LOG_INFO
#define AV_LOG_INFO
Standard information.
Definition: log.h:192
av_mallocz
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
Definition: mem.c:243
ret
ret
Definition: filter_design.txt:187
OutputFilter
Definition: ffmpeg.h:264
av_log
#define av_log(a,...)
Definition: tableprint_vlc.h:28
snprintf
#define snprintf
Definition: snprintf.h:34