You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2018/03/19 17:58:00 UTC

[jira] [Updated] (PDFBOX-4156) Possible optimization of SampledImageReader.from8bit by using InterleavedRaster

     [ https://issues.apache.org/jira/browse/PDFBOX-4156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr updated PDFBOX-4156:
------------------------------------
    Labels: optimization  (was: )

> Possible optimization of SampledImageReader.from8bit by using InterleavedRaster
> -------------------------------------------------------------------------------
>
>                 Key: PDFBOX-4156
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4156
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Rendering
>    Affects Versions: 2.0.8
>            Reporter: Itai Shaked
>            Priority: Minor
>              Labels: optimization
>         Attachments: interleaved_raster.patch
>
>
> I noticed {{SampledImageReader.from8Bit}} assumed the source data to be interleaved, which means if the target raster uses an interleaved sample model, the data can by directly copied. 
> This can save 10-15% of total render time in files with large 8-bit images (tested on samples from PDFBOX-2092 , PDFBOX-3791 and the file "gs-bugzilla690022.pdf" from PDFBOX-4151). 
> In PDFBOX-2092 there is a discussion about how the sample model must be Banded, but I couldn't find a place in the code that directly relies on this, and the few tests I have run did not reveal problems. Perhaps the constraint is obsolete, or else it means custom sample models cannot be used? 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org