Statistics
| Branch: | Revision:

ffmpeg / libavfilter / allfilters.c @ master

History | View | Annotate | Download (3.22 KB)

1 5c212e6f Vitor Sessak
/*
2
 * filter registration
3 3fa77bde Stefano Sabatini
 * Copyright (c) 2008 Vitor Sessak
4 5c212e6f Vitor Sessak
 *
5
 * This file is part of FFmpeg.
6
 *
7
 * FFmpeg is free software; you can redistribute it and/or
8
 * modify it under the terms of the GNU Lesser General Public
9
 * License as published by the Free Software Foundation; either
10
 * version 2.1 of the License, or (at your option) any later version.
11
 *
12
 * FFmpeg is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 * Lesser General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU Lesser General Public
18
 * License along with FFmpeg; if not, write to the Free Software
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
 */
21
22
#include "avfilter.h"
23
24
25 81124ba0 Vitor Sessak
#define REGISTER_FILTER(X,x,y) { \
26
          extern AVFilter avfilter_##y##_##x ; \
27 49fb20cb Aurelien Jacobs
          if(CONFIG_##X##_FILTER )  avfilter_register(&avfilter_##y##_##x ); }
28 5c212e6f Vitor Sessak
29
void avfilter_register_all(void)
30
{
31
    static int initialized;
32
33
    if (initialized)
34
        return;
35
    initialized = 1;
36
37 99046339 S.N. Hemanth Meenakshisundaram
    REGISTER_FILTER (ANULL,       anull,       af);
38
39 1ee410f3 Stefano Sabatini
    REGISTER_FILTER (ANULLSRC,    anullsrc,    asrc);
40
41 f0a55438 S.N. Hemanth Meenakshisundaram
    REGISTER_FILTER (ANULLSINK,   anullsink,   asink);
42
43 13fabd7a Stefano Sabatini
    REGISTER_FILTER (BLACKFRAME,  blackframe,  vf);
44 b5670209 Stefano Sabatini
    REGISTER_FILTER (COPY,        copy,        vf);
45 e88c9dac Bobby Bingham
    REGISTER_FILTER (CROP,        crop,        vf);
46 68b79bfc Stefano Sabatini
    REGISTER_FILTER (CROPDETECT,  cropdetect,  vf);
47 e40032e2 Stefano Sabatini
    REGISTER_FILTER (DRAWBOX,     drawbox,     vf);
48 bd8e7503 Stefano Sabatini
    REGISTER_FILTER (DRAWTEXT,    drawtext,    vf);
49 704865fc Brandon Mintern
    REGISTER_FILTER (FADE,        fade,        vf);
50 aa0c515a Mark Himsley
    REGISTER_FILTER (FIELDORDER,  fieldorder,  vf);
51 7f1af825 Stefano Sabatini
    REGISTER_FILTER (FIFO,        fifo,        vf);
52 e88c9dac Bobby Bingham
    REGISTER_FILTER (FORMAT,      format,      vf);
53 47941088 Stefano Sabatini
    REGISTER_FILTER (FREI0R,      frei0r,      vf);
54 d5f187fd Nolan L
    REGISTER_FILTER (GRADFUN,     gradfun,     vf);
55 a1e171df Stefano Sabatini
    REGISTER_FILTER (HFLIP,       hflip,       vf);
56 a4dc7aa5 Baptiste Coudurier
    REGISTER_FILTER (HQDN3D,      hqdn3d,      vf);
57 fd4c59b5 Michael Niedermayer
    REGISTER_FILTER (MP,          mp,          vf);
58 e88c9dac Bobby Bingham
    REGISTER_FILTER (NOFORMAT,    noformat,    vf);
59
    REGISTER_FILTER (NULL,        null,        vf);
60 cf69ad35 Stefano Sabatini
    REGISTER_FILTER (OCV,         ocv,         vf);
61 58935b25 Stefano Sabatini
    REGISTER_FILTER (OVERLAY,     overlay,     vf);
62 3c940173 Michael Niedermayer
    REGISTER_FILTER (PAD,         pad,         vf);
63 ce2e4ae3 Stefano Sabatini
    REGISTER_FILTER (PIXDESCTEST, pixdesctest, vf);
64 e88c9dac Bobby Bingham
    REGISTER_FILTER (SCALE,       scale,       vf);
65 2fb21bf4 Stefano Sabatini
    REGISTER_FILTER (SETDAR,      setdar,      vf);
66 a532bb39 Stefano Sabatini
    REGISTER_FILTER (SETPTS,      setpts,      vf);
67 2fb21bf4 Stefano Sabatini
    REGISTER_FILTER (SETSAR,      setsar,      vf);
68 6f2325e3 Stefano Sabatini
    REGISTER_FILTER (SETTB,       settb,       vf);
69 31d8467d Stefano Sabatini
    REGISTER_FILTER (SHOWINFO,    showinfo,    vf);
70 e88c9dac Bobby Bingham
    REGISTER_FILTER (SLICIFY,     slicify,     vf);
71 43945b27 Stefano Sabatini
    REGISTER_FILTER (TRANSPOSE,   transpose,   vf);
72 e0728d79 Bobby Bingham
    REGISTER_FILTER (UNSHARP,     unsharp,     vf);
73 e88c9dac Bobby Bingham
    REGISTER_FILTER (VFLIP,       vflip,       vf);
74 acbac567 Michael Niedermayer
    REGISTER_FILTER (YADIF,       yadif,       vf);
75 dd08b83c Stefano Sabatini
76 3b9900c1 Michael Niedermayer
    REGISTER_FILTER (BUFFER,      buffer,      vsrc);
77 23ccf3c7 Stefano Sabatini
    REGISTER_FILTER (COLOR,       color,       vsrc);
78 f8608dca Stefano Sabatini
    REGISTER_FILTER (FREI0R,      frei0r_src,  vsrc);
79 9b8bb626 Stefano Sabatini
    REGISTER_FILTER (MOVIE,       movie,       vsrc);
80 e88c9dac Bobby Bingham
    REGISTER_FILTER (NULLSRC,     nullsrc,     vsrc);
81 006aa1a4 Stefano Sabatini
82 e88c9dac Bobby Bingham
    REGISTER_FILTER (NULLSINK,    nullsink,    vsink);
83 5c212e6f Vitor Sessak
}