| 1 | /* GStreamer Color Balance | 
| 2 |  * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net> | 
| 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 |  | 
| 22 | #ifndef __GST_COLOR_BALANCE_CHANNEL_H__ | 
| 23 | #define __GST_COLOR_BALANCE_CHANNEL_H__ | 
| 24 |  | 
| 25 | #include <gst/gst.h> | 
| 26 | #include <gst/video/video-prelude.h> | 
| 27 |  | 
| 28 | G_BEGIN_DECLS | 
| 29 |  | 
| 30 | #define GST_TYPE_COLOR_BALANCE_CHANNEL \ | 
| 31 |   (gst_color_balance_channel_get_type ()) | 
| 32 | #define GST_COLOR_BALANCE_CHANNEL(obj) \ | 
| 33 |   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_COLOR_BALANCE_CHANNEL, \ | 
| 34 |                                GstColorBalanceChannel)) | 
| 35 | #define GST_COLOR_BALANCE_CHANNEL_CLASS(klass) \ | 
| 36 |   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_COLOR_BALANCE_CHANNEL, \ | 
| 37 |                             GstColorBalanceChannelClass)) | 
| 38 | #define GST_IS_COLOR_BALANCE_CHANNEL(obj) \ | 
| 39 |   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_COLOR_BALANCE_CHANNEL)) | 
| 40 | #define GST_IS_COLOR_BALANCE_CHANNEL_CLASS(klass) \ | 
| 41 |   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_COLOR_BALANCE_CHANNEL)) | 
| 42 |  | 
| 43 | typedef struct _GstColorBalanceChannel GstColorBalanceChannel; | 
| 44 | typedef struct _GstColorBalanceChannelClass GstColorBalanceChannelClass; | 
| 45 |  | 
| 46 | /** | 
| 47 |  * GstColorBalanceChannel: | 
| 48 |  * @label: A string containing a descriptive name for this channel | 
| 49 |  * @min_value: The minimum valid value for this channel. | 
| 50 |  * @max_value: The maximum valid value for this channel. | 
| 51 |  */ | 
| 52 | struct _GstColorBalanceChannel { | 
| 53 |   GObject parent; | 
| 54 |  | 
| 55 |   /*< public >*/ | 
| 56 |   gchar  *label; | 
| 57 |   gint    min_value; | 
| 58 |   gint    max_value; | 
| 59 |  | 
| 60 |   /*< private >*/ | 
| 61 |   gpointer _gst_reserved[GST_PADDING]; | 
| 62 | }; | 
| 63 |  | 
| 64 | /** | 
| 65 |  * GstColorBalanceChannelClass: | 
| 66 |  * @parent: the parent class | 
| 67 |  * @value_changed: default handler for value changed notification | 
| 68 |  * | 
| 69 |  * Color-balance channel class. | 
| 70 |  */ | 
| 71 | struct _GstColorBalanceChannelClass { | 
| 72 |   GObjectClass parent; | 
| 73 |  | 
| 74 |   /* signals */ | 
| 75 |   void (* value_changed) (GstColorBalanceChannel *channel, | 
| 76 |                           gint                    value); | 
| 77 |  | 
| 78 |   /*< private >*/ | 
| 79 |   gpointer _gst_reserved[GST_PADDING]; | 
| 80 | }; | 
| 81 |  | 
| 82 | GST_VIDEO_API | 
| 83 | GType   gst_color_balance_channel_get_type (void); | 
| 84 |  | 
| 85 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstColorBalanceChannel, gst_object_unref) | 
| 86 |  | 
| 87 | G_END_DECLS | 
| 88 |  | 
| 89 | #endif /* __GST_COLOR_BALANCE_CHANNEL_H__ */ | 
| 90 |  |