PageRenderTime 43ms CodeModel.GetById 19ms RepoModel.GetById 0ms 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
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
  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. // Qt includes
  23. #include <QDebug>
  24. // Local includes
  25. #include "dngwriter.h"
  26. int main(int argc, char **argv)
  27. {
  28. if(argc != 2)
  29. {
  30. qDebug() << "raw2dng - RAW Camera Image to DNG Converter";
  31. qDebug() << "Usage: <rawfile>";
  32. return -1;
  33. }
  34. DNGIface::DNGWriter dngProcessor;
  35. dngProcessor.setInputFile(QString(argv[1]));
  36. int ret = dngProcessor.convert();
  37. return ret;
  38. }