PageRenderTime 40ms CodeModel.GetById 37ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
C++ | 44 lines | 15 code | 6 blank | 23 comment | 2 complexity | 0b08278e96da8496265b971761f9036a MD5 | raw file
 1/* ============================================================
 2 *
 3 * This file is a part of kipi-plugins project
 4 * http://www.digikam.org
 5 *
 6 * Date        : 2008-02-17
 7 * Description : a command line tool to convert RAW file to DNG
 8 *
 9 * Copyright (C) 2008-2012 by Gilles Caulier <caulier dot gilles at gmail dot com> 
10 *
11 * This program is free software; you can redistribute it
12 * and/or modify it under the terms of the GNU General
13 * Public License as published by the Free Software Foundation;
14 * either version 2, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 * GNU General Public License for more details.
20 *
21 * ============================================================ */
22
23// Qt includes
24
25#include <QDebug>
26
27// Local includes
28
29#include "dngwriter.h"
30
31int main(int argc, char **argv)
32{
33    if(argc != 2) 
34    {
35        qDebug() << "raw2dng - RAW Camera Image to DNG Converter";
36        qDebug() << "Usage: <rawfile>";
37        return -1;
38    }
39
40    DNGIface::DNGWriter dngProcessor;
41    dngProcessor.setInputFile(QString(argv[1]));
42    int ret = dngProcessor.convert();
43    return ret;
44}