3 releases (breaking)

0.3.0 Mar 7, 2023
0.2.0 Mar 5, 2023
0.1.0 Feb 28, 2023

#390 in Images

Download history 339/week @ 2023-11-20 433/week @ 2023-11-27 270/week @ 2023-12-04 377/week @ 2023-12-11 531/week @ 2023-12-18 99/week @ 2023-12-25 333/week @ 2024-01-01 578/week @ 2024-01-08 511/week @ 2024-01-15 348/week @ 2024-01-22 442/week @ 2024-01-29 503/week @ 2024-02-05 1051/week @ 2024-02-12 561/week @ 2024-02-19 382/week @ 2024-02-26 403/week @ 2024-03-04

2,414 downloads per month
Used in 4 crates (via jpeg2k)

BSD-2-Clause

1.5MB
41K SLoC

C2Rust port

An experimental Rust port is being developed in openjp2-rs.

To build the CLI tools opj_compress/opj_decompress/opj_dump with the Rust port use CMake flag USE_RUST_LIB.

mkdir build
cd build
cmake .. -DUSE_RUST_LIB=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release
make

OPENJPEG Library and Applications

What is OpenJPEG ?

OpenJPEG is an open-source JPEG 2000 codec written in C language. It has been developed in order to promote the use of JPEG 2000, a still-image compression standard from the Joint Photographic Experts Group (JPEG). Since April 2015, it is officially recognized by ISO/IEC and ITU-T as a JPEG 2000 Reference Software.

Who can use the code ?

badge-license

Anyone. As the OpenJPEG code is released under the BSD 2-clause "Simplified" License, anyone can use or modify the code, even for commercial applications. The only restriction is to retain the copyright in the sources or in the binaries documentation. Of course, if you modified the code in a way that might be of interest for other users, you are encouraged to share it (through a github pull request or by filling an issue) but this is not a requirement.

How to install and use OpenJPEG ?

API Documentation needs a major refactoring. Meanwhile, you can check installation instructions and codec documentation.

Current Status

badge-build

badge-msvc-build

badge-coverity

Who are the developers ?

The library is developed and maintained by the Image and Signal Processing Group (ISPGroup), in the Université catholique de Louvain (UCL, with the support of the CNES, the CS company and the intoPIX company. The JPWL module has been developed by the Digital Signal Processing Lab (DSPLab) of the University of Perugia, Italy (UNIPG).

Details on folders hierarchy

  • src
    • lib
      • openjp2: contains the sources of the openjp2 library (Part 1 & 2)
      • openjpip: complete client-server architecture for remote browsing of jpeg 2000 images.
    • bin: contains all applications that use the openjpeg library
      • common: common files to all applications
      • jp2: a basic codec
      • jpip: OpenJPIP applications (server and dec server)
        • java: a Java client viewer for JPIP
      • wx
        • OPJViewer: gui for displaying j2k files (based on wxWidget)
  • openjp2-rs: Rust port of src/lib/openjp2
  • wrapping
    • java: java jni to use openjpeg in a java program
  • thirdparty: thirdparty libraries used by some applications. These libraries will be built only if there are not found on the system. Note that libopenjpeg itself does not have any dependency.
  • doc: doxygen documentation setup file and man pages
  • tests: configuration files and utilities for the openjpeg test suite. All test images are located in openjpeg-data repository.
  • cmake: cmake related files
  • scripts: scripts for developers

See LICENSE for license and copyright information.

See INSTALL for installation procedures.

See NEWS for user visible changes in successive releases.

Deprecated components

The openjpwl, openjp3d and openmj2 components have been removed after the 2.4.0 release. Their building and working state is unknown. People interested in them should start from the 2.4.0 tag.

API/ABI

An API/ABI timeline is automatically updated here.

OpenJPEG strives to provide a stable API/ABI for your applications. As such it only exposes a limited subset of its functions. It uses a mechanism of exporting/hiding functions. If you are unsure which functions you can use in your applications, you should compile OpenJPEG using something similar to gcc: -fvisibility=hidden compilation flag. See also: http://gcc.gnu.org/wiki/Visibility

On windows, MSVC directly supports export/hiding function and as such the only API available is the one supported by OpenJPEG.

Dependencies

~1.5MB
~40K SLoC