summaryrefslogtreecommitdiff
path: root/camlibs/ax203/jpeg_memsrcdest.h
Commit message (Collapse)AuthorAgeFilesLines
* Use consistently named non-reserved CPP macros for header filesHans Ulrich Niedermann2021-10-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | C preprocessor macros beginning/ending with underscores are reserved for system use as well as macros containing a double underscore anywhere, so application software macros are supposed to be named differently. For a header file gphoto2-abilities-list.h, this consistently uses a macro name LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H for the usual #ifndef LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H #define LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H ... content of the header file ... #endif /* !defined(LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H) */ Found using "clang -Weverything". This should work, unless when run with an ancient C preprocessor which might only the first 8 or 10 characters to distinguish macro names and ignores the remainder of the name.
* jpeg_memsrcdest: extend feature checkPatrick Ohly2016-06-151-0/+4
| | | | | | | | | | | | | | | | | libjpeg.h in OpenEmbedded master (from libjpeg-turbo 1.5.0) provides these methods if "JPEG_LIB_VERSION >= 80 || defined(MEM_SRCDST_SUPPORTED)". The support for the jpeg_mem functions was added even when not emulating the libjpeg8 API, controlled via the MEM_SRCDST_SUPPORTED define, so checking for the version alone is not enough anymore. See https://github.com/libjpeg-turbo/libjpeg-turbo/commit/ab70623eb29e09e67222be5b9e1ea320fe5aa0e9 This fixes errors about conflicting declarations (signed vs. unsigned char). Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
* Make our jpeg_mem_* functions API compatible with the libjpeg8 versions Hans de Goede2010-04-031-5/+5
| | | | | | | | | | | | libjpeg8 ships with its own memory source and dest support (hurray!), make our memory source and dest functions API compatible and only implement them when building against an older libjpeg. Thanks to Theodore Kilgore for pointing this out. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12899 67ed7778-7388-44ab-90cf-0a291f65f57c
* ax203: Add support for firmware v3.5.x (ax206 based) framesHans de Goede2010-03-301-0/+9
The ax206 based frames use a JPEG-ish compression, thus this patch includes a modified copy of tinyjpeg to decompress this, and some special libjpeg glue code for the compression side. See README.ax203-compression for details on the compressed format. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12876 67ed7778-7388-44ab-90cf-0a291f65f57c