-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
38 lines (32 loc) · 951 Bytes
/
main.cpp
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
//License: MIT, (c) Oleksiy Zakharov, 2016, [email protected]
#include "ui/mainwindow.h"
#include <QApplication>
#include <QDebug>
#include <QStringList>
#include "devicing/v4l2device.h"
#include "video/videooutfile.h"
int main(int argc, char *argv[])
{
QCoreApplication::setOrganizationName("pasteover.net");
QCoreApplication::setOrganizationDomain("pasteover.net");
QCoreApplication::setApplicationName("QtCamPP");
QApplication a(argc, argv);
VideoOutFile::initVideoLibsOnce();
MainWindow w;
w.show();
return a.exec();
// auto list = v4l2device::list_attached_devices();
// if (list.size())
// {
// auto dev = list.at(0).open();
// if (dev)
// {
// auto controls = dev->listControls();
// for (const auto& c : controls)
// {
// qDebug()<<c.name;
// }
// }
// }
// return 0;
}