From 783b56d54788f177881d68ae2ec7a7cb4bb38ac4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 18 Apr 2004 01:35:53 +0000 Subject: Initial commit git-svn-id: file:///home/lennart/svn/public/vfax/trunk@3 541b366f-4dd8-0310-ae39-b2612fd50714 --- bitsplit.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 bitsplit.h (limited to 'bitsplit.h') diff --git a/bitsplit.h b/bitsplit.h new file mode 100644 index 0000000..8a53f3e --- /dev/null +++ b/bitsplit.h @@ -0,0 +1,21 @@ +#ifndef foobitsplithfoo +#define foobitsplithfoo + +#include +#include + +struct bitsplit_state { + uint8_t in; + int n_in; + int maxbits_in; + + uint8_t out; + int n_out; + int maxbits_out; +}; + + +void bitsplit_init(struct bitsplit_state *s, int maxbits_in, int maxbits_out); +void bitsplit(struct bitsplit_state *s, uint8_t *src, size_t *src_l, uint8_t *dst, size_t *dst_l); + +#endif -- cgit