PoDoFo
0.9.6
|
#include <PdfFiltersPrivate.h>
Public Member Functions | |
virtual bool | CanEncode () const |
virtual void | BeginEncodeImpl () |
virtual void | EncodeBlockImpl (const char *pBuffer, pdf_long lLen) |
virtual void | EndEncodeImpl () |
virtual bool | CanDecode () const |
virtual void | BeginDecodeImpl (const PdfDictionary *) |
virtual void | DecodeBlockImpl (const char *pBuffer, pdf_long lLen) |
virtual EPdfFilter | GetType () const |
![]() | |
PdfFilter () | |
virtual | ~PdfFilter () |
void | Encode (const char *pInBuffer, pdf_long lInLen, char **ppOutBuffer, pdf_long *plOutLen) const |
void | BeginEncode (PdfOutputStream *pOutput) |
void | EncodeBlock (const char *pBuffer, pdf_long lLen) |
void | EndEncode () |
void | Decode (const char *pInBuffer, pdf_long lInLen, char **ppOutBuffer, pdf_long *plOutLen, const PdfDictionary *pDecodeParms=NULL) const |
void | BeginDecode (PdfOutputStream *pOutput, const PdfDictionary *pDecodeParms=NULL) |
void | DecodeBlock (const char *pBuffer, pdf_long lLen) |
void | EndDecode () |
Additional Inherited Members | |
![]() | |
PODOFO_NOTHROW void | FailEncodeDecode () |
virtual void | EndDecodeImpl () |
The RLE filter.
|
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().
Reimplemented from PoDoFo::PdfFilter.
|
virtual |
Real implementation of BeginEncode(). NEVER call this method directly.
By default this function does nothing. If your filter needs to do setup for encoding, you should override this method.
PdfFilter ensures that a valid stream is available when this method is called, and that EndEncode() was called since the last BeginEncode()/ EncodeBlock().
Reimplemented from PoDoFo::PdfFilter.
|
inlinevirtual |
Check whether the decoding is implemented for this filter.
Implements PoDoFo::PdfFilter.
|
inlinevirtual |
Check whether the encoding is implemented for this filter.
Implements PoDoFo::PdfFilter.
|
virtual |
Real implementation of ‘DecodeBlock()’. NEVER call this method directly.
You must override this method to decode the buffer passed by the caller.
You are not obliged to immediately process any or all of the data in the passed buffer, but you must ensure that you have processed it and written it out by the end of EndDecodeImpl(). You must copy the buffer if you're going to store it, as ownership is not transferred to the filter and the caller may free the buffer at any time.
PdfFilter ensures that a valid stream is available when this method is called, ensures that BeginDecode() has been called, and ensures that EndDecode() has not been called since the last BeginDecode().
Implements PoDoFo::PdfFilter.
|
virtual |
Encode a block of data and write it to the PdfOutputStream specified by BeginEncodeImpl.
BeginEncodeImpl() has to be called before this function.
pBuffer | pointer to a buffer with data to encode |
lLen | length of data to encode. |
Call EndEncodeImpl() after all data has been encoded
Implements PoDoFo::PdfFilter.
|
virtual |
Finish encoding of data.
Reimplemented from PoDoFo::PdfFilter.
|
inlinevirtual |