gstargbcontrolbinding.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* GStreamer
  2. *
  3. * Copyright (C) 2011 Stefan Sauer <[email protected]>
  4. *
  5. * gstargbcontrolbinding.h: Attachment for multiple control sources to gargb
  6. * properties
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Library General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Library General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Library General Public
  19. * License along with this library; if not, write to the
  20. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  21. * Boston, MA 02110-1301, USA.
  22. */
  23. #ifndef __GST_ARGB_CONTROL_BINDING_H__
  24. #define __GST_ARGB_CONTROL_BINDING_H__
  25. #include <gst/gstconfig.h>
  26. #include <glib-object.h>
  27. #include <gst/gstcontrolsource.h>
  28. G_BEGIN_DECLS
  29. #define GST_TYPE_ARGB_CONTROL_BINDING \
  30. (gst_argb_control_binding_get_type())
  31. #define GST_ARGB_CONTROL_BINDING(obj) \
  32. (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ARGB_CONTROL_BINDING,GstARGBControlBinding))
  33. #define GST_ARGB_CONTROL_BINDING_CLASS(klass) \
  34. (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ARGB_CONTROL_BINDING,GstARGBControlBindingClass))
  35. #define GST_IS_ARGB_CONTROL_BINDING(obj) \
  36. (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ARGB_CONTROL_BINDING))
  37. #define GST_IS_ARGB_CONTROL_BINDING_CLASS(klass) \
  38. (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ARGB_CONTROL_BINDING))
  39. #define GST_ARGB_CONTROL_BINDING_GET_CLASS(obj) \
  40. (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_CONTOL_SOURCE, GstARGBControlBindingClass))
  41. typedef struct _GstARGBControlBinding GstARGBControlBinding;
  42. typedef struct _GstARGBControlBindingClass GstARGBControlBindingClass;
  43. /**
  44. * GstARGBControlBinding:
  45. * @name: name of the property of this binding
  46. *
  47. * The instance structure of #GstARGBControlBinding.
  48. */
  49. struct _GstARGBControlBinding {
  50. GstControlBinding parent;
  51. /*< private >*/
  52. GstControlSource *cs_a; /* GstControlSources for this property */
  53. GstControlSource *cs_r;
  54. GstControlSource *cs_g;
  55. GstControlSource *cs_b;
  56. GValue cur_value;
  57. guint32 last_value;
  58. gpointer _gst_reserved[GST_PADDING];
  59. };
  60. /**
  61. * GstARGBControlBindingClass:
  62. * @parent_class: Parent class
  63. * @convert: Class method to convert control-values
  64. *
  65. * The class structure of #GstARGBControlBinding.
  66. */
  67. struct _GstARGBControlBindingClass
  68. {
  69. GstControlBindingClass parent_class;
  70. /*< private >*/
  71. gpointer _gst_reserved[GST_PADDING];
  72. };
  73. GType gst_argb_control_binding_get_type (void);
  74. /* Functions */
  75. GstControlBinding * gst_argb_control_binding_new (GstObject * object, const gchar * property_name,
  76. GstControlSource * cs_a, GstControlSource * cs_r,
  77. GstControlSource * cs_g, GstControlSource * cs_b);
  78. G_END_DECLS
  79. #endif /* __GST_ARGB_CONTROL_BINDING_H__ */