GithubHelp home page GithubHelp logo

mototroller / ax.lzw Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 9 KB

LZW-based lightweight encoder/decoder

License: MIT License

CMake 1.31% C++ 98.69%
lzw lz-string lzw-compression utf-16 lzw-codec archiver

ax.lzw's Introduction

LZW-based data encoder/decoder Build Status

Header-only library lzw.hpp contains implementation of original LZW compression/decompression algorithms.

Features:

  • Input and Packing dictionaries are fully customizable by symbol ranges, can be piecewise.

    Predefined: BINARY_256_common, ASCII_128_common, UTF16_pack (output), URI_pack (output). See lzw.hpp tail for definitions examples.

  • Specific codec can be instantiated from template: lzw_codec<InputDict, PackDict>.

    Predefined: string_to_string, binary_to_binary, string_to_UTF16, string_to_URI. See lzw.hpp tail for definitions examples.

  • Encoding with fixed bit depth (choses by maximum used code).

  • Dense bit packing (library uses as many bits as possible).

  • Header-only and STL-only open source.

  • STL-compatible codec interface: same as std::copy(first, last, d_first).

  • Tests with usage examples and simple performance measurements are included.

  • RELEASE typical performance:

    encode = ~200 us/Ksymbol

    decode = ~30 us/Ksymbol

    zip_ratio < ~0.3 (dst.length/src.length)

WASM

Library initially was designed as native LZW extension to be used with WASM and Emscripten Embind.

To be continued

ax.lzw's People

Contributors

alext-l3tech avatar mototroller avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.