~ubuntu-branches/ubuntu/trusty/ghostscript/trusty

« back to all changes in this revision

Viewing changes to Resource/Init/gs_img.ps

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2013-09-03 17:42:33 UTC
  • Revision ID: package-import@ubuntu.com-20130903174233-1nmhvndppneu3az0
Tags: 9.10~dfsg-0ubuntu2
debian/patches/020130903-5ae4180-ps-interpreter-dont-interpolate-imagemask-data-for-high-level-devices.patch:
PS Interpreter: Do not interpolate imagemask data for high level devices.
This accelerates processing files with embedded bitmap images when the
output device is a high-level (vector) device. In this case an explicit
"-dNOINTERPOLATE" on the command line is not needed any more.

Show diffs side-by-side

added added

removed removed

Lines of Context:
696
696
            2 index /ImageType get 1 eq and
697
697
            2 index /BitsPerComponent get 1 eq and
698
698
            2 index /Interpolate .knownget not { //false } if and
699
 
            //filterdict /ImscaleDecode known and {
 
699
            //filterdict /ImscaleDecode known and
 
700
            %%
 
701
            %% Don't apply ImScaleDecode to interpolate imagemasks if
 
702
            %% the current device is a high level device.
 
703
            %%
 
704
            currentdevice 1 dict dup /HighLevelDevice dup put .getdeviceparams
 
705
            dup type /booleantype eq not {cleartomark //true}{3 1 roll cleartomark not}ifelse
 
706
            and
 
707
            {
700
708
              % Apply interpolated imagemask scaling filter
701
709
              exch .currentglobal exch dup .gcheck .setglobal
702
710
              dup length dict .copydict