Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

wxMemoryOutputStream * wxPdfParser::LZWDecode ( wxMemoryOutputStream *  osIn  )  [protected]

Decode a stream that has the ASCII85Decode filter.

Parameters:
osIn the input data
Returns:
the decoded data

Definition at line 327 of file pdfdecode.cpp.

References wxPdfLzwDecoder::Decode().

Referenced by GetStreamBytes().

{
  wxMemoryInputStream in(*osIn);
  wxMemoryOutputStream* osOut = new wxMemoryOutputStream();
  wxPdfLzwDecoder lzw;
  if (!lzw.Decode(&in, osOut))
  {
    delete osOut;
    osOut = osIn;
  }
  return osOut;
}


Generated by  Doxygen 1.6.0   Back to index