digiKam
Loading...
Searching...
No Matches
dngwriter.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2008-09-25
7 * Description : a tool to convert RAW file to DNG
8 *
9 * SPDX-FileCopyrightText: 2008-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2010 by Jens Mueller <tschenser at gmx dot de>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QString>
21
22// Local includes
23
24#include "drawdecoder.h"
25#include "digikam_export.h"
26
27namespace Digikam
28{
29
30class DIGIKAM_EXPORT DNGWriter
31{
32
33public:
34
36 {
37 NONE = 0,
39 FULL_SIZE
40 };
41
43 {
44 PROCESS_CONTINUE = 1,
45 PROCESS_COMPLETE = 0,
46 PROCESS_FAILED = -1,
47 PROCESS_CANCELED = -2,
48 FILE_NOT_SUPPORTED = -3,
49 DNG_SDK_INTERNAL_ERROR = -4
50 };
51
52public:
53
54 explicit DNGWriter();
55 ~DNGWriter();
56
57 void setInputFile(const QString& filePath);
58 void setOutputFile(const QString& filePath);
59
60 QString inputFile() const;
61 QString outputFile() const;
62
63 void setCompressLossLess(bool b);
64 bool compressLossLess() const;
65
66 void setUpdateFileDate(bool b);
67 bool updateFileDate() const;
68
69 void setBackupOriginalRawFile(bool b);
70 bool backupOriginalRawFile() const;
71
72 void setPreviewMode(int mode);
73 int previewMode() const;
74
75 int convert();
76 void cancel();
77 void reset();
78
79public:
80
81 static QString xmpSdkVersion();
82 static QString dngSdkVersion();
83
84public:
85
86 // Declared public for DNGWriterHost class.
87 class Private;
88
89private:
90
91 // Disable
92 DNGWriter(const DNGWriter&) = delete;
93 DNGWriter& operator=(const DNGWriter&) = delete;
94
95private:
96
97 Private* const d = nullptr;
98};
99
100} // namespace Digikam
Definition dngwriter.h:31
ConvertError
Definition dngwriter.h:43
JPEGPreview
Definition dngwriter.h:36
@ MEDIUM
A medium size preview will be generated.
Definition dngwriter.h:38
Definition datefolderview.cpp:34