]> git.sesse.net Git - kdenlive/blob - src/cliptranscode.h
Add XML files for frei0r contrast0r and brightness effects so that we have correct...
[kdenlive] / src / cliptranscode.h
1 /***************************************************************************
2  *   Copyright (C) 2008 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
3  *                                                                         *
4  *   This program is free software; you can redistribute it and/or modify  *
5  *   it under the terms of the GNU General Public License as published by  *
6  *   the Free Software Foundation; either version 2 of the License, or     *
7  *   (at your option) any later version.                                   *
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                         *
16  *   Free Software Foundation, Inc.,                                       *
17  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
18  ***************************************************************************/
19
20
21 #ifndef CLIPTRANSCODE_H
22 #define CLIPTRANSCODE_H
23
24
25 #include "definitions.h"
26 #include "ui_cliptranscode_ui.h"
27
28 #include <KUrl>
29
30 #include <QProcess>
31
32 class ClipTranscode : public QDialog
33 {
34     Q_OBJECT
35
36 public:
37     ClipTranscode(KUrl::List urls, const QString &params, MltVideoProfile profile, QWidget * parent = 0);
38     ~ClipTranscode();
39
40
41 private slots:
42     void slotShowTranscodeInfo();
43     void slotStartTransCode();
44     void slotTranscodeFinished(int exitCode, QProcess::ExitStatus exitStatus);
45     void slotUpdateParams(int ix = -1);
46
47 private:
48     Ui::ClipTranscode_UI m_view;
49     QProcess m_transcodeProcess;
50     KUrl::List m_urls;
51     MltVideoProfile m_profile;
52     QString prepareParams(QString params);
53
54 signals:
55     void addClip(KUrl url);
56 };
57
58
59 #endif
60