OSDN Git Service

thumbnailers: remove RAW thumbnailer
authorIvailo Monev <xakepa10@gmail.com>
Sat, 31 Jul 2021 19:05:07 +0000 (22:05 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Sat, 31 Jul 2021 19:05:07 +0000 (22:05 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
thumbnailers/CMakeLists.txt
thumbnailers/raw/CMakeLists.txt [deleted file]
thumbnailers/raw/rawcreator.cpp [deleted file]
thumbnailers/raw/rawcreator.h [deleted file]
thumbnailers/raw/rawthumbnail.desktop [deleted file]

index 25bf0c6..51b8f06 100644 (file)
@@ -42,7 +42,6 @@ add_feature_info(thumbnailer_gs
 )
 
 add_subdirectory(ps)
-add_subdirectory(raw)
 
 if(TAGLIB_FOUND AND FLAC++_FOUND)
     add_subdirectory(audio)
diff --git a/thumbnailers/raw/CMakeLists.txt b/thumbnailers/raw/CMakeLists.txt
deleted file mode 100644 (file)
index 3200062..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-project(rawthumbnail)
-
-## includes and linking
-include_directories(${KEXIV2_INCLUDE_DIR} ${KDCRAW_INCLUDE_DIR})
-
-
-#sources
-set(rawthumbnail_SRCS rawcreator.cpp)
-kde4_add_plugin(rawthumbnail ${rawthumbnail_SRCS})
-
-
-## includes and linking
-target_link_libraries(rawthumbnail
-    ${KDE4_KIO_LIBS}
-    ${KDE4_KDCRAW_LIBS}
-    ${KDE4_KEXIV2_LIBS}
-    ${KDE4_KDECORE_LIBS}
-    ${QT_QTGUI_LIBRARY}
-)
-
-## install the plugin
-install(TARGETS rawthumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
-install(FILES rawthumbnail.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
-
-
diff --git a/thumbnailers/raw/rawcreator.cpp b/thumbnailers/raw/rawcreator.cpp
deleted file mode 100644 (file)
index dc552b0..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-/**
- Copyright (C) 2008  Unai Garro <ugarro@gmail.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 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 "rawcreator.h"
-
-#include <QImage>
-
-#include <libkdcraw/kdcraw.h>
-#include <libkexiv2/kexiv2.h>
-#include <kdemacros.h>
-
-extern "C"
-{
-    KDE_EXPORT ThumbCreator *new_creator()
-    {
-        return new RAWCreator;
-    }
-}
-
-RAWCreator::RAWCreator()
-{
-}
-
-RAWCreator::~RAWCreator()
-{
-}
-
-bool RAWCreator::create(const QString &path, int width, int height, QImage &img)
-{
-    //load the image into the QByteArray
-    QByteArray data;
-    bool loaded=KDcrawIface::KDcraw::loadEmbeddedPreview(data,path);
-
-    if (loaded)
-    {
-
-        //Load the image into a QImage
-        QImage preview;
-        if (!preview.loadFromData(data) || preview.isNull())
-           return false;
-
-        //And its EXIF info
-        KExiv2Iface::KExiv2 exiv;
-        if (exiv.loadFromData(data))
-        {
-            //We managed reading the EXIF info, rotate the image
-            //according to the EXIF orientation flag
-            exiv.rotateExifQImage(preview, exiv.getImageOrientation());
-        }
-
-        //Scale the image as requested by the thumbnailer
-        img=preview.scaled(width,height,Qt::KeepAspectRatio);
-
-    }
-    return loaded;
-}
-
-ThumbCreator::Flags RAWCreator::flags() const
-{
-    return (Flags)(0);
-}
diff --git a/thumbnailers/raw/rawcreator.h b/thumbnailers/raw/rawcreator.h
deleted file mode 100644 (file)
index f01532a..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- Copyright (C) 2008  Unai Garro <ugarro@gmail.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 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 RAWCREATOR_H
-#define RAWCREATOR_H
-
-#include <kio/thumbcreator.h>
-
-class RAWCreator : public ThumbCreator
-{
-public:
-    RAWCreator();
-    virtual ~RAWCreator();
-    virtual bool create(const QString &path, int width, int height, QImage &img);
-    virtual Flags flags() const;
-};
-
-#endif
diff --git a/thumbnailers/raw/rawthumbnail.desktop b/thumbnailers/raw/rawthumbnail.desktop
deleted file mode 100644 (file)
index 053ad3b..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-[Desktop Entry]
-Type=Service
-Name=RAW Photo Camera Files
-Name[ar]=ملفات الخامة RAW لآلة التصوير
-Name[bg]=Снимки RAW от фотоапарат
-Name[bs]=Sirove datoteke s kamere
-Name[ca]=Fitxers RAW de càmera de fotos
-Name[ca@valencia]=Fitxers RAW de càmera de fotos
-Name[cs]=RAW soubory z fotoaparátu
-Name[da]=Kamera-filer i RAW-foto
-Name[de]=RAW-Fotokamera-Dateien
-Name[el]=RAW αρχεία φωτογραφιών
-Name[en_GB]=RAW Photo Camera Files
-Name[es]=Archivos RAW de cámara fotográfica
-Name[et]=Kaamera toorfailid
-Name[eu]=RAW argazki kamera-fitxategiak
-Name[fi]=RAW-kuvakameratiedostot
-Name[fr]=Fichiers « RAW » d'appareil photo numérique
-Name[ga]=Comhaid Cheamara RAW
-Name[gl]=Ficheiros RAW de cámara de fotos
-Name[hr]=Fotografske datoteke RAW
-Name[hu]=RAW-fájlok
-Name[ia]=Files de photo camera RAW
-Name[is]=RAW myndavélaskrár
-Name[it]=File grezzi fotocamera
-Name[ja]=カメラの RAW ファイル
-Name[kk]=Камераның RAW ('шикі') файлдары
-Name[km]=ឯកសារ​រូបថត​របស់​ម៉ាស៊ីន​ថត​ដើម
-Name[ko]=RAW 사진 카메라 파일
-Name[lt]=Fotoaparato RAW failai
-Name[lv]=RAW fotogrāfiju faili
-Name[mr]=RAW फोटो कॅमेरा फाईल्स
-Name[nb]=RAW foto kamerafiler
-Name[nds]=RAW-Fotokamera-Dateien
-Name[nl]=Bestanden met RAW-camera-afbeelding
-Name[pa]=RAW ਫੋਟੋ ਕੈਮਰਾ ਫਾਇਲਾਂ
-Name[pl]=Pliki RAW z aparatów cyfrowych
-Name[pt]=Ficheiros de Máquinas Fotográficas RAW
-Name[pt_BR]=Arquivos RAW de câmeras fotográficas
-Name[ro]=Fișiere fotografice brute
-Name[ru]=Цифровые негативы (RAW)
-Name[si]=RAW පිංතූර කැමරා ගොනු
-Name[sk]=RAW súbory z digitálneho fotoaparátu
-Name[sl]=Surove datoteke s fotoaparata
-Name[sr]=Сирови фајлови с фотоапарата
-Name[sr@ijekavian]=Сирови фајлови с фотоапарата
-Name[sr@ijekavianlatin]=Sirovi fajlovi s fotoaparata
-Name[sr@latin]=Sirovi fajlovi s fotoaparata
-Name[sv]=Obehandlade kamerafiler
-Name[tr]=RAW Fotoğraf Makinesi Dosyaları
-Name[ug]=RAW سۈرەت كامېرا ھۆججىتى
-Name[uk]=Файли цифрових негативів
-Name[x-test]=xxRAW Photo Camera Filesxx
-Name[zh_CN]=RAW 照片相机文件
-Name[zh_TW]=原始相機檔
-X-KDE-ServiceTypes=ThumbCreator
-X-KDE-PluginInfo-EnabledByDefault=true
-# image/x-dcraw is the subclass for all "raw" image formats, so no need to list them all
-MimeType=image/x-dcraw;
-X-KDE-Library=rawthumbnail
-CacheThumbnail=true