blob: fdd4b5581ff11be38c12cf399479c30ba5c41367 [file] [log] [blame]
Olivier Naudanb28313f2012-04-16 08:10:18 -04001/* GStreamer
2 * Copyright (C) <2010> Filippo Argiolas <filippo.argiolas@gmail.com>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
Sebastian Drögee6513c12013-07-14 12:12:42 +020016 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
Olivier Naudanb28313f2012-04-16 08:10:18 -040018 */
19
20#ifdef HAVE_CONFIG_H
21# include <config.h>
22#endif
23
24#include <gst/gst.h>
25
26#include "gstcoloreffects.h"
27#include "gstchromahold.h"
28
29struct _elements_entry
30{
31 const gchar *name;
32 GType (*type) (void);
33};
34
35static const struct _elements_entry _elements[] = {
36 {"coloreffects", gst_color_effects_get_type},
37 {"chromahold", gst_chroma_hold_get_type},
38 {NULL, 0},
39};
40
41static gboolean
42plugin_init (GstPlugin * plugin)
43{
44 gint i = 0;
45
46 while (_elements[i].name) {
47 if (!gst_element_register (plugin, _elements[i].name,
48 GST_RANK_NONE, (_elements[i].type) ()))
49 return FALSE;
50 i++;
51 }
52
53 return TRUE;
54}
55
56GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
57 GST_VERSION_MINOR,
58 coloreffects,
59 "Color Look-up Table filters",
60 plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)