~ubuntu-branches/debian/experimental/hplip/experimental

« back to all changes in this revision

Viewing changes to prnt/hpijs/filterhpa.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2010-12-23 11:04:31 UTC
  • mfrom: (2.1.158 natty)
  • Revision ID: james.westby@ubuntu.com-20101223110431-ev5wz1it6b7jce51
Tags: 3.10.9-1
New Upstream Release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1490
1490
    // The least compressible image will be all raw pixels. Maximum compressed size is:
1491
1491
    // full size + a bloat of Cmd byte + 1 VLI byte per 255 pixels rounded up to nearest integer.
1492
1492
 
1493
 
    int maxCompressionBufSize = fRowWidthInBytes + 1 + ((int)ceil(MAX((rowWidthInPixels-2)/255, 0)));
 
1493
    int maxCompressionBufSize = fRowWidthInBytes + 1 + ((int)ceil((float)MAX((rowWidthInPixels-2)/255, 0)));
1494
1494
 
1495
1495
    fCompressionOutBuf = new unsigned char[maxCompressionBufSize];
1496
1496
    ASSERT(fCompressionOutBuf);