https://github.com/simonnyvall/rle-compression
Compress files with run-leangth encoding
https://github.com/simonnyvall/rle-compression
compression cpp docker
Last synced: 2 months ago
JSON representation
Compress files with run-leangth encoding
- Host: GitHub
- URL: https://github.com/simonnyvall/rle-compression
- Owner: SimonNyvall
- Created: 2021-07-27T08:44:23.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-08-29T19:47:48.000Z (almost 4 years ago)
- Last Synced: 2026-03-29T21:02:50.704Z (3 months ago)
- Topics: compression, cpp, docker
- Language: C++
- Homepage:
- Size: 153 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RLE-Compression

A small hobby project to better understand lossless compression. Run Length Compression is one of the more less complicated algorithms to implicate. You look at the byte array of a life and count the occurrence. For example, the number nine occurs six times in a row. Then you write [6][9] as two bytes and repeat until the byte array is done.
## Compile and run
Compile the program with g++ and execute the a.out file with two arguments for the starting and ending path.
```bash
g++ Compress.cpp
```
```bash
./a.out [in_path] [out_path]
```
