gst_plugins_base/gst-libs/gst/interfaces/colorbalance.h
branchRCL_3
changeset 29 567bb019e3e3
parent 0 0e761a78d257
child 30 7e817e7e631c
equal deleted inserted replaced
6:9b2c3c7a1a9c 29:567bb019e3e3
    44   (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_COLOR_BALANCE, GstColorBalanceClass))
    44   (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_COLOR_BALANCE, GstColorBalanceClass))
    45   
    45   
    46 #define GST_COLOR_BALANCE_TYPE(klass) (klass->balance_type)
    46 #define GST_COLOR_BALANCE_TYPE(klass) (klass->balance_type)
    47 
    47 
    48 typedef struct _GstColorBalance GstColorBalance;
    48 typedef struct _GstColorBalance GstColorBalance;
       
    49 typedef struct _GstColorBalanceClass GstColorBalanceClass;
    49   
    50   
       
    51 /**
       
    52  * GstColorBalanceType:
       
    53  * @GST_COLOR_BALANCE_HARDWARE: Color balance is implemented with dedicated
       
    54  *         hardware.
       
    55  * @GST_COLOR_BALANCE_SOFTWARE: Color balance is implemented via software
       
    56  *         processing.
       
    57  * 
       
    58  * An enumeration indicating whether an element implements color balancing
       
    59  * operations in software or in dedicated hardware. In general, dedicated
       
    60  * hardware implementations (such as those provided by xvimagesink) are
       
    61  * preferred.
       
    62  */
    50 typedef enum
    63 typedef enum
    51 {
    64 {
    52   GST_COLOR_BALANCE_HARDWARE,
    65   GST_COLOR_BALANCE_HARDWARE,
    53   GST_COLOR_BALANCE_SOFTWARE
    66   GST_COLOR_BALANCE_SOFTWARE
    54 } GstColorBalanceType;
    67 } GstColorBalanceType;
    55 
    68 
    56 typedef struct _GstColorBalanceClass {
    69 struct _GstColorBalanceClass {
    57   GTypeInterface klass;
    70   GTypeInterface klass;
    58 
    71 
    59   GstColorBalanceType balance_type;
    72   GstColorBalanceType balance_type;
    60   
    73   
    61   /* virtual functions */
    74   /* virtual functions */
    71   void (* value_changed) (GstColorBalance        *balance,
    84   void (* value_changed) (GstColorBalance        *balance,
    72                           GstColorBalanceChannel *channel,
    85                           GstColorBalanceChannel *channel,
    73                           gint                    value);
    86                           gint                    value);
    74 
    87 
    75   gpointer _gst_reserved[GST_PADDING];
    88   gpointer _gst_reserved[GST_PADDING];
    76 } GstColorBalanceClass;
    89 };
    77 #ifdef __SYMBIAN32__
    90 #ifdef __SYMBIAN32__
    78 IMPORT_C
    91 IMPORT_C
    79 #endif
    92 #endif
    80 
    93 
    81 
    94 
    99 IMPORT_C
   112 IMPORT_C
   100 #endif
   113 #endif
   101 
   114 
   102 gint    gst_color_balance_get_value     (GstColorBalance        *balance,
   115 gint    gst_color_balance_get_value     (GstColorBalance        *balance,
   103                                          GstColorBalanceChannel *channel);
   116                                          GstColorBalanceChannel *channel);
       
   117 #ifdef __SYMBIAN32__
       
   118 IMPORT_C
       
   119 #endif
       
   120 
       
   121 GstColorBalanceType
       
   122         gst_color_balance_get_balance_type (GstColorBalance        *balance);
   104 
   123 
   105 /* trigger signal */
   124 /* trigger signal */
   106 #ifdef __SYMBIAN32__
   125 #ifdef __SYMBIAN32__
   107 IMPORT_C
   126 IMPORT_C
   108 #endif
   127 #endif