Major rework of headers inclusion style on behalf of lebedev.ri (issue 1079)
This commit is contained in:
@@ -19,24 +19,23 @@
|
||||
*/
|
||||
#include <png.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include <imageio.h>
|
||||
#include <safegtk.h>
|
||||
#include "imageio.h"
|
||||
#include "safegtk.h"
|
||||
#include <tiff.h>
|
||||
#include <tiffio.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <fcntl.h>
|
||||
#ifdef WIN32
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
#include <iptcpairs.h>
|
||||
#include "iptcpairs.h"
|
||||
#include <libiptcdata/iptc-jpeg.h>
|
||||
|
||||
extern "C" {
|
||||
#include <iccjpeg.h>
|
||||
}
|
||||
#include "iccjpeg.h"
|
||||
|
||||
#include "jpeg.h"
|
||||
|
||||
Glib::ustring safe_locale_to_utf8 (const std::string& src);
|
||||
@@ -365,12 +364,12 @@ int ImageIO::loadJPEG (Glib::ustring fname) {
|
||||
|
||||
//jpeg_stdio_src(&cinfo,file);
|
||||
jpeg_read_header(&cinfo, TRUE);
|
||||
|
||||
//if JPEG is CMYK, then abort reading
|
||||
if (cinfo.jpeg_color_space == JCS_CMYK || cinfo.jpeg_color_space == JCS_YCCK) {
|
||||
|
||||
//if JPEG is CMYK, then abort reading
|
||||
if (cinfo.jpeg_color_space == JCS_CMYK || cinfo.jpeg_color_space == JCS_YCCK) {
|
||||
jpeg_destroy_decompress(&cinfo);
|
||||
return IMIO_READERROR;
|
||||
}
|
||||
return IMIO_READERROR;
|
||||
}
|
||||
|
||||
unsigned int proflen;
|
||||
delete loadedProfileData;
|
||||
|
Reference in New Issue
Block a user