gsttriggercontrolsource.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /* GStreamer
  2. *
  3. * Copyright (C) 2007 Sebastian Dröge <[email protected]>
  4. * 2011 Stefan Sauer <[email protected]>
  5. *
  6. * gsttriggercontrolsource.h: Control source that provides some values at time-
  7. * stamps
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Library General Public
  11. * License as published by the Free Software Foundation; either
  12. * version 2 of the License, or (at your option) any later version.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Library General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Library General Public
  20. * License along with this library; if not, write to the
  21. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  22. * Boston, MA 02110-1301, USA.
  23. */
  24. #ifndef __GST_TRIGGER_CONTROL_SOURCE_H__
  25. #define __GST_TRIGGER_CONTROL_SOURCE_H__
  26. #include <glib-object.h>
  27. #include <gst/gst.h>
  28. #include <gst/controller/gsttimedvaluecontrolsource.h>
  29. G_BEGIN_DECLS
  30. #define GST_TYPE_TRIGGER_CONTROL_SOURCE \
  31. (gst_trigger_control_source_get_type ())
  32. #define GST_TRIGGER_CONTROL_SOURCE(obj) \
  33. (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_TRIGGER_CONTROL_SOURCE, GstTriggerControlSource))
  34. #define GST_TRIGGER_CONTROL_SOURCE_CLASS(vtable) \
  35. (G_TYPE_CHECK_CLASS_CAST ((vtable), GST_TYPE_TRIGGER_CONTROL_SOURCE, GstTriggerControlSourceClass))
  36. #define GST_IS_TRIGGER_CONTROL_SOURCE(obj) \
  37. (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TRIGGER_CONTROL_SOURCE))
  38. #define GST_IS_TRIGGER_CONTROL_SOURCE_CLASS(vtable) \
  39. (G_TYPE_CHECK_CLASS_TYPE ((vtable), GST_TYPE_TRIGGER_CONTROL_SOURCE))
  40. #define GST_TRIGGER_CONTROL_SOURCE_GET_CLASS(inst) \
  41. (G_TYPE_INSTANCE_GET_CLASS ((inst), GST_TYPE_TRIGGER_CONTROL_SOURCE, GstTriggerControlSourceClass))
  42. #define GST_TYPE_TRIGGER_WAVEFORM (gst_trigger_waveform_get_type ())
  43. typedef struct _GstTriggerControlSource GstTriggerControlSource;
  44. typedef struct _GstTriggerControlSourceClass GstTriggerControlSourceClass;
  45. typedef struct _GstTriggerControlSourcePrivate GstTriggerControlSourcePrivate;
  46. /**
  47. * GstTriggerControlSource:
  48. *
  49. * The instance structure of #GstControlSource.
  50. */
  51. struct _GstTriggerControlSource {
  52. GstTimedValueControlSource parent;
  53. /*< private >*/
  54. GstTriggerControlSourcePrivate *priv;
  55. gpointer _gst_reserved[GST_PADDING];
  56. };
  57. struct _GstTriggerControlSourceClass {
  58. GstTimedValueControlSourceClass parent_class;
  59. /*< private >*/
  60. gpointer _gst_reserved[GST_PADDING];
  61. };
  62. GType gst_trigger_control_source_get_type (void);
  63. /* Functions */
  64. GstControlSource *gst_trigger_control_source_new (void);
  65. G_END_DECLS
  66. #endif /* __GST_TRIGGER_CONTROL_SOURCE_H__ */