Coder Social home page Coder Social logo

momooy / rlec Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fabvalaaah/rlec

0.0 0.0 0.0 247 KB

Bitmap (bmp) file Run-Length Encoding (RLE) compression and decompression command line program, written in ANSI C for Unix/Linux

License: MIT License

C 98.27% Shell 1.73%

rlec's Introduction

rlec

Bitmap (bmp) file Run-Length Encoding (RLE) compression and decompression command line program, written in ANSI C for Unix/Linux.

RLE is a bitmap native lossless compression algorithm. As a consequence, RLE bitmap files resulting from this program are supported by most of image viewers and if so, can be opened as is.

This implementation deals directly with bitmap images without the usage of any third-party library.

Installation

  • Compilation (using gcc) ⇨ ./COMPILE.sh
  • Usage example ⇨ ./EXAMPLE.sh
  • Cleaning (removes binary and test generated files) ⇨ ./CLEAN.sh

Usage

NAME
        rlec - compress/decompress a bitmap file using RLE algorithm

SYNOPSIS
        rlec {-c|-d} [-n=<OUTPUT_FILE_PATH>] <INPUT_FILE_PATH>

OPTIONS
        Compress/decompress the file INPUT_FILE_PATH.

        -c        compression mode
        -d        decompression mode
        -n=<OUTPUT_FILE_PATH>
                   path to output file (default is the same directory as the input file)

File resulting from compression operation is automatically created with the suffix "_rle" added to the name of the input file.
File resulting from decompression operation is automatically created with the suffix "_raw" added to the name of the input file.

Disclaimer

I am not responsible in any way of any consequence of the usage of this piece of software. You are warned, use it at your own risks.

rlec's People

Contributors

fabvalaaah avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.