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

void PoDoFo::PdfFlateFilter::BeginDecodeImpl ( const PdfDictionary pDecodeParms ) [virtual]

Real implementation of `BeginDecode()'. NEVER call this method directly.

By default this function does nothing. If your filter needs to do setup for decoding, you should override this method.

PdfFilter ensures that a valid stream is available when this method is called, and that EndDecode() was called since the last BeginDecode()/DecodeBlock().

pDecodeParmsadditional parameters for decoding data
See also:

Reimplemented from PoDoFo::PdfFilter.

Definition at line 526 of file PdfFiltersPrivate.cpp.

References PoDoFo::ePdfError_Flate.

    m_stream.zalloc   = Z_NULL;
    m_stream.zfree    = Z_NULL;
    m_stream.opaque   = Z_NULL;

    m_pPredictor = pDecodeParms ? new PdfPredictorDecoder( pDecodeParms ) : NULL;

    if( inflateInit( &m_stream ) != Z_OK )
        PODOFO_RAISE_ERROR( ePdfError_Flate );

Generated by  Doxygen 1.6.0   Back to index