| 13 | * Provide an option to rename all public entry points to include _12 if NEED_12_BIT_NAMES is defined. This is accomplished by #defines in various include files, and matches the defines used when NEED_SHORT_EXTERNAL_NAMES is defined. |
| 14 | * Provide alternative tables suitable for 12bit mode for std_huff_tables() in jcparam.c. |
| 15 | * Attempt to hide non-public API entry points through the use of -fvisibility=hidden and __attribute__((visibility("default))) on the gcc toolchain. |
| 16 | |
| 17 | == libtiff == |
| 18 | |
| 19 | The essential changes to libtiff are (mostly applied in tif_jpeg.c 1.82): |
| 20 | |
| 21 | * Add handling of BITS_IN_JSAMPLE==12 to activate some of the JPEG_LIB_MK1 handling. |
| 22 | * Several fixes in JPEGDecode, JPEGDecodeRaw, and JPEGEncode for 12bit mode. |
| 23 | * Introduction of an alternate build of tif_jpeg.c (via tif_jpeg_12.c) for 12bit mode. |
| 24 | * Support for switching modes to _12 stuff in JPEGSetupDecode and JPEGSetupEncode in tif_jpeg.c. |
| 25 | * Configure.ac changes for --with-jpeg12, --with-jpeg12-include-dir, and --with-jpeg12-lib options. |
| 26 | |
| 27 | The changes are all in libtiff4 (HEAD) CVS now. No effort has been made to back port this to libtiff3.9. |
| 28 | |
| 29 | == GDAL == |
| 30 | |
| 31 | Currently no changes have been made to GDAL, though it is necessary to build with an external libtiff to use dual mode as the internal libtiff build stuff does not currently support dual mode. This might change at some point. |
| 32 | |