h263parse: move to videoparsers and separate plugin registration

This commit is contained in:
Mark Nauwelaerts 2011-01-27 18:16:14 +01:00
parent 1664b3000f
commit 0c5d139ba7
9 changed files with 47 additions and 18 deletions

View file

@ -308,7 +308,6 @@ AG_GST_CHECK_PLUGIN(freeze)
AG_GST_CHECK_PLUGIN(frei0r) AG_GST_CHECK_PLUGIN(frei0r)
AG_GST_CHECK_PLUGIN(gaudieffects) AG_GST_CHECK_PLUGIN(gaudieffects)
AG_GST_CHECK_PLUGIN(geometrictransform) AG_GST_CHECK_PLUGIN(geometrictransform)
AG_GST_CHECK_PLUGIN(h263parse)
AG_GST_CHECK_PLUGIN(h264parse) AG_GST_CHECK_PLUGIN(h264parse)
AG_GST_CHECK_PLUGIN(hdvparse) AG_GST_CHECK_PLUGIN(hdvparse)
AG_GST_CHECK_PLUGIN(id3tag) AG_GST_CHECK_PLUGIN(id3tag)
@ -345,6 +344,7 @@ AG_GST_CHECK_PLUGIN(stereo)
AG_GST_CHECK_PLUGIN(tta) AG_GST_CHECK_PLUGIN(tta)
AG_GST_CHECK_PLUGIN(videomaxrate) AG_GST_CHECK_PLUGIN(videomaxrate)
AG_GST_CHECK_PLUGIN(videomeasure) AG_GST_CHECK_PLUGIN(videomeasure)
AG_GST_CHECK_PLUGIN(videoparsers)
AG_GST_CHECK_PLUGIN(videosignal) AG_GST_CHECK_PLUGIN(videosignal)
AG_GST_CHECK_PLUGIN(vmnc) AG_GST_CHECK_PLUGIN(vmnc)
AG_GST_CHECK_PLUGIN(y4m) AG_GST_CHECK_PLUGIN(y4m)
@ -1728,7 +1728,6 @@ gst/freeze/Makefile
gst/frei0r/Makefile gst/frei0r/Makefile
gst/gaudieffects/Makefile gst/gaudieffects/Makefile
gst/geometrictransform/Makefile gst/geometrictransform/Makefile
gst/h263parse/Makefile
gst/h264parse/Makefile gst/h264parse/Makefile
gst/hdvparse/Makefile gst/hdvparse/Makefile
gst/id3tag/Makefile gst/id3tag/Makefile
@ -1766,6 +1765,7 @@ gst/stereo/Makefile
gst/tta/Makefile gst/tta/Makefile
gst/videomaxrate/Makefile gst/videomaxrate/Makefile
gst/videomeasure/Makefile gst/videomeasure/Makefile
gst/videoparsers/Makefile
gst/videosignal/Makefile gst/videosignal/Makefile
gst/vmnc/Makefile gst/vmnc/Makefile
gst/y4m/Makefile gst/y4m/Makefile

View file

@ -1,6 +1,6 @@
plugin_LTLIBRARIES = libgsth263parse.la plugin_LTLIBRARIES = libgsth263parse.la
libgsth263parse_la_SOURCES = h263parse.c gsth263parse.c gstbaseparse.c libgsth263parse_la_SOURCES = plugin.c h263parse.c gsth263parse.c gstbaseparse.c
libgsth263parse_la_CFLAGS = $(GST_CFLAGS) libgsth263parse_la_CFLAGS = $(GST_CFLAGS)
libgsth263parse_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) libgsth263parse_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS)
libgsth263parse_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgsth263parse_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)

View file

@ -329,7 +329,7 @@ gst_base_parse_get_type (void)
}; };
base_parse_type = g_type_register_static (GST_TYPE_ELEMENT, base_parse_type = g_type_register_static (GST_TYPE_ELEMENT,
"GstH263BaseParseBad", &base_parse_info, G_TYPE_FLAG_ABSTRACT); "GstBaseVideoParseBad", &base_parse_info, G_TYPE_FLAG_ABSTRACT);
} }
return base_parse_type; return base_parse_type;
} }
@ -460,7 +460,7 @@ gst_base_parse_class_init (GstBaseParseClass * klass)
klass->src_event = gst_base_parse_src_eventfunc; klass->src_event = gst_base_parse_src_eventfunc;
klass->convert = gst_base_parse_convert_default; klass->convert = gst_base_parse_convert_default;
GST_DEBUG_CATEGORY_INIT (gst_base_parse_debug, "h263baseparse", 0, GST_DEBUG_CATEGORY_INIT (gst_base_parse_debug, "basevideoparse", 0,
"baseparse element"); "baseparse element");
} }

View file

@ -357,16 +357,3 @@ out:
g_free (params); g_free (params);
return res; return res;
} }
static gboolean
plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "h263parse",
GST_RANK_NONE, GST_TYPE_H263PARSE);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
"h263parse",
"Element for parsing raw h263 streams",
plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)

42
gst/videoparsers/plugin.c Normal file
View file

@ -0,0 +1,42 @@
/* GStreamer video parsers
* Copyright (C) 2011 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "gsth263parse.h"
static gboolean
plugin_init (GstPlugin * plugin)
{
gboolean ret;
ret = gst_element_register (plugin, "h263parse",
GST_RANK_NONE, GST_TYPE_H263_PARSE);
return ret;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
"videoparsersbad",
"videoparsers",
plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);