PoDoFo 0.9.20
|
#include <PdfFiltersPrivate.h>
Public Member Functions | |
bool | CanEncode () const override |
void | EncodeBlockImpl (const char *buffer, size_t len) override |
bool | CanDecode () const override |
void | BeginDecodeImpl (const PdfDictionary *) override |
void | DecodeBlockImpl (const char *buffer, size_t len) override |
PdfFilterType | GetType () const override |
![]() | |
PdfFilter () | |
virtual | ~PdfFilter () |
void | EncodeTo (charbuff &outBuffer, const bufferview &inBuffer) const |
void | BeginEncode (OutputStream &output) |
void | EncodeBlock (const bufferview &view) |
void | EndEncode () |
void | DecodeTo (charbuff &outBuffer, const bufferview &inBuffer, const PdfDictionary *decodeParms=nullptr) const |
void | BeginDecode (OutputStream &output, const PdfDictionary *decodeParms=nullptr) |
void | DecodeBlock (const bufferview &view) |
void | EndDecode () |
Additional Inherited Members | |
![]() | |
void | FailEncodeDecode () |
virtual void | BeginEncodeImpl () |
virtual void | EndEncodeImpl () |
virtual void | EndDecodeImpl () |
The RLE filter.
|
overridevirtual |
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.
|
inlineoverridevirtual |
Check whether the decoding is implemented for this filter.
Implements PoDoFo::PdfFilter.
|
inlineoverridevirtual |
Check whether encoding is implemented for this filter.
Implements PoDoFo::PdfFilter.
|
overridevirtual |
Real implementation of DecodeBlock(). NEVER call this method directly.
You must method-override it 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.
|
overridevirtual |
Real implementation of EncodeBlock(). NEVER call this method directly.
You must method-override it to encode 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 EndEncodeImpl(). 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 BeginEncode() has been called, and ensures that EndEncode() has not been called since the last BeginEncode().
Implements PoDoFo::PdfFilter.
|
inlineoverridevirtual |