File indexing completed on 2025-01-05 03:53:10
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2012-03-15 0007 * Description : a tool to create panorama by fusion of several images. 0008 * 0009 * SPDX-FileCopyrightText: 2012-2015 by Benjamin Girault <benjamin dot girault at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_PRE_PROCESS_TASK_H 0016 #define DIGIKAM_PRE_PROCESS_TASK_H 0017 0018 // Qt includes 0019 0020 #include <QPointer> 0021 0022 // Local includes 0023 0024 #include "panotask.h" 0025 #include "dmetadata.h" 0026 0027 using namespace Digikam; 0028 0029 namespace DigikamGenericPanoramaPlugin 0030 { 0031 0032 class PreProcessTask : public PanoTask 0033 { 0034 public: 0035 0036 const int id; 0037 0038 public: 0039 0040 explicit PreProcessTask(const QString& workDirPath, 0041 int id, 0042 PanoramaPreprocessedUrls& targetUrls, 0043 const QUrl& sourceUrl); 0044 ~PreProcessTask() override; 0045 0046 void requestAbort() override; 0047 0048 protected: 0049 0050 void run(ThreadWeaver::JobPointer self, 0051 ThreadWeaver::Thread* thread) override; 0052 0053 private: 0054 0055 bool computePreview(const QUrl& inUrl); 0056 bool convertRaw(); 0057 0058 private: 0059 0060 class Private; 0061 Private* const d; 0062 0063 private: 0064 0065 // Disable 0066 PreProcessTask() = delete; 0067 0068 Q_DISABLE_COPY(PreProcessTask) 0069 }; 0070 0071 } // namespace DigikamGenericPanoramaPlugin 0072 0073 #endif // DIGIKAM_PRE_PROCESS_TASK_H