00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "avfilter.h"
00023 #include "config.h"
00024
00025
00026 #define REGISTER_FILTER(X,x,y) { \
00027 extern AVFilter avfilter_##y##_##x ; \
00028 if(CONFIG_##X##_FILTER ) avfilter_register(&avfilter_##y##_##x ); }
00029
00030 #define REGISTER_BUILTIN_FILTER(x,y) { \
00031 extern AVFilter avfilter_##y##_##x ; \
00032 avfilter_register(&avfilter_##y##_##x ); }
00033
00034 void avfilter_register_all(void)
00035 {
00036 static int initialized;
00037
00038 if (initialized)
00039 return;
00040 initialized = 1;
00041
00042 REGISTER_FILTER (ACONVERT, aconvert, af);
00043 REGISTER_FILTER (AFIFO, afifo, af);
00044 REGISTER_FILTER (AFORMAT, aformat, af);
00045 REGISTER_FILTER (AMERGE, amerge, af);
00046 REGISTER_FILTER (AMIX, amix, af);
00047 REGISTER_FILTER (ANULL, anull, af);
00048 REGISTER_FILTER (ARESAMPLE, aresample, af);
00049 REGISTER_FILTER (ASENDCMD, asendcmd, af);
00050 REGISTER_FILTER (ASETNSAMPLES, asetnsamples, af);
00051 REGISTER_FILTER (ASETPTS, asetpts, af);
00052 REGISTER_FILTER (ASETTB, asettb, af);
00053 REGISTER_FILTER (ASHOWINFO, ashowinfo, af);
00054 REGISTER_FILTER (ASPLIT, asplit, af);
00055 REGISTER_FILTER (ASTREAMSYNC, astreamsync, af);
00056 REGISTER_FILTER (ASYNCTS, asyncts, af);
00057 REGISTER_FILTER (ATEMPO, atempo, af);
00058 REGISTER_FILTER (CHANNELMAP, channelmap, af);
00059 REGISTER_FILTER (CHANNELSPLIT,channelsplit,af);
00060 REGISTER_FILTER (EARWAX, earwax, af);
00061 REGISTER_FILTER (JOIN, join, af);
00062 REGISTER_FILTER (PAN, pan, af);
00063 REGISTER_FILTER (SILENCEDETECT, silencedetect, af);
00064 REGISTER_FILTER (VOLUME, volume, af);
00065 REGISTER_FILTER (VOLUMEDETECT,volumedetect,af);
00066 REGISTER_FILTER (RESAMPLE, resample, af);
00067
00068 REGISTER_FILTER (AEVALSRC, aevalsrc, asrc);
00069 REGISTER_FILTER (ANULLSRC, anullsrc, asrc);
00070 REGISTER_FILTER (FLITE, flite, asrc);
00071
00072 REGISTER_FILTER (ANULLSINK, anullsink, asink);
00073
00074 REGISTER_FILTER (ALPHAEXTRACT, alphaextract, vf);
00075 REGISTER_FILTER (ALPHAMERGE, alphamerge, vf);
00076 REGISTER_FILTER (ASS, ass, vf);
00077 REGISTER_FILTER (BBOX, bbox, vf);
00078 REGISTER_FILTER (BLACKDETECT, blackdetect, vf);
00079 REGISTER_FILTER (BLACKFRAME, blackframe, vf);
00080 REGISTER_FILTER (BOXBLUR, boxblur, vf);
00081 REGISTER_FILTER (COLORMATRIX, colormatrix, vf);
00082 REGISTER_FILTER (COPY, copy, vf);
00083 REGISTER_FILTER (CROP, crop, vf);
00084 REGISTER_FILTER (CROPDETECT, cropdetect, vf);
00085 REGISTER_FILTER (DECIMATE, decimate, vf);
00086 REGISTER_FILTER (DELOGO, delogo, vf);
00087 REGISTER_FILTER (DESHAKE, deshake, vf);
00088 REGISTER_FILTER (DRAWBOX, drawbox, vf);
00089 REGISTER_FILTER (DRAWTEXT, drawtext, vf);
00090 REGISTER_FILTER (EDGEDETECT, edgedetect, vf);
00091 REGISTER_FILTER (FADE, fade, vf);
00092 REGISTER_FILTER (FIELDORDER, fieldorder, vf);
00093 REGISTER_FILTER (FIFO, fifo, vf);
00094 REGISTER_FILTER (FORMAT, format, vf);
00095 REGISTER_FILTER (FPS, fps, vf);
00096 REGISTER_FILTER (FRAMESTEP, framestep, vf);
00097 REGISTER_FILTER (FREI0R, frei0r, vf);
00098 REGISTER_FILTER (GRADFUN, gradfun, vf);
00099 REGISTER_FILTER (HFLIP, hflip, vf);
00100 REGISTER_FILTER (HQDN3D, hqdn3d, vf);
00101 REGISTER_FILTER (HUE, hue, vf);
00102 REGISTER_FILTER (IDET, idet, vf);
00103 REGISTER_FILTER (LUT, lut, vf);
00104 REGISTER_FILTER (LUTRGB, lutrgb, vf);
00105 REGISTER_FILTER (LUTYUV, lutyuv, vf);
00106 REGISTER_FILTER (MP, mp, vf);
00107 REGISTER_FILTER (NEGATE, negate, vf);
00108 REGISTER_FILTER (NOFORMAT, noformat, vf);
00109 REGISTER_FILTER (NULL, null, vf);
00110 REGISTER_FILTER (OCV, ocv, vf);
00111 REGISTER_FILTER (OVERLAY, overlay, vf);
00112 REGISTER_FILTER (PAD, pad, vf);
00113 REGISTER_FILTER (PIXDESCTEST, pixdesctest, vf);
00114 REGISTER_FILTER (REMOVELOGO, removelogo, vf);
00115 REGISTER_FILTER (SCALE, scale, vf);
00116 REGISTER_FILTER (SELECT, select, vf);
00117 REGISTER_FILTER (SENDCMD, sendcmd, vf);
00118 REGISTER_FILTER (SETDAR, setdar, vf);
00119 REGISTER_FILTER (SETFIELD, setfield, vf);
00120 REGISTER_FILTER (SETPTS, setpts, vf);
00121 REGISTER_FILTER (SETSAR, setsar, vf);
00122 REGISTER_FILTER (SETTB, settb, vf);
00123 REGISTER_FILTER (SHOWINFO, showinfo, vf);
00124 REGISTER_FILTER (SLICIFY, slicify, vf);
00125 REGISTER_FILTER (SMARTBLUR, smartblur, vf);
00126 REGISTER_FILTER (SPLIT, split, vf);
00127 REGISTER_FILTER (SUPER2XSAI, super2xsai, vf);
00128 REGISTER_FILTER (SWAPUV, swapuv, vf);
00129 REGISTER_FILTER (THUMBNAIL, thumbnail, vf);
00130 REGISTER_FILTER (TILE, tile, vf);
00131 REGISTER_FILTER (TINTERLACE, tinterlace, vf);
00132 REGISTER_FILTER (TRANSPOSE, transpose, vf);
00133 REGISTER_FILTER (UNSHARP, unsharp, vf);
00134 REGISTER_FILTER (VFLIP, vflip, vf);
00135 REGISTER_FILTER (YADIF, yadif, vf);
00136
00137 REGISTER_FILTER (CELLAUTO, cellauto, vsrc);
00138 REGISTER_FILTER (COLOR, color, vsrc);
00139 REGISTER_FILTER (FREI0R, frei0r_src, vsrc);
00140 REGISTER_FILTER (LIFE, life, vsrc);
00141 REGISTER_FILTER (MANDELBROT, mandelbrot, vsrc);
00142 REGISTER_FILTER (MPTESTSRC, mptestsrc, vsrc);
00143 REGISTER_FILTER (NULLSRC, nullsrc, vsrc);
00144 REGISTER_FILTER (RGBTESTSRC, rgbtestsrc, vsrc);
00145 REGISTER_FILTER (SMPTEBARS, smptebars, vsrc);
00146 REGISTER_FILTER (TESTSRC, testsrc, vsrc);
00147
00148 REGISTER_FILTER (NULLSINK, nullsink, vsink);
00149
00150
00151 REGISTER_FILTER (CONCAT, concat, avf);
00152 REGISTER_FILTER (SHOWSPECTRUM,showspectrum,avf);
00153 REGISTER_FILTER (SHOWWAVES, showwaves, avf);
00154
00155
00156 REGISTER_FILTER (AMOVIE, amovie, avsrc);
00157 REGISTER_FILTER (MOVIE, movie, avsrc);
00158
00159 REGISTER_BUILTIN_FILTER (ffbuffersink, vsink);
00160 REGISTER_BUILTIN_FILTER (ffabuffersink, asink);
00161 #if !AV_HAVE_INCOMPATIBLE_FORK_ABI
00162 REGISTER_BUILTIN_FILTER (buffersink, vsink);
00163 REGISTER_BUILTIN_FILTER (abuffersink, asink);
00164 #endif
00165
00166
00167
00168 {
00169 extern AVFilter avfilter_vsrc_buffer;
00170 avfilter_register(&avfilter_vsrc_buffer);
00171 }
00172 {
00173 extern AVFilter avfilter_asrc_abuffer;
00174 avfilter_register(&avfilter_asrc_abuffer);
00175 }
00176 {
00177 extern AVFilter avfilter_vsink_buffer;
00178 avfilter_register(&avfilter_vsink_buffer);
00179 }
00180 {
00181 extern AVFilter avfilter_asink_abuffer;
00182 avfilter_register(&avfilter_asink_abuffer);
00183 }
00184 }