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 */ |