• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifdef HAVE_CONFIG_H
2 #  include "config.h"
3 #endif
4 
5 #include <gst/gst.h>
6 #include "gstrawaudioparse.h"
7 #include "gstrawvideoparse.h"
8 #include "gstunalignedaudioparse.h"
9 #include "gstunalignedvideoparse.h"
10 
11 static gboolean
plugin_init(GstPlugin * plugin)12 plugin_init (GstPlugin * plugin)
13 {
14   gboolean ret = TRUE;
15 
16   ret &= gst_element_register (plugin, "unalignedaudioparse", GST_RANK_MARGINAL,
17       gst_unaligned_audio_parse_get_type ());
18   ret &= gst_element_register (plugin, "unalignedvideoparse", GST_RANK_MARGINAL,
19       gst_unaligned_video_parse_get_type ());
20   ret &= gst_element_register (plugin, "rawaudioparse", GST_RANK_NONE,
21       gst_raw_audio_parse_get_type ());
22   ret &= gst_element_register (plugin, "rawvideoparse", GST_RANK_NONE,
23       gst_raw_video_parse_get_type ());
24 
25   return ret;
26 }
27 
28 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
29     GST_VERSION_MINOR,
30     rawparse,
31     "Parses byte streams into raw frames",
32     plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
33