diff --git a/plugins/impex/heif/HeifConverter.cpp b/plugins/impex/heif/HeifConverter.cpp deleted file mode 100644 index 0cc1174cd7..0000000000 --- a/plugins/impex/heif/HeifConverter.cpp +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright (c) 2005 Adrian Page - * Copyright (c) 2010 Cyrille Berger - * - * 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 of the License, 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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ - -#include "HeifConverter.h" - -#include -#include -#include - -#include - -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include "kis_iterator_ng.h" - -#include "kis_kra_savexml_visitor.h" - -struct HeifConverter::Private { - Private() - : doc(0) - {} - - bool showNotifications; - KisImageSP image; - KisDocument *doc; - QString errorMessage; -}; - -HeifConverter::HeifConverter(KisDocument *doc, bool showNotifications) - : d(new Private) -{ - d->doc = doc; - d->showNotifications = showNotifications; -} - -HeifConverter::~HeifConverter() -{ -} - -KisImageBuilder_Result HeifConverter::buildImage(const QString &filename) -{ - // Open the file - // Read it - // Convert the libheif image data to layer(s) in d->image - return KisImageBuilder_RESULT_OK; -} - -KisImageSP HeifConverter::image() -{ - return d->image; -} - -QString HeifConverter::errorMessage() const -{ - return d->errorMessage; -} - -KisImageBuilder_Result HeifConverter::buildFile(const QString &filename, KisImageSP image) -{ - // open the file - // Iterate over the layer's pixels - // KisSequentialIterator it(image->rootLayer()->projection(), paintRegion); - // while (it.nextPixel()) { - // - // } - // write the data to the file - return KisImageBuilder_RESULT_OK; -} - - -void HeifConverter::cancel() -{ - warnKrita << "WARNING: Cancelling of an EXR loading is not supported!"; -} - - diff --git a/plugins/impex/heif/HeifConverter.h b/plugins/impex/heif/HeifConverter.h deleted file mode 100644 index 0081a8247c..0000000000 --- a/plugins/impex/heif/HeifConverter.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2010 Cyrille Berger - * - * 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 of the License, 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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ - -#ifndef _EXR_CONVERTER_H_ -#define _EXR_CONVERTER_H_ - -#include - -#include - -#include "kis_types.h" -#include - -class KisDocument; - -class HeifConverter : public QObject -{ - Q_OBJECT -public: - HeifConverter(KisDocument *doc, bool showNotifications); - ~HeifConverter() override; -public: - KisImageBuilder_Result buildImage(const QString &filename); - KisImageBuilder_Result buildFile(const QString &filename, KisImageSP image); - - /** - * Retrieve the constructed image - */ - KisImageSP image(); - QString errorMessage() const; -private: - KisImageBuilder_Result decode(const QString &filename); - -public Q_SLOTS: - virtual void cancel(); -private: - struct Private; - const QScopedPointer d; -}; - -#endif