12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
54
55
56
57
58QCameraFormat::QCameraFormat()
noexcept =
default;
61
62
63QCameraFormat::QCameraFormat(
const QCameraFormat &other)
noexcept =
default;
66
67
68QCameraFormat &QCameraFormat::operator=(
const QCameraFormat &other)
noexcept =
default;
71
72
73QCameraFormat::~QCameraFormat() =
default;
76
77
78
81
82
83
84
85
86
87
88
89
92
93
94
95
96
97
98
99
100
101QVideoFrameFormat::PixelFormat QCameraFormat::pixelFormat()
const noexcept
103 return d ? d->pixelFormat : QVideoFrameFormat::Format_Invalid;
107
108
109
110
113
114
115
116
117QSize QCameraFormat::resolution()
const noexcept
119 return d ? d->resolution : QSize();
123
124
125
126
129
130
131
132
133float QCameraFormat::minFrameRate()
const noexcept
135 return d ? d->minFrameRate : 0;
139
140
141
142
143
144
145
148
149
150
151
152
153
154
155float QCameraFormat::maxFrameRate()
const noexcept
157 return d ? d->maxFrameRate : 0;
161
162
163QCameraFormat::QCameraFormat(QCameraFormatPrivate *p)
169
170
171bool QCameraFormat::operator==(
const QCameraFormat &other)
const
177 return d->pixelFormat == other.d->pixelFormat &&
178 d->minFrameRate == other.d->minFrameRate &&
179 d->maxFrameRate == other.d->maxFrameRate &&
180 d->resolution == other.d->resolution;
184
185
186
187
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
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
259
260
261QCameraDevice::QCameraDevice() =
default;
264
265
266QCameraDevice::QCameraDevice(
const QCameraDevice &other) =
default;
269
270
271QCameraDevice::~QCameraDevice() =
default;
274
275
276bool QCameraDevice::operator==(
const QCameraDevice &other)
const
278 return id() == other.id();
282
283
284bool QCameraDevice::isNull()
const
290
291
292
293
294
295
298
299
300
301
302
303
304QByteArray QCameraDevice::id()
const
306 return d ? d->id : QByteArray();
310
311
312
313
316
317
318
319
320bool QCameraDevice::isDefault()
const
322 return d ? d->isDefault :
false;
326
327
328
329
330
331
332
333
334
335
336
337
340
341
342
343
344
345
346
347
348
349
350
351
352QtVideo::Rotation QCameraDevice::correctionAngle()
const
354 return d ? QtVideo::Rotation(d->orientation) : QtVideo::Rotation::None;
358
359
360
361
362
363
366
367
368
369
370
371
372QString QCameraDevice::description()
const
374 return d ? d->description : QString();
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
414
415
416
417
418QCameraDevice::Position QCameraDevice::position()
const
420 return d ? d->position : QCameraDevice::UnspecifiedPosition;
424
425
426
427
428
429QList<QSize> QCameraDevice::photoResolutions()
const
431 return d ? d->photoResolutions : QList<QSize>{};
435
436
437
438
441
442
443
444
445QList<QCameraFormat> QCameraDevice::videoFormats()
const
447 return d ? d->videoFormats : QList<QCameraFormat>{};
450QCameraDevice::QCameraDevice(QCameraDevicePrivate *p)
455
456
457QCameraDevice& QCameraDevice::operator=(
const QCameraDevice& other) =
default;
460
461
462
463
465#ifndef QT_NO_DEBUG_STREAM
468 d.maybeSpace() << QStringLiteral(
"QCameraDevice(name=%1, id=%2, position=%3)")
469 .arg(camera.description())
470 .arg(QLatin1StringView(camera.id()))
471 .arg(QLatin1StringView(
472 QMetaEnum::fromType<QCameraDevice::Position>().valueToKey(
473 camera.position())));
480#include "moc_qcameradevice.cpp"
QDebug operator<<(QDebug d, const QCameraDevice &camera)