[
https://issues.apache.org/jira/browse/PDFBOX-6199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18077036#comment-18077036
]
Maruan Sahyoun commented on PDFBOX-6199:
----------------------------------------
I'm currently looking into the code getting the pixels from the data for
template 1. To ensure that this is correct I'm looking into first introducing a
layer which decouples storage, the bitmap bytes, from getting the pixel data.
As this reduce performance I did a JMH benchmark which shows that with the
current implementation {{GenericRefinementRegionDecodingProcedure}} accounts
for 56% of the overall runtime for {{bitmap-refine-template1-tpgron.jbig2}}. I
wanted to capture that information first before doing the changes so that we do
have a baseline. If the performance hit is not high I'm looking into keeping
the code I'm working on as this very much simplifies maintenance and
readability.
> Template 1 handling with TPGRON not supported
> ---------------------------------------------
>
> Key: PDFBOX-6199
> URL: https://issues.apache.org/jira/browse/PDFBOX-6199
> Project: PDFBox
> Issue Type: Sub-task
> Components: JBIG2
> Affects Versions: 3.0.4 JBIG2
> Reporter: Maruan Sahyoun
> Priority: Minor
> Attachments: image-2026-04-28-12-27-28-955.png,
> image-2026-04-28-12-28-19-575.png, image-2026-04-28-12-29-21-038.png
>
>
> {{bitmap-refine-template1-tpgron.jbig2}} tests the folling features of JBIG2:
> - Refinement region
> - Template 1
> - TPGRON
> - Reference bitmap reuse
> We currently produce garbled output when decoding
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]