1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/fsfzp888-UVCCapture

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
main.cpp 966
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
fsfzp888 Отправлено 15.07.2022 15:14 909700a
/*
* Copyright (c) 2020-2022 https://gitee.com/fsfzp888/UVCCapture
* All rights reserved
*/
#include <QApplication>
#include <QTranslator>
#include <iostream>
#include "Logger.h"
#include "WebcamWindow.h"
#pragma comment(lib, "strmiids.lib")
#pragma comment(lib, "strmbase.lib")
int main(int argc, char *argv[])
{
logger_initFileLogger("run.log", 1024 * 1024, 5);
logger_setLevel(LogLevel_DEBUG);
LOG_INFO("Camera application start.");
std::locale loc = std::locale::global(std::locale(""));
QApplication app(argc, argv);
QString pluginPath = app.applicationDirPath() + "/plugins";
app.addLibraryPath(pluginPath);
app.setWindowIcon(QIcon(":app_icon.jpg"));
QTranslator translator;
translator.load("translation/zh.qm");
app.installTranslator(&translator);
WebcamWindow window;
window.show();
int res = app.exec();
std::locale::global(loc);
LOG_INFO("Camera application exit.");
return res;
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/fsfzp888-UVCCapture.git
git@api.gitlife.ru:oschina-mirror/fsfzp888-UVCCapture.git
oschina-mirror
fsfzp888-UVCCapture
fsfzp888-UVCCapture
master