https://github.com/blueskyson/exponential-golomb-coding
A c implementation of exp-golomb code for 8-bit data, including encode and decode method.
https://github.com/blueskyson/exponential-golomb-coding
c coding
Last synced: about 1 year ago
JSON representation
A c implementation of exp-golomb code for 8-bit data, including encode and decode method.
- Host: GitHub
- URL: https://github.com/blueskyson/exponential-golomb-coding
- Owner: blueskyson
- Created: 2021-01-16T00:56:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-16T04:58:57.000Z (over 5 years ago)
- Last Synced: 2025-04-29T11:57:21.174Z (about 1 year ago)
- Topics: c, coding
- Language: C
- Homepage: https://jacklinweb.github.io/posts/exponential-golomb-coding
- Size: 5.86 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Exponential-Golomb-coding
### Compile
```
$ make
gcc exp-golomb.c -o encode
ln -s encode decode
```
### Usage
```
# Usage
encode [input file] [output file] [order-k]
decode [input file] [output file] [order-k]
# Example
./encode sample_text.txt text.encode 4
./decode text.encode text.decode 4
```
### Test
```
$ make test
Encode sample_text.txt as text.encode use order-4 exp-golomb code...
./encode sample_text.txt text.encode 4
Decode text.encode as text.decode...
./decode text.encode text.decode 4
check difference between sample_text.txt and text.decode...
diff sample_text.txt text.decode
rm text.encode text.decode
```