]> git.sesse.net Git - kdenlive/blobdiff - src/colorplaneexport.h
Vectorscope changes:
[kdenlive] / src / colorplaneexport.h
diff --git a/src/colorplaneexport.h b/src/colorplaneexport.h
new file mode 100644 (file)
index 0000000..32ec2bb
--- /dev/null
@@ -0,0 +1,48 @@
+/***************************************************************************
+ *   Copyright (C) 2010 by Simon Andreas Eugster (simon.eu@gmail.com)      *
+ *   This file is part of kdenlive. See www.kdenlive.org.                  *
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ ***************************************************************************/
+
+/**
+  Exports color planes (e.g. YUV-UV-planes) to a file.
+  Basically just for fun, but also for comparing color models.
+ */
+
+#ifndef COLORPLANEEXPORT_H
+#define COLORPLANEEXPORT_H
+
+#include <QDialog>
+#include "ui_colorplaneexport_ui.h"
+#include "colortools.h"
+
+class ColorPlaneExport_UI;
+
+enum COLOR_EXPORT_MODE { CPE_YUV, CPE_YUV_MOD };
+
+class ColorPlaneExport : public QDialog, public Ui::ColorPlaneExport_UI {
+    Q_OBJECT
+public:
+    ColorPlaneExport(QWidget *parent = 0);
+    ~ColorPlaneExport();
+
+protected:
+
+private:
+    ColorTools *m_colorTools;
+    float m_scaling;
+    float m_Y;
+
+
+private slots:
+    void slotValidate();
+    void slotExportPlane();
+    void slotColormodeChanged();
+    void slotUpdateDisplays();
+};
+
+#endif // COLORPLANEEXPORT_H