libpressio 0.93.0
Loading...
Searching...
No Matches
pressio_compressor.h
Go to the documentation of this file.
1#include "stddef.h"
2#ifdef __cplusplus
3extern "C" {
4#endif
5
6#ifndef LIBPRESSIO_COMPRESSOR_H
7#define LIBPRESSIO_COMPRESSOR_H
8
14struct pressio_data;
15struct pressio_options;
16
21
22//option getting/setting functions
28
29//option getting/setting functions
35
58int pressio_compressor_set_options(struct pressio_compressor* compressor, struct pressio_options const * options);
69int pressio_compressor_check_options(struct pressio_compressor* compressor, struct pressio_options const * options);
70
71
72//compression/decompression functions
87int pressio_compressor_compress(struct pressio_compressor* compressor, const struct pressio_data *input, struct pressio_data* output);
107int pressio_compressor_decompress(struct pressio_compressor* compressor, const struct pressio_data *input, struct pressio_data* output);
108
115
121
127
128
135
142int pressio_compressor_metrics_set_options(struct pressio_compressor const* compressor, struct pressio_options const* options);
143
149
154const char* pressio_compressor_error_msg(struct pressio_compressor const* compressor);
155
156
162const char* pressio_compressor_version(struct pressio_compressor const* compressor);
178
190
191
198const char* pressio_compressor_get_prefix(const struct pressio_compressor* compressor);
199
215void pressio_compressor_set_name(struct pressio_compressor* compressor, const char* new_name);
216
223const char* pressio_compressor_get_name(struct pressio_compressor const* compressor);
224
275};
276
277
297 struct pressio_data const*const in[], size_t num_inputs,
298 struct pressio_data * out[], size_t num_outputs
299 );
300
319 struct pressio_data const*const in[], size_t num_inputs,
320 struct pressio_data * out[], size_t num_outputs
321 );
322
323#endif
324
325#ifdef __cplusplus
326}
327#endif
void pressio_compressor_release(struct pressio_compressor *compressor)
int pressio_compressor_decompress(struct pressio_compressor *compressor, const struct pressio_data *input, struct pressio_data *output)
int pressio_compressor_check_options(struct pressio_compressor *compressor, struct pressio_options const *options)
int pressio_compressor_patch_version(struct pressio_compressor const *compressor)
struct pressio_options * pressio_compressor_get_metrics_results(struct pressio_compressor const *compressor)
void pressio_compressor_set_metrics(struct pressio_compressor *compressor, struct pressio_metrics *plugin)
int pressio_compressor_compress(struct pressio_compressor *compressor, const struct pressio_data *input, struct pressio_data *output)
const char * pressio_compressor_error_msg(struct pressio_compressor const *compressor)
struct pressio_options * pressio_compressor_get_configuration(struct pressio_compressor const *compressor)
int pressio_compressor_compress_many(struct pressio_compressor *compressor, struct pressio_data const *const in[], size_t num_inputs, struct pressio_data *out[], size_t num_outputs)
const char * pressio_compressor_get_prefix(const struct pressio_compressor *compressor)
int pressio_compressor_set_options(struct pressio_compressor *compressor, struct pressio_options const *options)
struct pressio_options * pressio_compressor_get_documentation(struct pressio_compressor const *compressor)
const char * pressio_compressor_version(struct pressio_compressor const *compressor)
int pressio_compressor_minor_version(struct pressio_compressor const *compressor)
int pressio_compressor_decompress_many(struct pressio_compressor *compressor, struct pressio_data const *const in[], size_t num_inputs, struct pressio_data *out[], size_t num_outputs)
pressio_thread_safety
Definition: pressio_compressor.h:268
@ pressio_thread_safety_multiple
Definition: pressio_compressor.h:274
@ pressio_thread_safety_serialized
Definition: pressio_compressor.h:272
@ pressio_thread_safety_single
Definition: pressio_compressor.h:270
struct pressio_options * pressio_compressor_get_options(struct pressio_compressor const *compressor)
struct pressio_options * pressio_compressor_metrics_get_options(struct pressio_compressor const *compressor)
int pressio_compressor_error_code(struct pressio_compressor const *compressor)
const char * pressio_compressor_get_name(struct pressio_compressor const *compressor)
int pressio_compressor_major_version(struct pressio_compressor const *compressor)
void pressio_compressor_set_name(struct pressio_compressor *compressor, const char *new_name)
struct pressio_metrics * pressio_compressor_get_metrics(struct pressio_compressor const *compressor)
int pressio_compressor_metrics_set_options(struct pressio_compressor const *compressor, struct pressio_options const *options)
struct pressio_compressor * pressio_compressor_clone(struct pressio_compressor *compressor)
Definition: compressor.h:307
Definition: data.h:52
Definition: metrics.h:270
Definition: options.h:352