Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
encode.h
Go to the documentation of this file.
1/* Copyright 2013 Google Inc. All Rights Reserved.
2
3 Distributed under MIT license.
4 See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
5*/
6
12#ifndef BROTLI_ENC_ENCODE_H_
13#define BROTLI_ENC_ENCODE_H_
14
15#include <brotli/port.h>
16#include <brotli/types.h>
17
18#if defined(__cplusplus) || defined(c_plusplus)
19extern "C" {
20#endif
21
23#define BROTLI_MIN_WINDOW_BITS 10
29#define BROTLI_MAX_WINDOW_BITS 24
34#define BROTLI_LARGE_MAX_WINDOW_BITS 30
36#define BROTLI_MIN_INPUT_BLOCK_BITS 16
38#define BROTLI_MAX_INPUT_BLOCK_BITS 24
40#define BROTLI_MIN_QUALITY 0
42#define BROTLI_MAX_QUALITY 11
43
58
60#define BROTLI_DEFAULT_QUALITY 11
62#define BROTLI_DEFAULT_WINDOW 22
64#define BROTLI_DEFAULT_MODE BROTLI_MODE_GENERIC
65
132
222
230
246 BrotliEncoderState* state, BrotliEncoderParameter param, uint32_t value);
247
263 brotli_alloc_func alloc_func, brotli_free_func free_func, void* opaque);
264
271
282BROTLI_ENC_API size_t BrotliEncoderMaxCompressedSize(size_t input_size);
283
313 int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
314 const uint8_t input_buffer[BROTLI_ARRAY_PARAM(input_size)],
315 size_t* encoded_size,
316 uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(*encoded_size)]);
317
381 BrotliEncoderState* state, BrotliEncoderOperation op, size_t* available_in,
382 const uint8_t** next_in, size_t* available_out, uint8_t** next_out,
383 size_t* total_out);
384
394
403 BrotliEncoderState* state);
404
434 BrotliEncoderState* state, size_t* size);
435
436
443
444#if defined(__cplusplus) || defined(c_plusplus)
445} /* extern "C" */
446#endif
447
448#endif /* BROTLI_ENC_ENCODE_H_ */
BROTLI_ENC_API BROTLI_BOOL BrotliEncoderSetParameter(BrotliEncoderState *state, BrotliEncoderParameter param, uint32_t value)
Definition encode.c:146
BROTLI_ENC_API BROTLI_BOOL BrotliEncoderHasMoreOutput(BrotliEncoderState *state)
Definition encode.c:1904
BROTLI_ENC_API BROTLI_BOOL BrotliEncoderIsFinished(BrotliEncoderState *state)
Definition encode.c:1899
BROTLI_ENC_API size_t BrotliEncoderMaxCompressedSize(size_t input_size)
Definition encode.c:1426
BROTLI_ENC_API BrotliEncoderState * BrotliEncoderCreateInstance(brotli_alloc_func alloc_func, brotli_free_func free_func, void *opaque)
Definition encode.c:797
BROTLI_ENC_API const uint8_t * BrotliEncoderTakeOutput(BrotliEncoderState *state, size_t *size)
Definition encode.c:1908
BROTLI_ENC_API BROTLI_BOOL BrotliEncoderCompress(int quality, int lgwin, BrotliEncoderMode mode, size_t input_size, const uint8_t input_buffer[BROTLI_ARRAY_PARAM(input_size)], size_t *encoded_size, uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(*encoded_size)])
Definition encode.c:1247
BROTLI_ENC_API void BrotliEncoderDestroyInstance(BrotliEncoderState *state)
Definition encode.c:831
BROTLI_ENC_API uint32_t BrotliEncoderVersion(void)
Definition encode.c:1927
BrotliEncoderParameter
Definition encode.h:134
@ BROTLI_PARAM_QUALITY
Definition encode.h:147
@ BROTLI_PARAM_NDIRECT
Definition encode.h:204
@ BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING
Definition encode.h:178
@ BROTLI_PARAM_STREAM_OFFSET
Definition encode.h:220
@ BROTLI_PARAM_LARGE_WINDOW
Definition encode.h:188
@ BROTLI_PARAM_NPOSTFIX
Definition encode.h:196
@ BROTLI_PARAM_LGBLOCK
Definition encode.h:172
@ BROTLI_PARAM_SIZE_HINT
Definition encode.h:184
@ BROTLI_PARAM_LGWIN
Definition encode.h:158
@ BROTLI_PARAM_MODE
Definition encode.h:140
BrotliEncoderMode
Definition encode.h:45
@ BROTLI_MODE_TEXT
Definition encode.h:54
@ BROTLI_MODE_GENERIC
Definition encode.h:52
@ BROTLI_MODE_FONT
Definition encode.h:56
BROTLI_ENC_API BROTLI_BOOL BrotliEncoderCompressStream(BrotliEncoderState *state, BrotliEncoderOperation op, size_t *available_in, const uint8_t **next_in, size_t *available_out, uint8_t **next_out, size_t *total_out)
Definition encode.c:1810
BrotliEncoderOperation
Definition encode.h:67
@ BROTLI_OPERATION_FLUSH
Definition encode.h:90
@ BROTLI_OPERATION_EMIT_METADATA
Definition encode.h:130
@ BROTLI_OPERATION_FINISH
Definition encode.h:109
@ BROTLI_OPERATION_PROCESS
Definition encode.h:73
#define BROTLI_ENC_API
Definition port.h:285
#define BROTLI_ARRAY_PARAM(name)
Definition port.h:255
#define op
Definition encode.c:65
size_t size
Definition platform.h:559
void *(* brotli_alloc_func)(void *opaque, size_t size)
Definition types.h:71
void(* brotli_free_func)(void *opaque, void *address)
Definition types.h:81
#define BROTLI_BOOL
Definition types.h:49