Allow ICC conversion for CIE Lab and CMYK TIFF #3054
+433
−37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prerequisites
Description
This pull request adds support for decoding TIFF images with CIE Lab color data in both 8-bit and 16-bit per channel formats, including both planar and interleaved storage. It also updates the CMYK TIFF decoder to support ICC color profile conversion and makes the decoder factory aware of these new types. The changes improve color accuracy and extensibility for TIFF decoding.
New TIFF color decoders and ICC profile support:
CieLab16TiffColor<TPixel>andCieLab16PlanarTiffColor<TPixel>classes to decode 16-bit per channel CIE Lab TIFF images, with proper ICC profile conversion and endianness handling. [1] [2]CmykTiffColor<TPixel>to support ICC profile conversion and use buffer-based SIMD processing for more efficient decoding. [1] [2]Refactoring and naming consistency:
CieLabTiffColor<TPixel>andCieLabPlanarTiffColor<TPixel>toCieLab8TiffColor<TPixel>andCieLab8PlanarTiffColor<TPixel>, respectively, to clarify that these handle 8-bit per channel data. [1] [2]Decoder factory enhancements:
TiffColorDecoderFactory<TPixel>to instantiate the correct decoder based on bits per sample and to pass necessary metadata, options, and allocator for ICC profile-aware decoders. [1] [2] [3] [4] [5]Minor improvements:
YCbCrToRgbConverter.