diff options
author | David Schleef <ds@schleef.org> | 2008-03-06 03:16:13 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2008-03-06 03:16:13 +0000 |
commit | b387715461ec1eab84eb2eb990e1a5562b9d8b42 (patch) | |
tree | e82c911268f803028e289187c857775b5e4fb3fd /ext/dirac/gstdirac.cc | |
parent | acb81c58c547b0e6155fd61b7914f39deea428ad (diff) | |
download | gst-plugins-bad-b387715461ec1eab84eb2eb990e1a5562b9d8b42.tar.gz gst-plugins-bad-b387715461ec1eab84eb2eb990e1a5562b9d8b42.tar.bz2 gst-plugins-bad-b387715461ec1eab84eb2eb990e1a5562b9d8b42.zip |
Rewrite Dirac encoder plugin based on Schroedinger gstreamer elements.
Original commit message from CVS:
* configure.ac:
* ext/Makefile.am:
* ext/dirac/Makefile.am:
* ext/dirac/gstdirac.cc:
* ext/dirac/gstdiracenc.cc:
Rewrite Dirac encoder plugin based on Schroedinger gstreamer
elements.
Diffstat (limited to 'ext/dirac/gstdirac.cc')
-rw-r--r-- | ext/dirac/gstdirac.cc | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/ext/dirac/gstdirac.cc b/ext/dirac/gstdirac.cc index 6f5dda21..807be934 100644 --- a/ext/dirac/gstdirac.cc +++ b/ext/dirac/gstdirac.cc @@ -23,22 +23,27 @@ #include <gst/gst.h> -#include "gstdiracdec.h" +GType gst_dirac_dec_get_type (void); +GType gst_dirac_enc_get_type (void); + +GST_DEBUG_CATEGORY (dirac_debug); +#define GST_CAT_DEFAULT dirac_debug static gboolean plugin_init (GstPlugin * plugin) { -#if 0 + GST_DEBUG_CATEGORY_INIT (dirac_debug, "dirac", 0, "Dirac elements"); + if (!gst_element_register (plugin, "diracenc", GST_RANK_NONE, - gst_diracenc_get_type ())) { + gst_dirac_enc_get_type ())) { return FALSE; } -#endif - - if (!gst_element_register (plugin, "diracdec", GST_RANK_PRIMARY, - GST_TYPE_DIRACDEC)) { +#if 0 + if (!gst_element_register (plugin, "diracdec", GST_RANK_MARGINAL, + gst_dirac_dec_get_type ())) { return FALSE; } +#endif return TRUE; } @@ -46,4 +51,5 @@ plugin_init (GstPlugin * plugin) GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, "dirac", - "Dirac plugin", plugin_init, VERSION, "LGPL", GST_PACKAGE, GST_ORIGIN) + "Dirac plugin", plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, + GST_PACKAGE_ORIGIN) |