digikam /digikam-2.7.0/extra/kipi-plugins/dngconverter/test/raw2dng.cpp

Language C++ Lines 45
MD5 Hash 0b08278e96da8496265b971761f9036a Estimated Cost $329 (why?)
Repository git://pkgs.fedoraproject.org/digikam View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* ============================================================
 *
 * This file is a part of kipi-plugins project
 * http://www.digikam.org
 *
 * Date        : 2008-02-17
 * Description : a command line tool to convert RAW file to DNG
 *
 * Copyright (C) 2008-2012 by Gilles Caulier <caulier dot gilles at gmail dot com> 
 *
 * 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, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * ============================================================ */

// Qt includes

#include <QDebug>

// Local includes

#include "dngwriter.h"

int main(int argc, char **argv)
{
    if(argc != 2) 
    {
        qDebug() << "raw2dng - RAW Camera Image to DNG Converter";
        qDebug() << "Usage: <rawfile>";
        return -1;
    }

    DNGIface::DNGWriter dngProcessor;
    dngProcessor.setInputFile(QString(argv[1]));
    int ret = dngProcessor.convert();
    return ret;
}
Back to Top