plugin.c 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 "util.h"
  12. #include "gstdspdummy.h"
  13. #include "gstdspvdec.h"
  14. #include "gstdspadec.h"
  15. #include "gstdsph263enc.h"
  16. #include "gstdspjpegenc.h"
  17. #include "gstdsph264enc.h"
  18. #include "gstdspvpp.h"
  19. #include "gstdspipp.h"
  20. #include "gstdsphdmp4venc.h"
  21. #include "gstdspmp4venc.h"
  22. #include "gstdsphdh264enc.h"
  23. GstDebugCategory *gstdsp_debug;
  24. static gboolean
  25. plugin_init(GstPlugin *plugin)
  26. {
  27. #ifndef GST_DISABLE_GST_DEBUG
  28. gstdsp_debug = _gst_debug_category_new("dsp", 0, "DSP stuff");
  29. #endif
  30. if (!gst_element_register(plugin, "dspdummy", GST_RANK_NONE, GST_DSP_DUMMY_TYPE))
  31. return FALSE;
  32. if (!gst_element_register(plugin, "dspvdec", GST_RANK_PRIMARY + 1, GST_DSP_VDEC_TYPE))
  33. return FALSE;
  34. if (!gst_element_register(plugin, "dsph263enc", GST_RANK_PRIMARY + 1, GST_DSP_H263ENC_TYPE))
  35. return FALSE;
  36. if (!gst_element_register(plugin, "dspjpegenc", GST_RANK_PRIMARY + 1, GST_DSP_JPEGENC_TYPE))
  37. return FALSE;
  38. if (!gst_element_register(plugin, "dsph264enc", GST_RANK_PRIMARY + 1, GST_DSP_H264ENC_TYPE))
  39. return FALSE;
  40. if (!gst_element_register(plugin, "dspvpp", GST_RANK_PRIMARY, GST_DSP_VPP_TYPE))
  41. return FALSE;
  42. if (!gst_element_register(plugin, "dspipp", GST_RANK_PRIMARY + 1, GST_DSP_IPP_TYPE))
  43. return FALSE;
  44. if(sn_exist("m4vhdenc_sn.dll64P"))
  45. {
  46. if (!gst_element_register(plugin, "dspmp4venc", GST_RANK_PRIMARY + 1, GST_DSP_HD_MP4VENC_TYPE))
  47. return FALSE;
  48. }
  49. else
  50. {
  51. if (!gst_element_register(plugin, "dspmp4venc", GST_RANK_PRIMARY + 1, GST_DSP_MP4VENC_TYPE))
  52. return FALSE;
  53. }
  54. if(sn_exist("h264bpenc_sn.dll64P"))
  55. if (!gst_element_register(plugin, "dsphdh264enc", GST_RANK_SECONDARY, GST_DSP_HD_H264ENC_TYPE))
  56. return FALSE;
  57. return TRUE;
  58. }
  59. GstPluginDesc gst_plugin_desc = {
  60. .major_version = 0,
  61. .minor_version = 10,
  62. .name = "dsp",
  63. .description = (gchar *) "Texas Instruments DSP elements",
  64. .plugin_init = plugin_init,
  65. .version = VERSION,
  66. .license = "LGPL",
  67. .source = "gst-dsp",
  68. .package = "none",
  69. .origin = "none",
  70. };