Skip to content

Commit

Permalink
Merge pull request #64 from pohly/jpeg-mem
Browse files Browse the repository at this point in the history
jpeg_memsrcdest: extend feature check
  • Loading branch information
msmeissn committed Jun 16, 2016
2 parents b671f34 + 0df14db commit d74d92e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions camlibs/ax203/jpeg_memsrcdest.c
Expand Up @@ -25,8 +25,8 @@
#include "jpeg_memsrcdest.h"

/* libjpeg8 and later come with their own (API compatible) memory source
and dest */
#if JPEG_LIB_VERSION < 80
and dest, and older versions may have it backported */
#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED)

/* Expanded data source object for memory input */

Expand Down
4 changes: 4 additions & 0 deletions camlibs/ax203/jpeg_memsrcdest.h
@@ -1,9 +1,13 @@
#include <jpeglib.h>

#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED)

void
jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer,
unsigned long bufsize);

void
jpeg_mem_dest (j_compress_ptr cinfo, unsigned char ** outbuffer,
unsigned long * outsize);

#endif
4 changes: 2 additions & 2 deletions camlibs/jl2005c/jpeg_memsrcdest.c
Expand Up @@ -25,8 +25,8 @@
#include "jpeg_memsrcdest.h"

/* libjpeg8 and later come with their own (API compatible) memory source
and dest */
#if JPEG_LIB_VERSION < 80
and dest, and older versions may have it backported */
#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED)

/* Expanded data source object for memory input */

Expand Down
4 changes: 4 additions & 0 deletions camlibs/jl2005c/jpeg_memsrcdest.h
@@ -1,9 +1,13 @@
#include <jpeglib.h>

#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED)

void
jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer,
unsigned long bufsize);

void
jpeg_mem_dest (j_compress_ptr cinfo, unsigned char ** outbuffer,
unsigned long * outsize);

#endif

0 comments on commit d74d92e

Please sign in to comment.