diff options
author | Caolán McNamara <caolan@skynet.ie> | 2022-06-27 10:19:38 +0000 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2022-06-27 10:19:38 +0000 |
commit | f828040e88039a153ac841673f9e0b4c44eb7e6c (patch) | |
tree | 1f77980eba9881ef1cbbb796169f2c7cf46c5698 /libtiff/tiffiop.h | |
parent | e990bbfad2538351881d7de7f463787f2c393c23 (diff) | |
download | libtiff-git-f828040e88039a153ac841673f9e0b4c44eb7e6c.tar.gz |
Add basic 16bit-cielab support
just a copy of putcontig8bitCIELab that reads 16bit vals but divide l by
257, a and b by 256 before passing to TIFFCIELabToXYZ
motivation: https://bugs.documentfoundation.org/show_bug.cgi?id=131199
the "clavijo16bitlab.tiff" example where tiffinfo says:
```
Image Width: 2601 Image Length: 3503
Resolution: 96, 96 pixels/inch
Bits/Sample: 16
Compression Scheme: AdobeDeflate
Photometric Interpretation: CIE L*a*b*
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 3
Rows/Strip: 1
Planar Configuration: single image plane
DateTime: 2020:03:07 10:20:42
```
Diffstat (limited to 'libtiff/tiffiop.h')
-rw-r--r-- | libtiff/tiffiop.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libtiff/tiffiop.h b/libtiff/tiffiop.h index e3af461d..7bd50514 100644 --- a/libtiff/tiffiop.h +++ b/libtiff/tiffiop.h @@ -429,6 +429,8 @@ extern int TIFFInitZSTD(TIFF*, int); extern int TIFFInitWebP(TIFF*, int); #endif extern const TIFFCodec _TIFFBuiltinCODECS[]; +extern void TIFFCIELab16ToXYZ(TIFFCIELabToRGB *, uint32_t l, int32_t a, int32_t b, + float *, float *, float *); #if defined(__cplusplus) } |