/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
Possible License(s): CC-BY-SA-3.0, LGPL-2.1, LGPL-3.0, LGPL-2.0, MPL-2.0-no-copyleft-exception, GPL-3.0, GPL-2.0
- /* ============================================================
- *
- * 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;
- }