Scribus
Open source desktop publishing at your fingertips
scimgdataloader_jpeg.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef SCIMGDATALOADER_JPEG_H
8 #define SCIMGDATALOADER_JPEG_H
9 
10 #include "scimgdataloader.h"
11 
12 extern "C"
13 {
14 #define XMD_H // shut JPEGlib up
15 #if defined(Q_OS_UNIXWARE)
16 # define HAVE_BOOLEAN // libjpeg under Unixware seems to need this
17 #endif
18 #include <jpeglib.h>
19 #include <jerror.h>
20 #undef HAVE_STDLIB_H
21 #ifdef const
22 # undef const // remove crazy C hackery in jconfig.h
23 #endif
24 }
25 
27 {
28 protected:
29 
30  void initSupportedFormatList();
31 
32  bool marker_is_icc (jpeg_saved_marker_ptr marker);
33  bool marker_is_photoshop (jpeg_saved_marker_ptr marker);
34  bool read_jpeg_marker (UINT8 requestmarker, j_decompress_ptr cinfo, JOCTET **icc_data_ptr, unsigned int *icc_data_len);
35 
36 public:
38 
39 // virtual void preloadAlphaChannel(const QString& fn, int res);
40  virtual bool preloadAlphaChannel(const QString& fn, int page, int res, bool& hasAlpha);
41  virtual void loadEmbeddedProfile(const QString& fn, int page = 0);
42  virtual bool loadPicture(const QString& fn, int page, int res, bool thumbnail);
43 };
44 
45 #endif
Definition: scimgdataloader.h:19
Definition: scimgdataloader_jpeg.h:26