ArithmeticCoding
0.0.0a
Arithmetic coding in C
|
#include <stdint.h>
#include <stdlib.h>
Go to the source code of this file.
Typedefs | |
typedef uint8_t | u8 |
typedef uint32_t | u32 |
typedef float | real |
Functions | |
void | cdf_build (real **cdf, size_t *nsym, u32 *s, size_t ns) |
Build a cumulative distribution function (CDF) from an input u32 array. | |
void | encode_u1_u8 (void **out, size_t *nout, uint8_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u4_u8 (void **out, size_t *nout, uint8_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u8_u8 (void **out, size_t *nout, uint8_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u1_u16 (void **out, size_t *nout, uint16_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u4_u16 (void **out, size_t *nout, uint16_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u8_u16 (void **out, size_t *nout, uint16_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u1_u32 (void **out, size_t *nout, uint32_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u4_u32 (void **out, size_t *nout, uint32_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u8_u32 (void **out, size_t *nout, uint32_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u1_u64 (void **out, size_t *nout, uint64_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u4_u64 (void **out, size_t *nout, uint64_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u8_u64 (void **out, size_t *nout, uint64_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u16_u8 (void **out, size_t *nout, uint8_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u16_u16 (void **out, size_t *nout, uint16_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u16_u32 (void **out, size_t *nout, uint32_t *in, size_t nin, real *cdf, size_t nsym) |
void | encode_u16_u64 (void **out, size_t *nout, uint64_t *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u8_u1 (uint8_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u8_u4 (uint8_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u8_u8 (uint8_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u16_u1 (uint16_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u16_u4 (uint16_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u16_u8 (uint16_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u32_u1 (uint32_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u32_u4 (uint32_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u32_u8 (uint32_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u64_u1 (uint64_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u64_u4 (uint64_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u64_u8 (uint64_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u8_u16 (uint8_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u16_u16 (uint16_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u32_u16 (uint32_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | decode_u64_u16 (uint64_t **out, size_t *nout, void *in, size_t nin, real *cdf, size_t nsym) |
void | vencode_u8 (uint8_t **out, size_t *nout, size_t noutsym, uint8_t *in, size_t nin, size_t ninsym, real *cdf) |
void | vencode_u16 (uint8_t **out, size_t *nout, size_t noutsym, uint16_t *in, size_t nin, size_t ninsym, real *cdf) |
void | vencode_u32 (uint8_t **out, size_t *nout, size_t noutsym, uint32_t *in, size_t nin, size_t ninsym, real *cdf) |
void | vencode_u64 (uint8_t **out, size_t *nout, size_t noutsym, uint64_t *in, size_t nin, size_t ninsym, real *cdf) |
void | vdecode_u8 (uint8_t **out, size_t *nout, size_t noutsym, uint8_t *in, size_t nin, size_t ninsym, real *cdf) |
void | vdecode_u16 (uint16_t **out, size_t *nout, size_t noutsym, uint8_t *in, size_t nin, size_t ninsym, real *cdf) |
void | vdecode_u32 (uint32_t **out, size_t *nout, size_t noutsym, uint8_t *in, size_t nin, size_t ninsym, real *cdf) |
void | vdecode_u64 (uint64_t **out, size_t *nout, size_t noutsym, uint8_t *in, size_t nin, size_t ninsym, real *cdf) |