author | Wuzzy <Wuzzy2@mail.ru> |
Mon, 03 Sep 2018 20:16:54 +0200 | |
changeset 13753 | 885404cdf07a |
parent 12268 | 2eedf9e0cd6d |
permissions | -rw-r--r-- |
7897 | 1 |
/* |
2 |
* Hedgewars, a free turn based strategy game |
|
11046 | 3 |
* Copyright (c) 2004-2015 Andrey Korotaev <unC0Rr@gmail.com> |
7897 | 4 |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
10108
c68cf030eded
update FSF address. note: two sdl include files (by Sam Lantinga) still have the old FSF address in their copyright - but I ain't gonna touch their copyright headers
sheepluva
parents:
9998
diff
changeset
|
16 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
7897 | 17 |
*/ |
18 |
||
9429
7a97a554ac80
libavinteraction: fix typo and and compiling with modern libav
koda
parents:
9080
diff
changeset
|
19 |
#ifndef LIBAV_INTERACTION |
7a97a554ac80
libavinteraction: fix typo and and compiling with modern libav
koda
parents:
9080
diff
changeset
|
20 |
#define LIBAV_INTERACTION |
7897 | 21 |
|
22 |
#include <QComboBox> |
|
23 |
||
24 |
/** |
|
25 |
* @brief Class for interacting with ffmpeg/libav libraries |
|
26 |
* |
|
12268
2eedf9e0cd6d
Replace some HTTP links with HTTPS links
Wuzzy <almikes@aol.com>
parents:
11046
diff
changeset
|
27 |
* @see <a href="https://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a> |
7897 | 28 |
*/ |
29 |
class LibavInteraction : public QObject |
|
30 |
{ |
|
31 |
Q_OBJECT; |
|
32 |
||
33 |
LibavInteraction(); |
|
34 |
||
35 |
public: |
|
36 |
||
37 |
static LibavInteraction & instance(); |
|
38 |
||
39 |
// fill combo box with known file formats |
|
40 |
void fillFormats(QComboBox * pFormats); |
|
41 |
||
42 |
// fill combo boxes with known codecs for given formats |
|
43 |
void fillCodecs(const QString & format, QComboBox * pVCodecs, QComboBox * pACodecs); |
|
44 |
||
45 |
QString getExtension(const QString & format); |
|
46 |
||
47 |
// get information about file (duration, resolution etc) in multiline string |
|
48 |
QString getFileInfo(const QString & filepath); |
|
49 |
}; |
|
50 |
||
9429
7a97a554ac80
libavinteraction: fix typo and and compiling with modern libav
koda
parents:
9080
diff
changeset
|
51 |
#endif // LIBAV_INTERACTION |