Hi guys,
I met a problem when dealing with FlateDcode, if there's no
DecodeParms, I could uncompress the data using zlib successfully. but
if there's DecodeParms, I don't know what to do with these
parameters(predictor/bits/colors/columns..)
I know it's some algorithm about differencing. but is it applied to
the data that has been uncompressed using zlib ? Is there any source
code about the differencing for reference?
any comment is appreciated.
thanks in advance.
Tim.
|
|
0
|
|
|
|
Reply
|
xxdfall
|
6/16/2004 5:37:32 AM |
|
xxdfall@hotmail.com (Tim) wrote:
>Hi guys,
>
>I met a problem when dealing with FlateDcode, if there's no
>DecodeParms, I could uncompress the data using zlib successfully. but
>if there's DecodeParms, I don't know what to do with these
>parameters(predictor/bits/colors/columns..)
>I know it's some algorithm about differencing. but is it applied to
>the data that has been uncompressed using zlib ?
Yes, I believe so, though I haven't done it. You first decompress,
then apply the differencing.
It may be helpful to think about why these options exist.
Suppose you are creating a PDF and you have a greyscale photograph.
The pixel values will range all over the place, and so there may be
little repetition. Compression with Flate may not work well. But if
you look at the areas of "smooth" colour in a photo, the colour may be
changing just a little between neighbouring pixels. Perhaps just by
+1, +2, +3 or -1, -2, -3. By replacing pixel values by their
difference value, there is much more similarity in the new data, so it
may well compress better. To decompress, you must therefore remove
the Flate first, then undo the differences.
----------------------------------------
Aandi Inston quite@dial.pipex.com http://www.quite.com
Please support usenet! Post replies and follow-ups, don't e-mail them.
|
|
0
|
|
|
|
Reply
|
quite
|
6/16/2004 6:08:45 AM
|
|
|
1 Replies
1367 Views
(page loaded in 0.037 seconds)
Similiar Articles: Question about DecodeParms and FlateDecode - comp.text.pdf ...Hi guys, I met a problem when dealing with FlateDcode, if there's no DecodeParms, I could uncompress the data using zlib successfully. but if there's... zlib.dll with parameters - comp.compression/Filter/FlateDecode /DecodeParms << /Predictor 15 /Columns 256 >> .... The questions: Can I use these parameters in zlib.dll? Do I HAVE to use them? flateDecode filter - comp.text.pdfQuestion about DecodeParms and FlateDecode - comp.text.pdf ... flateDecode filter - comp.text.pdf Question about DecodeParms and FlateDecode - comp.text.pdf ... FlateDecode, ASCIIHexDecode, ASCII85Decode, and LZWDecode streams ...Stumped on FlateDecode - comp.text.pdf FlateDecode, ASCIIHexDecode, ASCII85Decode, and LZWDecode streams ... Question about DecodeParms and FlateDecode. Stumped on FlateDecode - comp.text.pdfFlateDecode, ASCIIHexDecode, ASCII85Decode, and LZWDecode streams ... Question about DecodeParms and FlateDecode. 7. Stumped on FlateDecode Hello out there, I am a ... FlateDecode, ASCIIHexDecode, ASCII85Decode, and LZWDecode streams ...Question about DecodeParms and FlateDecode - comp.text.pdf ..... Stream | About ... Question about DecodeParms and FlateDecode - comp.text.pdf ... Need Code to Uncompress/Decompress PNG Data - comp.compression ...Need Code to Uncompress/Decompress PNG Data - comp.compression ... Question about DecodeParms and ... Stumped on FlateDecode Hello out there, I am a programmer and need ... PDF and LZW predictor - comp.text.pdf... Post Question | Groups ... /DecodeParms [ <<./Predictor 2.>> ] /Filter ... flateDecode filter - comp.text.pdf... can't seem to find ... Question about DecodeParms and FlateDecode - comp.text.pdf ...Hi guys, I met a problem when dealing with FlateDcode, if there's no DecodeParms, I could uncompress the data using zlib successfully. but if there's... PDF Parser and FlateDecoder - CodeProject... how to parse objects in a PDF and inflate FlateDecode ... Ask a Question about this article; Ask a Question ... wrapper.header.Contains(" DecodeParms") Then Try sb.Append ... 7/22/2012 10:35:27 AM
|