gst_plugins_base/gst-libs/gst/interfaces/colorbalance.h
changeset 0 0e761a78d257
child 8 4a7fac7dd34a
equal deleted inserted replaced
-1:000000000000 0:0e761a78d257
       
     1 /* GStreamer Color Balance
       
     2  * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
       
     3  *
       
     4  * color-balance.h: image color balance interface design
       
     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., 59 Temple Place - Suite 330,
       
    19  * Boston, MA 02111-1307, USA.
       
    20  */
       
    21 
       
    22 #ifndef __GST_COLOR_BALANCE_H__
       
    23 #define __GST_COLOR_BALANCE_H__
       
    24 
       
    25 #include <gst/gst.h>
       
    26 #include <gst/interfaces/colorbalancechannel.h>
       
    27 #include <gst/interfaces/interfaces-enumtypes.h>
       
    28 
       
    29 G_BEGIN_DECLS
       
    30 
       
    31 #define GST_TYPE_COLOR_BALANCE \
       
    32   (gst_color_balance_get_type ())
       
    33 #define GST_COLOR_BALANCE(obj) \
       
    34   (GST_IMPLEMENTS_INTERFACE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_COLOR_BALANCE, \
       
    35                                                  GstColorBalance))
       
    36 #define GST_COLOR_BALANCE_CLASS(klass) \
       
    37   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_COLOR_BALANCE, \
       
    38                             GstColorBalanceClass))
       
    39 #define GST_IS_COLOR_BALANCE(obj) \
       
    40   (GST_IMPLEMENTS_INTERFACE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_COLOR_BALANCE))
       
    41 #define GST_IS_COLOR_BALANCE_CLASS(klass) \
       
    42   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_COLOR_BALANCE))
       
    43 #define GST_COLOR_BALANCE_GET_CLASS(inst) \
       
    44   (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_COLOR_BALANCE, GstColorBalanceClass))
       
    45   
       
    46 #define GST_COLOR_BALANCE_TYPE(klass) (klass->balance_type)
       
    47 
       
    48 typedef struct _GstColorBalance GstColorBalance;
       
    49   
       
    50 typedef enum
       
    51 {
       
    52   GST_COLOR_BALANCE_HARDWARE,
       
    53   GST_COLOR_BALANCE_SOFTWARE
       
    54 } GstColorBalanceType;
       
    55 
       
    56 typedef struct _GstColorBalanceClass {
       
    57   GTypeInterface klass;
       
    58 
       
    59   GstColorBalanceType balance_type;
       
    60   
       
    61   /* virtual functions */
       
    62   const GList * (* list_channels) (GstColorBalance        *balance);
       
    63 
       
    64   void          (* set_value)     (GstColorBalance        *balance,
       
    65                                    GstColorBalanceChannel *channel,
       
    66                                    gint                    value);
       
    67   gint          (* get_value)     (GstColorBalance        *balance,
       
    68                                    GstColorBalanceChannel *channel);
       
    69 
       
    70   /* signals */
       
    71   void (* value_changed) (GstColorBalance        *balance,
       
    72                           GstColorBalanceChannel *channel,
       
    73                           gint                    value);
       
    74 
       
    75   gpointer _gst_reserved[GST_PADDING];
       
    76 } GstColorBalanceClass;
       
    77 #ifdef __SYMBIAN32__
       
    78 IMPORT_C
       
    79 #endif
       
    80 
       
    81 
       
    82 GType   gst_color_balance_get_type      (void);
       
    83 
       
    84 /* virtual class function wrappers */
       
    85 #ifdef __SYMBIAN32__
       
    86 IMPORT_C
       
    87 #endif
       
    88 
       
    89 const GList *
       
    90         gst_color_balance_list_channels (GstColorBalance        *balance);
       
    91 #ifdef __SYMBIAN32__
       
    92 IMPORT_C
       
    93 #endif
       
    94 
       
    95 void    gst_color_balance_set_value     (GstColorBalance        *balance,
       
    96                                          GstColorBalanceChannel *channel,
       
    97                                          gint                    value);
       
    98 #ifdef __SYMBIAN32__
       
    99 IMPORT_C
       
   100 #endif
       
   101 
       
   102 gint    gst_color_balance_get_value     (GstColorBalance        *balance,
       
   103                                          GstColorBalanceChannel *channel);
       
   104 
       
   105 /* trigger signal */
       
   106 #ifdef __SYMBIAN32__
       
   107 IMPORT_C
       
   108 #endif
       
   109 
       
   110 void    gst_color_balance_value_changed (GstColorBalance        *balance,
       
   111                                          GstColorBalanceChannel *channel,
       
   112                                          gint                    value);
       
   113 
       
   114 G_END_DECLS
       
   115 
       
   116 #endif /* __GST_COLOR_BALANCE_H__ */