]> git.sesse.net Git - kdenlive/blob - src/colorplaneexport.h
Vectorscope changes:
[kdenlive] / src / colorplaneexport.h
1 /***************************************************************************
2  *   Copyright (C) 2010 by Simon Andreas Eugster (simon.eu@gmail.com)      *
3  *   This file is part of kdenlive. See www.kdenlive.org.                  *
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; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  ***************************************************************************/
10
11 /**
12   Exports color planes (e.g. YUV-UV-planes) to a file.
13   Basically just for fun, but also for comparing color models.
14  */
15
16 #ifndef COLORPLANEEXPORT_H
17 #define COLORPLANEEXPORT_H
18
19 #include <QDialog>
20 #include "ui_colorplaneexport_ui.h"
21 #include "colortools.h"
22
23 class ColorPlaneExport_UI;
24
25 enum COLOR_EXPORT_MODE { CPE_YUV, CPE_YUV_MOD };
26
27 class ColorPlaneExport : public QDialog, public Ui::ColorPlaneExport_UI {
28     Q_OBJECT
29 public:
30     ColorPlaneExport(QWidget *parent = 0);
31     ~ColorPlaneExport();
32
33 protected:
34
35 private:
36     ColorTools *m_colorTools;
37     float m_scaling;
38     float m_Y;
39
40
41 private slots:
42     void slotValidate();
43     void slotExportPlane();
44     void slotColormodeChanged();
45     void slotUpdateDisplays();
46 };
47
48 #endif // COLORPLANEEXPORT_H