Vanilla.PDF  2.0.0
Cross-platform toolkit for creating and modifying PDF documents
c_filter.h
Go to the documentation of this file.
1#ifndef _C_FILTER_H
2#define _C_FILTER_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
90 VANILLAPDF_API error_type CALLING_CONVENTION FilterBase_Encode(FilterBaseHandle* handle, BufferHandle* data, BufferHandle** result);
91
95 VANILLAPDF_API error_type CALLING_CONVENTION FilterBase_EncodeParams(FilterBaseHandle* handle, BufferHandle* data, DictionaryObjectHandle* parameters, BufferHandle** result);
96
100 VANILLAPDF_API error_type CALLING_CONVENTION FilterBase_Decode(FilterBaseHandle* handle, BufferHandle* data, BufferHandle** result);
101
106 VANILLAPDF_API error_type CALLING_CONVENTION FilterBase_Release(FilterBaseHandle* handle);
107
118 VANILLAPDF_API error_type CALLING_CONVENTION FlateDecodeFilter_Create(FlateDecodeFilterHandle** result);
119
124 VANILLAPDF_API error_type CALLING_CONVENTION FlateDecodeFilter_Encode(FlateDecodeFilterHandle* handle, BufferHandle* data, BufferHandle** result);
125
130 VANILLAPDF_API error_type CALLING_CONVENTION FlateDecodeFilter_EncodeParams(FlateDecodeFilterHandle* handle, BufferHandle* data, DictionaryObjectHandle* parameters, BufferHandle** result);
131
136 VANILLAPDF_API error_type CALLING_CONVENTION FlateDecodeFilter_Decode(FlateDecodeFilterHandle* handle, BufferHandle* data, BufferHandle** result);
137
141 VANILLAPDF_API error_type CALLING_CONVENTION FlateDecodeFilter_Release(FlateDecodeFilterHandle* handle);
142
153 VANILLAPDF_API error_type CALLING_CONVENTION DCTDecodeFilter_Create(DCTDecodeFilterHandle** result);
154
159 VANILLAPDF_API error_type CALLING_CONVENTION DCTDecodeFilter_Encode(DCTDecodeFilterHandle* handle, BufferHandle* data, BufferHandle** result);
160
165 VANILLAPDF_API error_type CALLING_CONVENTION DCTDecodeFilter_EncodeParams(DCTDecodeFilterHandle* handle, BufferHandle* data, DictionaryObjectHandle* parameters, BufferHandle** result);
166
171 VANILLAPDF_API error_type CALLING_CONVENTION DCTDecodeFilter_Decode(DCTDecodeFilterHandle* handle, BufferHandle* data, BufferHandle** result);
172
176 VANILLAPDF_API error_type CALLING_CONVENTION DCTDecodeFilter_Release(DCTDecodeFilterHandle* handle);
177
188 VANILLAPDF_API error_type CALLING_CONVENTION ASCII85DecodeFilter_Create(ASCII85DecodeFilterHandle** result);
189
194 VANILLAPDF_API error_type CALLING_CONVENTION ASCII85DecodeFilter_Encode(ASCII85DecodeFilterHandle* handle, BufferHandle* data, BufferHandle** result);
195
200 VANILLAPDF_API error_type CALLING_CONVENTION ASCII85DecodeFilter_EncodeParams(ASCII85DecodeFilterHandle* handle, BufferHandle* data, DictionaryObjectHandle* parameters, BufferHandle** result);
201
206 VANILLAPDF_API error_type CALLING_CONVENTION ASCII85DecodeFilter_Decode(ASCII85DecodeFilterHandle* handle, BufferHandle* data, BufferHandle** result);
207
211 VANILLAPDF_API error_type CALLING_CONVENTION ASCII85DecodeFilter_Release(ASCII85DecodeFilterHandle* handle);
212
223 VANILLAPDF_API error_type CALLING_CONVENTION ASCIIHexDecodeFilter_Create(ASCIIHexDecodeFilterHandle** result);
224
229 VANILLAPDF_API error_type CALLING_CONVENTION ASCIIHexDecodeFilter_Encode(ASCIIHexDecodeFilterHandle* handle, BufferHandle* data, BufferHandle** result);
230
235 VANILLAPDF_API error_type CALLING_CONVENTION ASCIIHexDecodeFilter_EncodeParams(ASCIIHexDecodeFilterHandle* handle, BufferHandle* data, DictionaryObjectHandle* parameters, BufferHandle** result);
236
241 VANILLAPDF_API error_type CALLING_CONVENTION ASCIIHexDecodeFilter_Decode(ASCIIHexDecodeFilterHandle* handle, BufferHandle* data, BufferHandle** result);
242
246 VANILLAPDF_API error_type CALLING_CONVENTION ASCIIHexDecodeFilter_Release(ASCIIHexDecodeFilterHandle* handle);
247
258 VANILLAPDF_API error_type CALLING_CONVENTION LZWDecodeFilter_Create(LZWDecodeFilterHandle** result);
259
264 VANILLAPDF_API error_type CALLING_CONVENTION LZWDecodeFilter_Encode(LZWDecodeFilterHandle* handle, BufferHandle* data, BufferHandle** result);
265
270 VANILLAPDF_API error_type CALLING_CONVENTION LZWDecodeFilter_EncodeParams(LZWDecodeFilterHandle* handle, BufferHandle* data, DictionaryObjectHandle* parameters, BufferHandle** result);
271
276 VANILLAPDF_API error_type CALLING_CONVENTION LZWDecodeFilter_Decode(LZWDecodeFilterHandle* handle, BufferHandle* data, BufferHandle** result);
277
281 VANILLAPDF_API error_type CALLING_CONVENTION LZWDecodeFilter_Release(LZWDecodeFilterHandle* handle);
282
293 VANILLAPDF_API error_type CALLING_CONVENTION JPXDecodeFilter_Create(JPXDecodeFilterHandle** result);
294
299 VANILLAPDF_API error_type CALLING_CONVENTION JPXDecodeFilter_Encode(JPXDecodeFilterHandle* handle, BufferHandle* data, BufferHandle** result);
300
305 VANILLAPDF_API error_type CALLING_CONVENTION JPXDecodeFilter_EncodeParams(JPXDecodeFilterHandle* handle, BufferHandle* data, DictionaryObjectHandle* parameters, BufferHandle** result);
306
311 VANILLAPDF_API error_type CALLING_CONVENTION JPXDecodeFilter_Decode(JPXDecodeFilterHandle* handle, BufferHandle* data, BufferHandle** result);
312
316 VANILLAPDF_API error_type CALLING_CONVENTION JPXDecodeFilter_Release(JPXDecodeFilterHandle* handle);
317
320#ifdef __cplusplus
321};
322#endif
323
324#endif /* _C_FILTER_H */
This file contains macro declarations for importing and exporting symbols from library boundaries.
This file contains all type forward declarations returned by the library API.
This file contains types and constants used as parameters or return values.
The ASCII85Decode filter decodes data that has been encoded in ASCII base-85 encoding and produces bi...
error_type CALLING_CONVENTION ASCII85DecodeFilter_EncodeParams(ASCII85DecodeFilterHandle *handle, BufferHandle *data, DictionaryObjectHandle *parameters, BufferHandle **result)
Encodes source data and returns encoded result data.
error_type CALLING_CONVENTION ASCII85DecodeFilter_Encode(ASCII85DecodeFilterHandle *handle, BufferHandle *data, BufferHandle **result)
Encodes source data and returns encoded result data.
error_type CALLING_CONVENTION ASCII85DecodeFilter_Release(ASCII85DecodeFilterHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION ASCII85DecodeFilter_Decode(ASCII85DecodeFilterHandle *handle, BufferHandle *data, BufferHandle **result)
Decodes source data and returns decoded result data.
error_type CALLING_CONVENTION ASCII85DecodeFilter_Create(ASCII85DecodeFilterHandle **result)
Creates a new filter instance.
The ASCIIHexDecode filter decodes data that has been encoded in ASCII hexadecimal form.
error_type CALLING_CONVENTION ASCIIHexDecodeFilter_EncodeParams(ASCIIHexDecodeFilterHandle *handle, BufferHandle *data, DictionaryObjectHandle *parameters, BufferHandle **result)
Encodes source data and returns encoded result data.
error_type CALLING_CONVENTION ASCIIHexDecodeFilter_Release(ASCIIHexDecodeFilterHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION ASCIIHexDecodeFilter_Create(ASCIIHexDecodeFilterHandle **result)
Creates a new filter instance.
error_type CALLING_CONVENTION ASCIIHexDecodeFilter_Encode(ASCIIHexDecodeFilterHandle *handle, BufferHandle *data, BufferHandle **result)
Encodes source data and returns encoded result data.
error_type CALLING_CONVENTION ASCIIHexDecodeFilter_Decode(ASCIIHexDecodeFilterHandle *handle, BufferHandle *data, BufferHandle **result)
Decodes source data and returns decoded result data.
Represents memory stored data.
The DCTDecode filter decodes grayscale or colour image data that has been encoded in the JPEG baselin...
error_type CALLING_CONVENTION DCTDecodeFilter_Encode(DCTDecodeFilterHandle *handle, BufferHandle *data, BufferHandle **result)
Encodes source data and returns encoded result data.
error_type CALLING_CONVENTION DCTDecodeFilter_Create(DCTDecodeFilterHandle **result)
Creates a new filter instance.
error_type CALLING_CONVENTION DCTDecodeFilter_EncodeParams(DCTDecodeFilterHandle *handle, BufferHandle *data, DictionaryObjectHandle *parameters, BufferHandle **result)
Encodes source data and returns encoded result data.
error_type CALLING_CONVENTION DCTDecodeFilter_Decode(DCTDecodeFilterHandle *handle, BufferHandle *data, BufferHandle **result)
Decodes source data and returns decoded result data.
error_type CALLING_CONVENTION DCTDecodeFilter_Release(DCTDecodeFilterHandle *handle)
Decrement the internal reference counter.
A dictionary object is an associative table containing pairs of objects.
Base class for all compression filters.
error_type CALLING_CONVENTION FilterBase_Decode(FilterBaseHandle *handle, BufferHandle *data, BufferHandle **result)
Decodes source data and returns decoded result data.
error_type CALLING_CONVENTION FilterBase_Release(FilterBaseHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION FilterBase_Encode(FilterBaseHandle *handle, BufferHandle *data, BufferHandle **result)
Encodes source data and returns encoded result data.
error_type CALLING_CONVENTION FilterBase_EncodeParams(FilterBaseHandle *handle, BufferHandle *data, DictionaryObjectHandle *parameters, BufferHandle **result)
Encodes source data with specified params and returns encoded result data.
The Flate method is based on the public-domain zlib/deflate compression method.
error_type CALLING_CONVENTION FlateDecodeFilter_EncodeParams(FlateDecodeFilterHandle *handle, BufferHandle *data, DictionaryObjectHandle *parameters, BufferHandle **result)
Encodes source data and returns encoded result data.
error_type CALLING_CONVENTION FlateDecodeFilter_Encode(FlateDecodeFilterHandle *handle, BufferHandle *data, BufferHandle **result)
Encodes source data and returns encoded result data.
error_type CALLING_CONVENTION FlateDecodeFilter_Release(FlateDecodeFilterHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION FlateDecodeFilter_Create(FlateDecodeFilterHandle **result)
Creates a new filter instance.
error_type CALLING_CONVENTION FlateDecodeFilter_Decode(FlateDecodeFilterHandle *handle, BufferHandle *data, BufferHandle **result)
Decodes source data and returns decoded result data.
The JPXDecode filter (PDF 1.5) decodes data that has been encoded using the JPEG2000 compression meth...
error_type CALLING_CONVENTION JPXDecodeFilter_EncodeParams(JPXDecodeFilterHandle *handle, BufferHandle *data, DictionaryObjectHandle *parameters, BufferHandle **result)
Encodes source data and returns encoded result data.
error_type CALLING_CONVENTION JPXDecodeFilter_Release(JPXDecodeFilterHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION JPXDecodeFilter_Encode(JPXDecodeFilterHandle *handle, BufferHandle *data, BufferHandle **result)
Encodes source data and returns encoded result data.
error_type CALLING_CONVENTION JPXDecodeFilter_Create(JPXDecodeFilterHandle **result)
Creates a new filter instance.
error_type CALLING_CONVENTION JPXDecodeFilter_Decode(JPXDecodeFilterHandle *handle, BufferHandle *data, BufferHandle **result)
Decodes source data and returns decoded result data.
LZW (Lempel-Ziv-Welch) is a variable-length, adaptive compression method that has been adopted as one...
error_type CALLING_CONVENTION LZWDecodeFilter_Create(LZWDecodeFilterHandle **result)
Creates a new filter instance.
error_type CALLING_CONVENTION LZWDecodeFilter_Release(LZWDecodeFilterHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION LZWDecodeFilter_EncodeParams(LZWDecodeFilterHandle *handle, BufferHandle *data, DictionaryObjectHandle *parameters, BufferHandle **result)
Encodes source data and returns encoded result data.
error_type CALLING_CONVENTION LZWDecodeFilter_Decode(LZWDecodeFilterHandle *handle, BufferHandle *data, BufferHandle **result)
Decodes source data and returns decoded result data.
error_type CALLING_CONVENTION LZWDecodeFilter_Encode(LZWDecodeFilterHandle *handle, BufferHandle *data, BufferHandle **result)
Encodes source data and returns encoded result data.
uint32_t error_type
This is return value type of all API functions.
Definition c_types.h:25