Repository navigation
Fix/indexed colorspace smask luminance and other fixes - #3
Merged
Merged
Conversation
…-component color space fallbacks - PDImageXObject: pass interpolate directly to Bitmap.createScaledBitmap instead of inverting it - PDImageXObject: guard applyMask against null image to prevent NullPointerException - PDImageXObject: pass parent resources to getMask() and getSoftMask() instead of null - PDImageXObject: expose getResources() getter - PDColorSpace: fall back CALGRAY and SEPARATION to PDDeviceGray (1 component) instead of PDDeviceRGB (3 components) to prevent 3x vertical squashing and color noise - Add PDColorSpaceTest and PDImageXObjectTest unit test suites
- SampledImageReader: guard JPEG fast-path with region == null, colorKey == null, and default decode check to prevent bypassing clipping, chroma masking, or decode arrays - SampledImageReader: validate dimensions and stream length in createBitmapFromRawStream, throwing descriptive IOException on truncated/empty streams or unsupported component counts - PDFBoxResourceLoader: throw descriptive IOException instead of throwing NullPointerException when uninitialized - Add SampledImageReaderTest and PDFBoxResourceLoaderTest unit tests
- JPEGFactory: inspect SOF marker in byte stream to accurately detect grayscale (PDDeviceGray) and CMYK (PDDeviceCMYK) JPEGs instead of unconditionally hardcoding PDDeviceRGB - JPEGFactory: batch alpha pixel extraction in chunked row buffers to prevent excessive heap allocations on large images - PDImageXObject: batch getPixels and setPixels in applyMask using chunked scanlines to slash row-by-row JNI crossings by >95% - PDDeviceGray: batch getPixels and setPixels in toRGBImage using chunked scanlines - PDDeviceCMYK: batch getPixels and setPixels in toRGBImage using chunked scanlines - LosslessFactory: batch getPixels in createFromRGBImage and createFromGrayImage using chunked scanlines - Add JPEGFactoryTest for grayscale, RGB, and CMYK SOF detection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.