author | unc0rr |
Mon, 27 Jan 2014 00:33:42 +0400 | |
changeset 10078 | 8572d1f8b2f0 |
parent 9998 | 736015b847e3 |
child 10108 | c68cf030eded |
permissions | -rw-r--r-- |
7897 | 1 |
/* |
2 |
* Hedgewars, a free turn based strategy game |
|
9998 | 3 |
* Copyright (c) 2004-2014 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 |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
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 |
* |
|
27 |
* @see <a href="http://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a> |
|
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 |