~ubuntu-branches/ubuntu/vivid/luminance-hdr/vivid-proposed

« back to all changes in this revision

Viewing changes to src/Fileformat/pngwriter.h

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2012-11-03 09:09:25 UTC
  • mfrom: (3.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20121103090925-6b12x4a4cpqd3u4q
Tags: 2.3.0-2
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * This file is a part of Luminance HDR package.
 
3
 * ----------------------------------------------------------------------
 
4
 * Copyright (C) 2012 Franco Comida
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; either version 2 of the License, or
 
9
 *  (at your option) any later version.
 
10
 *
 
11
 *  This program is distributed in the hope that it will be useful,
 
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *  GNU General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with this program; if not, write to the Free Software
 
18
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
19
 * ----------------------------------------------------------------------
 
20
 *
 
21
 * @author Franco Comida <fcomida@users.sourceforge.net>
 
22
 *
 
23
 */
 
24
 
 
25
#ifndef PNGWRITER_H
 
26
#define PNGWRITER_H
 
27
 
 
28
#include <QObject>
 
29
#include <QImage>
 
30
#include <QString>
 
31
 
 
32
#include <png.h>
 
33
 
 
34
class PngWriter : public QObject
 
35
{
 
36
  Q_OBJECT
 
37
        
 
38
        const QImage *m_out_qimage;
 
39
        QString m_fname;
 
40
        int m_quality;
 
41
        png_uint_32 m_filesize;
 
42
 
 
43
public:
 
44
        PngWriter(const QImage *, QString, int);
 
45
        PngWriter(const QImage *, int);
 
46
        ~PngWriter() {}
 
47
        bool writeQImageToPng();
 
48
        int getFileSize();
 
49
};
 
50
 
 
51
#endif