-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.cpp
24 lines (21 loc) · 974 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
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QtQml>
#include "NullVideoFilter.h"
#include "GreyScaleVideoFilter.h"
#include "ShowCornersVideoFilter.h"
#include "BlueToRedVideoFilter.h"
#include "CaptureVideoFilter.h"
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute( Qt::AA_EnableHighDpiScaling );
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
qmlRegisterType< NullVideoFilter >("MyVideoFilterLib", 1, 0, "NullVideoFilter" );
qmlRegisterType< GreyScaleVideoFilter >("MyVideoFilterLib", 1, 0, "GreyScaleVideoFilter" );
qmlRegisterType< CaptureVideoFilter >("MyVideoFilterLib", 1, 0, "CaptureVideoFilter" );
qmlRegisterType< ShowCornersVideoFilter >("MyVideoFilterLib", 1, 0, "ShowCornersVideoFilter" );
qmlRegisterType< BlueToRedVideoFilter >("MyVideoFilterLib", 1, 0, "BlueToRedVideoFilter" );
engine.load( QUrl( QLatin1String( "qrc:/main.qml" ) ) );
return app.exec();
}