ICEpdf
  1. ICEpdf
  2. PDF-286

Create type 4 function results cache.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 4.2.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      A community memory posted a sample file that they claimed worked in 4.1.1 but not in 4.2 I took a quick look at the file in question and there is an image on the page that has a colour space that uses a type 4 function. In version 4.1.1, the image comes out blue which is incorrect. In 4.2 the image render correctly because of the type 4 function support but is extreme slow.

      The slowdown is because each colour is value is run thought the type 4 function. The function has no caching so when processing a 2 colour image we do a lot of extra work.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24261 Mon Mar 28 07:42:25 MDT 2011 patrick.corless PDF-286 addition of a calculated values cache to the type 4 function logic. Greatly improved performance of function in large mapping such as apply a colour space to an image.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/functions/Function_4.java
        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s 4.2.1 [ 10265 ]
        Hide
        Patrick Corless added a comment -

        Added a calculated result cache to the type 4 function. Should have put this in in the initial release as there is significant slowdown when using an type 4 function for an image colour mask.

        Show
        Patrick Corless added a comment - Added a calculated result cache to the type 4 function. Should have put this in in the initial release as there is significant slowdown when using an type 4 function for an image colour mask.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Arran Mccullough made changes -
        Salesforce Case [5007000000GvQyA]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: