summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/plugins/src/imageformats/jpeg
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-04-21 23:22:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-04-21 23:22:20 +0900
commitdba036816b279bc1539a9f3894fbc414665d2bce (patch)
tree29e4bf00bafe515e7afdd02168d65a47a3f9fbc0 /tqtinterface/qt4/plugins/src/imageformats/jpeg
parent6f1b4f0c7505a049d992a33f6e409b7c75732d4b (diff)
downloadexperimental-dba036816b279bc1539a9f3894fbc414665d2bce.tar.gz
experimental-dba036816b279bc1539a9f3894fbc414665d2bce.zip
Removed unnecessary and/or TDE-unrelated code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tqtinterface/qt4/plugins/src/imageformats/jpeg')
-rw-r--r--tqtinterface/qt4/plugins/src/imageformats/jpeg/jpeg.pro68
-rw-r--r--tqtinterface/qt4/plugins/src/imageformats/jpeg/main.cpp76
2 files changed, 0 insertions, 144 deletions
diff --git a/tqtinterface/qt4/plugins/src/imageformats/jpeg/jpeg.pro b/tqtinterface/qt4/plugins/src/imageformats/jpeg/jpeg.pro
deleted file mode 100644
index 3bff1e0..0000000
--- a/tqtinterface/qt4/plugins/src/imageformats/jpeg/jpeg.pro
+++ /dev/null
@@ -1,68 +0,0 @@
-TEMPLATE = lib
-TARGET += qjpeg
-
-CONFIG += qt plugin
-DESTDIR = ../../../imageformats
-
-VERSION = 1.0.0
-REQUIRES = !no-jpeg !jpeg
-
-SOURCES += main.cpp
-system-jpeg {
- unix:LIBS += -ljpeg
- win32:LIBS += libjpeg.lib
-}
-!system-jpeg {
- INCLUDEPATH += ../../../../src/3rdparty/libjpeg
- SOURCES += \
- ../../../../src/3rdparty/libjpeg/jcapimin.c \
- ../../../../src/3rdparty/libjpeg/jcapistd.c \
- ../../../../src/3rdparty/libjpeg/jccoefct.c \
- ../../../../src/3rdparty/libjpeg/jccolor.c \
- ../../../../src/3rdparty/libjpeg/jcdctmgr.c \
- ../../../../src/3rdparty/libjpeg/jchuff.c \
- ../../../../src/3rdparty/libjpeg/jcinit.c \
- ../../../../src/3rdparty/libjpeg/jcmainct.c \
- ../../../../src/3rdparty/libjpeg/jcmarker.c \
- ../../../../src/3rdparty/libjpeg/jcmaster.c \
- ../../../../src/3rdparty/libjpeg/jcomapi.c \
- ../../../../src/3rdparty/libjpeg/jcparam.c \
- ../../../../src/3rdparty/libjpeg/jcphuff.c \
- ../../../../src/3rdparty/libjpeg/jcprepct.c \
- ../../../../src/3rdparty/libjpeg/jcsample.c \
- ../../../../src/3rdparty/libjpeg/jctrans.c \
- ../../../../src/3rdparty/libjpeg/jdapimin.c \
- ../../../../src/3rdparty/libjpeg/jdapistd.c \
- ../../../../src/3rdparty/libjpeg/jdatadst.c \
- ../../../../src/3rdparty/libjpeg/jdatasrc.c \
- ../../../../src/3rdparty/libjpeg/jdcoefct.c \
- ../../../../src/3rdparty/libjpeg/jdcolor.c \
- ../../../../src/3rdparty/libjpeg/jddctmgr.c \
- ../../../../src/3rdparty/libjpeg/jdhuff.c \
- ../../../../src/3rdparty/libjpeg/jdinput.c \
- ../../../../src/3rdparty/libjpeg/jdmainct.c \
- ../../../../src/3rdparty/libjpeg/jdmarker.c \
- ../../../../src/3rdparty/libjpeg/jdmaster.c \
- ../../../../src/3rdparty/libjpeg/jdmerge.c \
- ../../../../src/3rdparty/libjpeg/jdphuff.c \
- ../../../../src/3rdparty/libjpeg/jdpostct.c \
- ../../../../src/3rdparty/libjpeg/jdsample.c \
- ../../../../src/3rdparty/libjpeg/jdtrans.c \
- ../../../../src/3rdparty/libjpeg/jerror.c \
- ../../../../src/3rdparty/libjpeg/jfdctflt.c \
- ../../../../src/3rdparty/libjpeg/jfdctfst.c \
- ../../../../src/3rdparty/libjpeg/jfdctint.c \
- ../../../../src/3rdparty/libjpeg/jidctflt.c \
- ../../../../src/3rdparty/libjpeg/jidctfst.c \
- ../../../../src/3rdparty/libjpeg/jidctint.c \
- ../../../../src/3rdparty/libjpeg/jidctred.c \
- ../../../../src/3rdparty/libjpeg/jmemmgr.c \
- ../../../../src/3rdparty/libjpeg/jquant1.c \
- ../../../../src/3rdparty/libjpeg/jquant2.c \
- ../../../../src/3rdparty/libjpeg/jutils.c \
- ../../../../src/3rdparty/libjpeg/jmemnobs.c
-}
-
-
-target.path += $$plugins.path/imageformats
-INSTALLS += target
diff --git a/tqtinterface/qt4/plugins/src/imageformats/jpeg/main.cpp b/tqtinterface/qt4/plugins/src/imageformats/jpeg/main.cpp
deleted file mode 100644
index 6d4a429..0000000
--- a/tqtinterface/qt4/plugins/src/imageformats/jpeg/main.cpp
+++ /dev/null
@@ -1,76 +0,0 @@
-#ifndef TQT_CLEAN_NAMESPACE
-#define TQT_CLEAN_NAMESPACE
-#endif
-#include <tqimageformatplugin.h>
-
-#ifndef TQT_NO_IMAGEFORMATPLUGIN
-
-#ifdef TQT_NO_IMAGEIO_JPEG
-#undef TQT_NO_IMAGEIO_JPEG
-#endif
-#include "../../../../src/kernel/qjpegio.cpp"
-
-class JPEGFormat : public TQImageFormatPlugin
-{
-public:
- JPEGFormat();
-
- TQStringList keys() const;
- bool loadImage( const TQString &format, const TQString &filename, TQImage * );
- bool saveImage( const TQString &format, const TQString &filename, const TQImage & );
- bool installIOHandler( const TQString & );
-};
-
-JPEGFormat::JPEGFormat()
-{
-}
-
-
-TQStringList JPEGFormat::keys() const
-{
- TQStringList list;
- list << "JPEG";
-
- return list;
-}
-
-bool JPEGFormat::loadImage( const TQString &format, const TQString &filename, TQImage *image )
-{
- if ( format != "JPEG" )
- return FALSE;
-
- TQImageIO io;
- io.setFileName( filename );
- io.setImage( *image );
-
- read_jpeg_image( &io );
-
- return TRUE;
-}
-
-bool JPEGFormat::saveImage( const TQString &format, const TQString &filename, const TQImage &image )
-{
- if ( format != "JPEG" )
- return FALSE;
-
- TQImageIO io;
- io.setFileName( filename );
- io.setImage( image );
-
- write_jpeg_image( &io );
-
- return TRUE;
-}
-
-bool JPEGFormat::installIOHandler( const TQString &name )
-{
- if ( name.upper() != "JPEG" )
- return FALSE;
-
- qInitJpegIO();
- return TRUE;
-}
-
-TQ_EXPORT_PLUGIN( JPEGFormat )
-
-#endif // TQT_NO_IMAGEFORMATPLUGIN