|
Packit |
1f69a5 |
/* VP8
|
|
Packit |
1f69a5 |
* Copyright (C) 2006 David Schleef <ds@schleef.org>
|
|
Packit |
1f69a5 |
* Copyright (C) 2010 Entropy Wave Inc
|
|
Packit |
1f69a5 |
*
|
|
Packit |
1f69a5 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
1f69a5 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
1f69a5 |
* License as published by the Free Software Foundation; either
|
|
Packit |
1f69a5 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
1f69a5 |
*
|
|
Packit |
1f69a5 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
1f69a5 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
1f69a5 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
1f69a5 |
* Library General Public License for more details.
|
|
Packit |
1f69a5 |
*
|
|
Packit |
1f69a5 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
1f69a5 |
* License along with this library; if not, write to the
|
|
Packit |
1f69a5 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
1f69a5 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
1f69a5 |
*
|
|
Packit |
1f69a5 |
*/
|
|
Packit |
1f69a5 |
|
|
Packit |
1f69a5 |
#ifdef HAVE_CONFIG_H
|
|
Packit |
1f69a5 |
#include "config.h"
|
|
Packit |
1f69a5 |
#endif
|
|
Packit |
1f69a5 |
|
|
Packit |
1f69a5 |
#include <gst/gst.h>
|
|
Packit |
1f69a5 |
|
|
Packit |
1f69a5 |
#include "gstvp8dec.h"
|
|
Packit |
1f69a5 |
#include "gstvp8enc.h"
|
|
Packit |
1f69a5 |
#include "gstvp9dec.h"
|
|
Packit |
1f69a5 |
#include "gstvp9enc.h"
|
|
Packit |
1f69a5 |
|
|
Packit |
1f69a5 |
static gboolean
|
|
Packit |
1f69a5 |
plugin_init (GstPlugin * plugin)
|
|
Packit |
1f69a5 |
{
|
|
Packit |
1f69a5 |
#ifdef HAVE_VP8_DECODER
|
|
Packit |
1f69a5 |
gst_element_register (plugin, "vp8dec", GST_RANK_PRIMARY,
|
|
Packit |
1f69a5 |
gst_vp8_dec_get_type ());
|
|
Packit |
1f69a5 |
#endif
|
|
Packit |
1f69a5 |
|
|
Packit |
1f69a5 |
#ifdef HAVE_VP8_ENCODER
|
|
Packit |
1f69a5 |
gst_element_register (plugin, "vp8enc", GST_RANK_PRIMARY,
|
|
Packit |
1f69a5 |
gst_vp8_enc_get_type ());
|
|
Packit |
1f69a5 |
#endif
|
|
Packit |
1f69a5 |
|
|
Packit |
1f69a5 |
#ifdef HAVE_VP9_DECODER
|
|
Packit |
1f69a5 |
gst_element_register (plugin, "vp9dec", GST_RANK_PRIMARY,
|
|
Packit |
1f69a5 |
gst_vp9_dec_get_type ());
|
|
Packit |
1f69a5 |
#endif
|
|
Packit |
1f69a5 |
|
|
Packit |
1f69a5 |
#ifdef HAVE_VP9_ENCODER
|
|
Packit |
1f69a5 |
gst_element_register (plugin, "vp9enc", GST_RANK_PRIMARY,
|
|
Packit |
1f69a5 |
gst_vp9_enc_get_type ());
|
|
Packit |
1f69a5 |
#endif
|
|
Packit |
1f69a5 |
|
|
Packit |
1f69a5 |
return TRUE;
|
|
Packit |
1f69a5 |
}
|
|
Packit |
1f69a5 |
|
|
Packit |
1f69a5 |
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
Packit |
1f69a5 |
GST_VERSION_MINOR,
|
|
Packit |
1f69a5 |
vpx,
|
|
Packit |
1f69a5 |
"VP8 plugin",
|
|
Packit |
1f69a5 |
plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|