pike.git / src / modules / _Image_JPEG / transupp.c

version» Context lines:

pike.git/src/modules/_Image_JPEG/transupp.c:48:   #endif /* 0 */      #define XMD_H /* Avoid INT16 / INT32 being redefined */      /* FAR is defined by windef.h and jmorecfg.h */   #ifdef FAR   #undef FAR   #endif      #ifdef HAVE_JCONFIG_H_HAVE_BOOLEAN - #ifdef HAVE_WINDOWS_H - #include <windows.h> +    #ifdef HAVE_WTYPES_H   /* jconfig.h has probably been compiled without WIN32_LEAN_AND_MEAN...    * So we need this one to get the boolean typedef.    */   #include <wtypes.h>   #endif   #endif - #endif +       #include <jerror.h>   #include "jinclude.h"   #include <jpeglib.h>   #include "transupp.h" /* My own external interface */   #include <ctype.h> /* to declare isdigit() */      #ifdef TRANSFORMS_NOT_SUPPORTED   #undef TRANSFORMS_SUPPORTED   #endif
pike.git/src/modules/_Image_JPEG/transupp.c:1582:   }      #endif /* TRANSFORMS_SUPPORTED */         /* Setup decompression object to save desired markers in memory.    * This must be called before jpeg_read_header() to have the desired effect.    */      #ifndef TRANSFORMS_NOT_SUPPORTED +  + #ifdef SAVE_MARKERS_SUPPORTED   GLOBAL(void)   jcopy_markers_setup (j_decompress_ptr srcinfo, JCOPY_OPTION option)   { - #ifdef SAVE_MARKERS_SUPPORTED +     int m;       /* Save comments except under NONE option */    if (option != JCOPYOPT_NONE) {    jpeg_save_markers(srcinfo, JPEG_COM, 0xFFFF);    }    /* Save all types of APPn markers iff ALL option */    if (option == JCOPYOPT_ALL) {    for (m = 0; m < 16; m++)    jpeg_save_markers(srcinfo, JPEG_APP0 + m, 0xFFFF);    } - #endif /* SAVE_MARKERS_SUPPORTED */ +    } -  + #else + GLOBAL(void) + jcopy_markers_setup (j_decompress_ptr UNUSED(srcinfo), JCOPY_OPTION UNUSED(option)) {} + #endif /* SAVE_MARKERS_SUPPORTED */      /* Copy markers saved in the given source object to the destination object.    * This should be called just after jpeg_start_compress() or    * jpeg_write_coefficients().    * Note that those routines will have written the SOI, and also the    * JFIF APP0 or Adobe APP14 markers if selected.    */      GLOBAL(void)   jcopy_markers_execute (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,