pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pdf-devel] Patch for the Flate filter


From: gerel
Subject: Re: [pdf-devel] Patch for the Flate filter
Date: Wed, 01 Oct 2008 16:19:16 -0700 (PDT)

 > Date: Wed, 01 Oct 2008 20:36:11 +0200
 > From: address@hidden
 > 
 > 
 >    + /* 
 >    +  * As read in the zlib documentation, our cache size must be at least 
 > 0.1%
 >    +  * larger than the CHUNK size, plus 12 bytes.
 >    +  * We assume that our cache size is of 4096 bytes.
 >    +  */
 >    +#define PDF_STM_F_FLATE_CHUNK 1024
 > 
 > What would happen if the user set a cache size of, say, 100 bytes? It
 > is possible to set the chunk size dinamically?

Now that the issue arose I can say that this limitations are being, in part,
imposed by the Stream implementation and the last apply() call JP mentioned in a
previous email. The last apply() should be called until EOF and not only once as
I think it does now.

OTOH, the chunk size can be set dinamically, yes.

cheers

-gerel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]