File indexing completed on 2025-01-05 03:58:16

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2017-05-25
0007  * Description : a stand alone tool to slide a video file.
0008  *
0009  * SPDX-FileCopyrightText: 2017-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 // Qt includes
0016 
0017 #include <QApplication>
0018 #include <QUrl>
0019 
0020 // Local includes
0021 
0022 #include "slidevideo.h"
0023 #include "digikam_debug.h"
0024 
0025 using namespace Digikam;
0026 
0027 int main(int argc, char* argv[])
0028 {
0029     QApplication a(argc, argv);
0030 
0031     if (argc == 1)
0032     {
0033         qCDebug(DIGIKAM_TESTS_LOG) << "player - video file to slide";
0034         qCDebug(DIGIKAM_TESTS_LOG) << "Usage: video file";
0035 
0036         return -1;
0037     }
0038 
0039     SlideVideo player(nullptr);
0040     player.setCurrentUrl(QUrl::fromLocalFile(QString::fromUtf8(argv[1])));
0041     player.showIndicator(true);
0042     player.show();
0043     player.resize(800, 600);
0044 
0045     return a.exec();
0046 }