plugin.c 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright (C) 2009-2010 Felipe Contreras
  3. *
  4. * Author: Felipe Contreras <felipe.contreras@gmail.com>
  5. *
  6. * This file may be used under the terms of the GNU Lesser General Public
  7. * License version 2.1, a copy of which is found in LICENSE included in the
  8. * packaging of this file.
  9. */
  10. #include "plugin.h"
  11. #include "gstdspdummy.h"
  12. #include "gstdspvdec.h"
  13. #include "gstdspadec.h"
  14. #include "gstdsph263enc.h"
  15. #include "gstdspmp4venc.h"
  16. #include "gstdspjpegenc.h"
  17. #include "gstdsph264enc.h"
  18. #include "gstdspvpp.h"
  19. #include "gstdspipp.h"
  20. GstDebugCategory *gstdsp_debug;
  21. static gboolean
  22. plugin_init(GstPlugin *plugin)
  23. {
  24. #ifndef GST_DISABLE_GST_DEBUG
  25. gstdsp_debug = _gst_debug_category_new("dsp", 0, "DSP stuff");
  26. #endif
  27. if (!gst_element_register(plugin, "dspdummy", GST_RANK_NONE, GST_DSP_DUMMY_TYPE))
  28. return FALSE;
  29. if (!gst_element_register(plugin, "dspvdec", GST_RANK_PRIMARY, GST_DSP_VDEC_TYPE))
  30. return FALSE;
  31. if (!gst_element_register(plugin, "dspadec", GST_RANK_SECONDARY, GST_DSP_ADEC_TYPE))
  32. return FALSE;
  33. if (!gst_element_register(plugin, "dsph263enc", GST_RANK_PRIMARY, GST_DSP_H263ENC_TYPE))
  34. return FALSE;
  35. if (!gst_element_register(plugin, "dspmp4venc", GST_RANK_PRIMARY, GST_DSP_MP4VENC_TYPE))
  36. return FALSE;
  37. if (!gst_element_register(plugin, "dspjpegenc", GST_RANK_PRIMARY, GST_DSP_JPEGENC_TYPE))
  38. return FALSE;
  39. if (!gst_element_register(plugin, "dsph264enc", GST_RANK_PRIMARY, GST_DSP_H264ENC_TYPE))
  40. return FALSE;
  41. if (!gst_element_register(plugin, "dspvpp", GST_RANK_PRIMARY, GST_DSP_VPP_TYPE))
  42. return FALSE;
  43. if (!gst_element_register(plugin, "dspipp", GST_RANK_PRIMARY, GST_DSP_IPP_TYPE))
  44. return FALSE;
  45. return TRUE;
  46. }
  47. GstPluginDesc gst_plugin_desc = {
  48. .major_version = 0,
  49. .minor_version = 10,
  50. .name = "dsp",
  51. .description = (gchar *) "Texas Instruments DSP elements",
  52. .plugin_init = plugin_init,
  53. .version = VERSION,
  54. .license = "LGPL",
  55. .source = "gst-dsp",
  56. .package = "none",
  57. .origin = "none",
  58. };