Logo Search packages:      
Sourcecode: kdenlive version File versions  Download package

colorplaneexport.h

/***************************************************************************
 *   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;

00025 class ColorPlaneExport : public QDialog, public Ui::ColorPlaneExport_UI {
    Q_OBJECT
public:
    ColorPlaneExport(QWidget *parent = 0);
    ~ColorPlaneExport();

    enum COLOR_EXPORT_MODE { CPE_YUV, CPE_YUV_Y, CPE_YUV_MOD, CPE_RGB_CURVE, CPE_YPbPr, CPE_HSV_HUESHIFT, CPE_HSV_SATURATION };

private:
    ColorTools *m_colorTools;
    float m_scaling;
    float m_Y;
    void enableSliderScaling(const bool &enable);
    void enableSliderColor(const bool &enable);
    void enableCbVariant(const bool &enable);


private slots:
    void slotValidate();
    void slotExportPlane();
    void slotColormodeChanged();
    void slotUpdateDisplays();
};

#endif // COLORPLANEEXPORT_H

Generated by  Doxygen 1.6.0   Back to index