All Projects → team-charls → charls

team-charls / charls

Licence: BSD-3-Clause license
CharLS, a C++ JPEG-LS library implementation

Programming Languages

C++
36643 projects - #6 most used programming language
CMake
9771 projects
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to charls

web-config
A Rollup configuration to build modern web applications with sweet features as for example SCSS imports, Service Worker generation with Workbox, Karma testing, live reloading, coping resources, chunking, treeshaking, Typescript, license extraction, filesize visualizer, JSON import, budgets, build progress, minifying and compression with brotli a…
Stars: ✭ 17 (-87.31%)
Mutual labels:  compression
Natours
An awesome tour booking web app written in NodeJS, Express, MongoDB 🗽
Stars: ✭ 94 (-29.85%)
Mutual labels:  compression
VszLib
7-zip VB6 Helper
Stars: ✭ 35 (-73.88%)
Mutual labels:  compression
laravel-Packer
CSS, Javascript and Images packer/processors to Laravel
Stars: ✭ 57 (-57.46%)
Mutual labels:  compression
go7z
A native Go 7z archive reader.
Stars: ✭ 46 (-65.67%)
Mutual labels:  compression
qlZipInfo
MacOSX QuickLook Generator for zip, jar, tar, tar.gz (.tgz), tar.bz2 (.tbz2/.tbz), tar.Z. xar (.xar, .pkg), debian (.deb), RedHat Package Manager (.rpm), 7zip (.7z), xz, Microsoft cabinet (.cab), gzip (.gz), lha, BinHex 4.0 (.hqx), and Stuffit (.sit) archives, and ISO9660 images
Stars: ✭ 47 (-64.93%)
Mutual labels:  compression
lossyless
Generic image compressor for machine learning. Pytorch code for our paper "Lossy compression for lossless prediction".
Stars: ✭ 81 (-39.55%)
Mutual labels:  compression
MGARD
MGARD: MultiGrid Adaptive Reduction of Data
Stars: ✭ 16 (-88.06%)
Mutual labels:  compression
power-gzip
POWER9 gzip engine documentation and code samples
Stars: ✭ 16 (-88.06%)
Mutual labels:  compression
compressstream-explainer
Compression Streams Explained
Stars: ✭ 22 (-83.58%)
Mutual labels:  compression
fairytale
encode.ru community archiver
Stars: ✭ 29 (-78.36%)
Mutual labels:  compression
fasterai1
FasterAI: A repository for making smaller and faster models with the FastAI library.
Stars: ✭ 34 (-74.63%)
Mutual labels:  compression
salvador
A free, open-source compressor for the ZX0 format
Stars: ✭ 35 (-73.88%)
Mutual labels:  compression
Spring
FASTQ compression
Stars: ✭ 71 (-47.01%)
Mutual labels:  compression
TranscodingStreams.jl
Simple, consistent interfaces for any codec.
Stars: ✭ 71 (-47.01%)
Mutual labels:  compression
zstd-rs
zstd-decoder in pure rust
Stars: ✭ 148 (+10.45%)
Mutual labels:  compression
fpzip
Cython bindings for fpzip, a floating point image compression algorithm.
Stars: ✭ 24 (-82.09%)
Mutual labels:  compression
rbzip2
bzip2 for Ruby
Stars: ✭ 39 (-70.9%)
Mutual labels:  compression
supersnappy
Dependency-free and performant Nim Snappy implementation.
Stars: ✭ 55 (-58.96%)
Mutual labels:  compression
Hard-JPEG-LS
FPGA-based JPEG-LS image compressor.
Stars: ✭ 52 (-61.19%)
Mutual labels:  jpeg-ls

JPEG-LS Logo

CharLS

License Build status Build Status Vcpkg package

CharLS is a C++ implementation of the JPEG-LS standard for lossless and near-lossless image compression and decompression. JPEG-LS is a low-complexity image compression standard that matches JPEG 2000 compression ratios.

Features

  • C++14 library implementation with a binary C interface for maximum interoperability.
  • Supports Windows, Linux and macOS on x86, x64, arm, arm64, mips, s390x and ppc64le.
  • Adapters for .NET, JavaScript (WebAssembly) and Python applications available.
  • Excellent compression and decompression performance.

About JPEG-LS

JPEG-LS (ISO/IEC 14495-1:1999 / ITU-T.87) is an image compression standard derived from the Hewlett Packard LOCO algorithm. JPEG-LS has low complexity (meaning fast compression) and high compression ratios, similar to the JPEG 2000 lossless ratios. JPEG-LS is more similar to the old Lossless JPEG than to JPEG 2000, but interestingly the two different techniques result in vastly different performance characteristics. Wikipedia on lossless JPEG and JPEG-LS: http://en.wikipedia.org/wiki/Lossless_JPEG
Tip: ITU makes their version of the JPEG-LS standard (ITU-T.87) freely available for download. The text is identical with the ISO version.

About this software

This project's goal is to provide a full implementation of the ISO/IEC 14495-1:1999, "Lossless and near-lossless compression of continuous-tone still images: Baseline" standard. This library is written from scratch in portable C++. The master branch uses modern C++14. The 1.x branch is maintained in C++03. All mainstream JPEG-LS features are implemented by this library. According to preliminary test results published on http://imagecompression.info/gralic, CharLS is about twice as fast as the original HP code, and beats both JPEG-XR and JPEG 2000 by a factor 3.

Limitations

The following JPEG-LS options are not supported by the CharLS implementation. Most of these options are rarely used in practice.

  • No support to encode JPEG restart markers
    Decoding is supported, but no recovery mechanisme is implemented for corrupted JPEG-LS files.
  • No support for sub-sampled scans. Sub-sampling is a lossly encoding mechanism and not used in lossless scenarios.
  • No support for multi component frames with mixed component counts in a single scan. While technical possible all known JPEG-LS codecs put multi-component (color) images in a single scan or in multiple scans, but not use a mix of these in one file.
  • No support to encode\decode images with the height defined after the first scan (DNL marker).
  • No support for JPEG-LS mapping tables (palette).
  • No support for point transform. Point transform is a lossly encoding mechanism and not used in lossless scenarios.

Note about JPEG-LS part 2

After releasing the original baseline JPEG-LS standard ISO 14495-1:1999, ISO released an extension to the JPEG-LS standard called ISO/IEC 14495-2:2003: "Lossless and near-lossless compression of continuous-tone still images: Extensions". Currently CharLS doesn't support these extensions.

Supported platforms

The code is regularly compiled/tested on Windows and 64 bit Linux. Additionally, the code has been successfully tested on Linux Intel/AMD 32/64 bit (slackware, debian, gentoo), Solaris SPARC systems, Intel based Macs and Windows CE (ARM CPU, emulated), where the less common compilers may require minor code edits. It leverages C++ language features (templates, traits) to create optimized code, which generally perform best with recent compilers. If you compile with GCC, 64 bit code performs substantially better.

Getting Started

With vcpkg on Windows

PS> vcpkg install charls charls:x64-windows

With vcpkg on Linux or macOS

~/$ ./vcpkg install charls

For other platforms, more install options, how to build from source, and more, take a look at the Documentation.

Once you have the library, the sample folder provides some code samples to get you started.

Release Management

This repository is provided as source code, and specifically does not offer binary releases. Instead, it is encouraged to either “live at head” (build from the latest version of or, if necessary, build against a known, supported branch, known as a Long Term Support (LTS) branch. Support for older compiler versions will be phased out, 5 years from the moment that a newer version of that compiler has become available. The same applies to the minimal required C++ language version.

Long Term Support (LTS) Branches

Before any major breaking change in the API and/or ABI a branch will be created from master to freeze that snapshot as LTS branch.

Related Projects

Users & Acknowledgements

CharLS is being used by GDCM DICOM toolkit, thanks for Mathieu Malaterre for getting CharLS started on Linux. Kato Kanryu wrote an initial version of the color transforms and the DIB output format code, for an irfanview plugin using CharLS.

Legal

The code in this project is available through a BSD style license, allowing use of the code in commercial closed source applications if you wish. All the code in this project is written from scratch, and not based on other JPEG-LS implementations. Be aware that Hewlett Packard claims to own patents that apply to JPEG-LS implementations, but they license it for free for conformant JPEG-LS implementations. Some of these patents may already have expired in your country. Read more at http://www.hpl.hp.com/loco/ before you use this if you use this code for commercial purposes.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].