summaryrefslogtreecommitdiffstats
path: root/gst/rawparse/plugin.c
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2007-12-23 06:22:32 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2007-12-23 06:22:32 +0000
commit96690aa992f0c0c81c542609d5a21facf72fc8d1 (patch)
tree73a41ea7669cb03c3e4884d349d0f8a98a10dd40 /gst/rawparse/plugin.c
parent11b0b3dd23e7f44adeea7639a515f6d00f96df82 (diff)
downloadgst-plugins-bad-96690aa992f0c0c81c542609d5a21facf72fc8d1.tar.gz
gst-plugins-bad-96690aa992f0c0c81c542609d5a21facf72fc8d1.tar.bz2
gst-plugins-bad-96690aa992f0c0c81c542609d5a21facf72fc8d1.zip
Add new plugin rawparse that contains a base class for raw data parsers and the two elements audioparse and videopars...
Original commit message from CVS: * configure.ac: * gst/rawparse/Makefile.am: * gst/rawparse/README: * gst/rawparse/gstaudioparse.c: (gst_audio_parse_format_get_type), (gst_audio_parse_endianness_get_type), (gst_audio_parse_base_init), (gst_audio_parse_class_init), (gst_audio_parse_init), (gst_audio_parse_set_property), (gst_audio_parse_get_property), (gst_audio_parse_update_frame_size), (gst_audio_parse_get_caps): * gst/rawparse/gstaudioparse.h: * gst/rawparse/gstrawparse.c: (gst_raw_parse_base_init), (gst_raw_parse_class_init), (gst_raw_parse_init), (gst_raw_parse_dispose), (gst_raw_parse_class_set_src_pad_template), (gst_raw_parse_class_set_multiple_frames_per_buffer), (gst_raw_parse_reset), (gst_raw_parse_chain), (gst_raw_parse_convert), (gst_raw_parse_sink_event), (gst_raw_parse_src_event), (gst_raw_parse_src_query_type), (gst_raw_parse_src_query), (gst_raw_parse_set_framesize), (gst_raw_parse_set_fps), (gst_raw_parse_get_fps), (gst_raw_parse_is_negotiated): * gst/rawparse/gstrawparse.h: * gst/rawparse/gstvideoparse.c: (gst_video_parse_format_get_type), (gst_video_parse_endianness_get_type), (gst_video_parse_base_init), (gst_video_parse_class_init), (gst_video_parse_init), (gst_video_parse_set_property), (gst_video_parse_get_property), (gst_video_parse_format_to_fourcc), (gst_video_parse_update_frame_size), (gst_video_parse_get_caps): * gst/rawparse/gstvideoparse.h: * gst/rawparse/plugin.c: (plugin_init): Add new plugin rawparse that contains a base class for raw data parsers and the two elements audioparse and videoparse that can be used to parse raw audio and video. These are inspired by the old videoparse element which the new rawparse plugin deprecates.
Diffstat (limited to 'gst/rawparse/plugin.c')
-rw-r--r--gst/rawparse/plugin.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/gst/rawparse/plugin.c b/gst/rawparse/plugin.c
new file mode 100644
index 00000000..250be6de
--- /dev/null
+++ b/gst/rawparse/plugin.c
@@ -0,0 +1,26 @@
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <gst/gst.h>
+#include "gstaudioparse.h"
+#include "gstvideoparse.h"
+
+static gboolean
+plugin_init (GstPlugin * plugin)
+{
+ gboolean ret;
+
+ ret = gst_element_register (plugin, "videoparse", GST_RANK_NONE,
+ gst_video_parse_get_type ());
+ ret &= gst_element_register (plugin, "audioparse", GST_RANK_NONE,
+ gst_audio_parse_get_type ());
+
+ return ret;
+}
+
+GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
+ GST_VERSION_MINOR,
+ "rawparse",
+ "Parses byte streams into raw frames",
+ plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);