|
Packit |
0652a1 |
/* GStreamer
|
|
Packit |
0652a1 |
* Copyright (C) 2004 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
0652a1 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
0652a1 |
* License as published by the Free Software Foundation; either
|
|
Packit |
0652a1 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
0652a1 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
0652a1 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
0652a1 |
* Library General Public License for more details.
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
0652a1 |
* License along with this library; if not, write to the
|
|
Packit |
0652a1 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
0652a1 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
0652a1 |
*/
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
#ifdef HAVE_CONFIG_H
|
|
Packit |
0652a1 |
# include "config.h"
|
|
Packit |
0652a1 |
#endif
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
#include <gst/gst.h>
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
extern GType gst_theora_dec_get_type (void);
|
|
Packit |
0652a1 |
extern GType gst_theora_enc_get_type (void);
|
|
Packit |
0652a1 |
extern GType gst_theora_parse_get_type (void);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
static gboolean
|
|
Packit |
0652a1 |
plugin_init (GstPlugin * plugin)
|
|
Packit |
0652a1 |
{
|
|
Packit |
0652a1 |
if (!gst_element_register (plugin, "theoradec", GST_RANK_PRIMARY,
|
|
Packit |
0652a1 |
gst_theora_dec_get_type ()))
|
|
Packit |
0652a1 |
return FALSE;
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
if (!gst_element_register (plugin, "theoraenc", GST_RANK_PRIMARY,
|
|
Packit |
0652a1 |
gst_theora_enc_get_type ()))
|
|
Packit |
0652a1 |
return FALSE;
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
if (!gst_element_register (plugin, "theoraparse", GST_RANK_NONE,
|
|
Packit |
0652a1 |
gst_theora_parse_get_type ()))
|
|
Packit |
0652a1 |
return FALSE;
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
return TRUE;
|
|
Packit |
0652a1 |
}
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
Packit |
0652a1 |
GST_VERSION_MINOR,
|
|
Packit |
0652a1 |
theora,
|
|
Packit |
0652a1 |
"Theora plugin library",
|
|
Packit |
0652a1 |
plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|