colorbalancechannel.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /* GStreamer Color Balance
  2. * Copyright (C) 2003 Ronald Bultje <[email protected]>
  3. *
  4. * colorbalancechannel.h: individual channel object
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Library General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Library General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Library General Public
  17. * License along with this library; if not, write to the
  18. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  19. * Boston, MA 02110-1301, USA.
  20. */
  21. #ifndef __GST_COLOR_BALANCE_CHANNEL_H__
  22. #define __GST_COLOR_BALANCE_CHANNEL_H__
  23. #include <gst/gst.h>
  24. G_BEGIN_DECLS
  25. #define GST_TYPE_COLOR_BALANCE_CHANNEL \
  26. (gst_color_balance_channel_get_type ())
  27. #define GST_COLOR_BALANCE_CHANNEL(obj) \
  28. (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_COLOR_BALANCE_CHANNEL, \
  29. GstColorBalanceChannel))
  30. #define GST_COLOR_BALANCE_CHANNEL_CLASS(klass) \
  31. (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_COLOR_BALANCE_CHANNEL, \
  32. GstColorBalanceChannelClass))
  33. #define GST_IS_COLOR_BALANCE_CHANNEL(obj) \
  34. (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_COLOR_BALANCE_CHANNEL))
  35. #define GST_IS_COLOR_BALANCE_CHANNEL_CLASS(klass) \
  36. (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_COLOR_BALANCE_CHANNEL))
  37. typedef struct _GstColorBalanceChannel GstColorBalanceChannel;
  38. typedef struct _GstColorBalanceChannelClass GstColorBalanceChannelClass;
  39. /**
  40. * GstColorBalanceChannel:
  41. * @label: A string containing a descriptive name for this channel
  42. * @min_value: The minimum valid value for this channel.
  43. * @max_value: The maximum valid value for this channel.
  44. */
  45. struct _GstColorBalanceChannel {
  46. GObject parent;
  47. /*< public >*/
  48. gchar *label;
  49. gint min_value;
  50. gint max_value;
  51. /*< private >*/
  52. gpointer _gst_reserved[GST_PADDING];
  53. };
  54. /**
  55. * GstColorBalanceChannelClass:
  56. * @parent: the parent class
  57. * @value_changed: default handler for value changed notification
  58. *
  59. * Color-balance channel class.
  60. */
  61. struct _GstColorBalanceChannelClass {
  62. GObjectClass parent;
  63. /* signals */
  64. void (* value_changed) (GstColorBalanceChannel *channel,
  65. gint value);
  66. /*< private >*/
  67. gpointer _gst_reserved[GST_PADDING];
  68. };
  69. GType gst_color_balance_channel_get_type (void);
  70. G_END_DECLS
  71. #endif /* __GST_COLOR_BALANCE_CHANNEL_H__ */