DLSS 5 Neural Rendering for Images & Video with Frame Generation, RTX Video Super Resolution, HDR, and Color Grading
TypeScript ai-upscalingdlssdlss-5dlss5dlssgframe-generationframe-interpolationimage-enhancementimage-upscalingneural-renderingnvidianvidia-dlss-5nvidia-rtxrtx-videortx-video-super-resolutionvideo-enhancementvideo-upscaling
#include "cli.hpp"
#include "infrastructure/paths.hpp"
#include "infrastructure/windows_runtime.hpp"
#include <QGuiApplication>
#include <cstdio>
#include <exception>
#include <windows.h>
#include <shellapi.h>
int main(int argc, char** argv) {
// Qt consumes its own --style option. Preserve the application's arguments
// before constructing QGuiApplication, including Unicode Windows paths.
int originalCount = 0;
auto** original = CommandLineToArgvW(GetCommandLineW(), &originalCount);
QStringList arguments;
for (int index = 1; original && index < originalCount; ++index)
arguments.append(QString::fromWCharArray(original[index]));
LocalFree(original);
try {
ve::configureWindowsRuntime();
} catch (const std::exception& error) {
std::fprintf(stderr, "Error: %s\n", error.what());
return 1;
}
qputenv("QT_QPA_PLATFORM", "offscreen");
qputenv("QT_MEDIA_BACKEND", "ffmpeg");
QCoreApplication::setOrganizationName("Merserk");
QCoreApplication::setApplicationName("Visual Enhancer");
QGuiApplication app(argc, argv);
app.setApplicationName("Visual Enhancer");
app.setApplicationDisplayName("Visual Enhancer CLI");
app.setOrganizationName("Merserk");
app.setApplicationVersion(VE_APP_VERSION);
try {
ve::Paths::instance().prepare();
} catch (const std::exception& error) {
std::fprintf(stderr, "Error: %s\n", error.what());
return 1;
}
return ve::runCli(arguments);
}