-
-
Notifications
You must be signed in to change notification settings - Fork 888
Add support for decoding gray tiff with jpeg compression #2031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
using SpectralConverter<L8> spectralConverterGray = new GrayJpegSpectralConverter<L8>(this.configuration); | ||
var scanDecoderGray = new HuffmanScanDecoder(stream, spectralConverterGray, CancellationToken.None); | ||
jpegDecoder.LoadTables(this.jpegTables, scanDecoderGray); | ||
scanDecoderGray.ResetInterval = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the point of zeroing this field? It should be zero by default if there is no RST marker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you are right, that is not needed. Changed with 2fbf566
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Prerequisites
Description
This PR adds support for decoding gray tiff with jpeg compression.
Fixes #2030