/
qcameraimageprocessingcontrol.go
304 lines (246 loc) · 10.6 KB
/
qcameraimageprocessingcontrol.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
package qtmultimedia
// /usr/include/qt/QtMultimedia/qcameraimageprocessingcontrol.h
// #include <qcameraimageprocessingcontrol.h>
// #include <QtMultimedia>
// header block end
// main block begin
// main block end
// use block begin
// use block end
// ext block begin
/*
#include <stdlib.h>
// extern C begin: 15
*/
// import "C"
import "unsafe"
import "reflect"
import "fmt"
import "log"
import "github.com/kitech/qt.go/qtrt"
import "github.com/kitech/qt.go/qtcore"
import "github.com/kitech/qt.go/qtgui"
import "github.com/kitech/qt.go/qtnetwork"
// ext block end
// body block begin
/*
*/
type QCameraImageProcessingControl struct {
*QMediaControl
}
type QCameraImageProcessingControl_ITF interface {
QMediaControl_ITF
QCameraImageProcessingControl_PTR() *QCameraImageProcessingControl
}
func (ptr *QCameraImageProcessingControl) QCameraImageProcessingControl_PTR() *QCameraImageProcessingControl {
return ptr
}
func (this *QCameraImageProcessingControl) GetCthis() unsafe.Pointer {
if this == nil {
return nil
} else {
return this.QMediaControl.GetCthis()
}
}
func (this *QCameraImageProcessingControl) SetCthis(cthis unsafe.Pointer) {
this.QMediaControl = NewQMediaControlFromPointer(cthis)
}
func NewQCameraImageProcessingControlFromPointer(cthis unsafe.Pointer) *QCameraImageProcessingControl {
bcthis0 := NewQMediaControlFromPointer(cthis)
return &QCameraImageProcessingControl{bcthis0}
}
func (*QCameraImageProcessingControl) NewFromPointer(cthis unsafe.Pointer) *QCameraImageProcessingControl {
return NewQCameraImageProcessingControlFromPointer(cthis)
}
// /usr/include/qt/QtMultimedia/qcameraimageprocessingcontrol.h:56
// index:0
// Public virtual Visibility=Default Availability=Available
// [8] const QMetaObject * metaObject() const
/*
*/
func (this *QCameraImageProcessingControl) MetaObject() *qtcore.QMetaObject /*777 const QMetaObject **/ {
rv, err := qtrt.InvokeQtFunc6("_ZNK29QCameraImageProcessingControl10metaObjectEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
return qtcore.NewQMetaObjectFromPointer(unsafe.Pointer(uintptr(rv))) // 444
}
// /usr/include/qt/QtMultimedia/qcameraimageprocessingcontrol.h:60
// index:0
// Public virtual Visibility=Default Availability=Available
// [-2] void ~QCameraImageProcessingControl()
/*
*/
func DeleteQCameraImageProcessingControl(this *QCameraImageProcessingControl) {
rv, err := qtrt.InvokeQtFunc6("_ZN29QCameraImageProcessingControlD2Ev", qtrt.FFI_TYPE_VOID, this.GetCthis())
qtrt.Cmemset(this.GetCthis(), 9, 24)
qtrt.ErrPrint(err, rv)
this.SetCthis(nil)
}
// /usr/include/qt/QtMultimedia/qcameraimageprocessingcontrol.h:79
// index:0
// Public purevirtual virtual Visibility=Default Availability=Available
// [1] bool isParameterSupported(QCameraImageProcessingControl::ProcessingParameter) const
/*
Returns true if the camera supports adjusting image processing parameter.
Usually the supported setting is static, but some parameters may not be available depending on other camera settings, like presets. In such case the currently supported parameters should be returned.
*/
func (this *QCameraImageProcessingControl) IsParameterSupported(arg0 int) bool {
rv, err := qtrt.InvokeQtFunc6("_ZNK29QCameraImageProcessingControl20isParameterSupportedENS_19ProcessingParameterE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtMultimedia/qcameraimageprocessingcontrol.h:80
// index:0
// Public purevirtual virtual Visibility=Default Availability=Available
// [1] bool isParameterValueSupported(QCameraImageProcessingControl::ProcessingParameter, const QVariant &) const
/*
Returns true if the camera supports setting the image processing parameter value.
It's used only for parameters with a limited set of values, like WhiteBalancePreset.
*/
func (this *QCameraImageProcessingControl) IsParameterValueSupported(parameter int, value qtcore.QVariant_ITF) bool {
var convArg1 unsafe.Pointer
if value != nil && value.QVariant_PTR() != nil {
convArg1 = value.QVariant_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK29QCameraImageProcessingControl25isParameterValueSupportedENS_19ProcessingParameterERK8QVariant", qtrt.FFI_TYPE_POINTER, this.GetCthis(), parameter, convArg1)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtMultimedia/qcameraimageprocessingcontrol.h:81
// index:0
// Public purevirtual virtual Visibility=Default Availability=Available
// [16] QVariant parameter(QCameraImageProcessingControl::ProcessingParameter) const
/*
Returns the image processing parameter value.
See also setParameter().
*/
func (this *QCameraImageProcessingControl) Parameter(parameter int) *qtcore.QVariant /*123*/ {
rv, err := qtrt.InvokeQtFunc6("_ZNK29QCameraImageProcessingControl9parameterENS_19ProcessingParameterE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), parameter)
qtrt.ErrPrint(err, rv)
rv2 := qtcore.NewQVariantFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQVariant)
return rv2
}
// /usr/include/qt/QtMultimedia/qcameraimageprocessingcontrol.h:82
// index:0
// Public purevirtual virtual Visibility=Default Availability=Available
// [-2] void setParameter(QCameraImageProcessingControl::ProcessingParameter, const QVariant &)
/*
Sets the image processing parameter value. Passing the null or invalid QVariant value allows backend to choose the suitable parameter value.
The valid values range depends on the parameter type. For WhiteBalancePreset the value should be one of QCameraImageProcessing::WhiteBalanceMode values; for Contrast, Saturation, Brightness, Sharpening and Denoising the value should be in [0..1.0] range with invalid QVariant value indicating the default parameter value; for ContrastAdjustment, SaturationAdjustment, BrightnessAdjustment, SharpeningAdjustment and DenoisingAdjustment the value should be in [-1.0..1.0] range with default 0.
See also parameter().
*/
func (this *QCameraImageProcessingControl) SetParameter(parameter int, value qtcore.QVariant_ITF) {
var convArg1 unsafe.Pointer
if value != nil && value.QVariant_PTR() != nil {
convArg1 = value.QVariant_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZN29QCameraImageProcessingControl12setParameterENS_19ProcessingParameterERK8QVariant", qtrt.FFI_TYPE_POINTER, this.GetCthis(), parameter, convArg1)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtMultimedia/qcameraimageprocessingcontrol.h:85
// index:0
// Protected Visibility=Default Availability=Available
// [-2] void QCameraImageProcessingControl(QObject *)
/*
Constructs an image processing control object with parent.
*/
func (*QCameraImageProcessingControl) NewForInherit(parent qtcore.QObject_ITF /*777 QObject **/) *QCameraImageProcessingControl {
return NewQCameraImageProcessingControl(parent)
}
func NewQCameraImageProcessingControl(parent qtcore.QObject_ITF /*777 QObject **/) *QCameraImageProcessingControl {
var convArg0 unsafe.Pointer
if parent != nil && parent.QObject_PTR() != nil {
convArg0 = parent.QObject_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZN29QCameraImageProcessingControlC2EP7QObject", qtrt.FFI_TYPE_POINTER, convArg0)
qtrt.ErrPrint(err, rv)
gothis := NewQCameraImageProcessingControlFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.ConnectDestroyed(gothis, "QCameraImageProcessingControl")
return gothis
}
// /usr/include/qt/QtMultimedia/qcameraimageprocessingcontrol.h:85
// index:0
// Protected Visibility=Default Availability=Available
// [-2] void QCameraImageProcessingControl(QObject *)
/*
Constructs an image processing control object with parent.
*/
func (*QCameraImageProcessingControl) NewForInheritp() *QCameraImageProcessingControl {
return NewQCameraImageProcessingControlp()
}
func NewQCameraImageProcessingControlp() *QCameraImageProcessingControl {
// arg: 0, QObject *=Pointer, QObject=Record, , Invalid
var convArg0 unsafe.Pointer
rv, err := qtrt.InvokeQtFunc6("_ZN29QCameraImageProcessingControlC2EP7QObject", qtrt.FFI_TYPE_POINTER, convArg0)
qtrt.ErrPrint(err, rv)
gothis := NewQCameraImageProcessingControlFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.ConnectDestroyed(gothis, "QCameraImageProcessingControl")
return gothis
}
/*
*/
type QCameraImageProcessingControl__ProcessingParameter = int
// The white balance preset.
const QCameraImageProcessingControl__WhiteBalancePreset QCameraImageProcessingControl__ProcessingParameter = 0
// Color temperature in K. This value is used when the manual white balance mode is selected.
const QCameraImageProcessingControl__ColorTemperature QCameraImageProcessingControl__ProcessingParameter = 1
// Image contrast.
const QCameraImageProcessingControl__Contrast QCameraImageProcessingControl__ProcessingParameter = 2
// Image saturation.
const QCameraImageProcessingControl__Saturation QCameraImageProcessingControl__ProcessingParameter = 3
// Image brightness.
const QCameraImageProcessingControl__Brightness QCameraImageProcessingControl__ProcessingParameter = 4
// Amount of sharpening applied.
const QCameraImageProcessingControl__Sharpening QCameraImageProcessingControl__ProcessingParameter = 5
// Amount of denoising applied.
const QCameraImageProcessingControl__Denoising QCameraImageProcessingControl__ProcessingParameter = 6
// Image contrast adjustment.
const QCameraImageProcessingControl__ContrastAdjustment QCameraImageProcessingControl__ProcessingParameter = 7
// Image saturation adjustment.
const QCameraImageProcessingControl__SaturationAdjustment QCameraImageProcessingControl__ProcessingParameter = 8
// Image brightness adjustment.
const QCameraImageProcessingControl__BrightnessAdjustment QCameraImageProcessingControl__ProcessingParameter = 9
//
const QCameraImageProcessingControl__SharpeningAdjustment QCameraImageProcessingControl__ProcessingParameter = 10
//
const QCameraImageProcessingControl__DenoisingAdjustment QCameraImageProcessingControl__ProcessingParameter = 11
//
const QCameraImageProcessingControl__ColorFilter QCameraImageProcessingControl__ProcessingParameter = 12
//
const QCameraImageProcessingControl__ExtendedParameter QCameraImageProcessingControl__ProcessingParameter = 1000
func (this *QCameraImageProcessingControl) ProcessingParameterItemName(val int) string {
return qtrt.GetClassEnumItemName(this, val)
}
func QCameraImageProcessingControl_ProcessingParameterItemName(val int) string {
var nilthis *QCameraImageProcessingControl
return nilthis.ProcessingParameterItemName(val)
}
// body block end
// keep block begin
func init_unused_11829() {
if false {
reflect.TypeOf(123)
}
if false {
reflect.TypeOf(unsafe.Sizeof(0))
}
if false {
fmt.Println(123)
}
if false {
log.Println(123)
}
if false {
qtrt.KeepMe()
}
if false {
qtcore.KeepMe()
}
if false {
qtgui.KeepMe()
}
if false {
qtnetwork.KeepMe()
}
}
// keep block end