ISO - IEC 18181-4-2022 Information Technology - JPEG XL Image Coding System - Part 4 - Reference Software
ISO - IEC 18181-4-2022 Information Technology - JPEG XL Image Coding System - Part 4 - Reference Software
STANDARD 18181-4
First edition
2022-08
Reference number
ISO/IEC 18181-4:2022(E)
© ISO/IEC 2022
ISO/IEC 18181-4:2022(E)
Contents Page
Foreword......................................................................................................................................................................................................................................... iv
1 Scope.................................................................................................................................................................................................................................. 1
2 Normative references...................................................................................................................................................................................... 1
3 Terms and definitions..................................................................................................................................................................................... 1
4 Reference software............................................................................................................................................................................................ 1
4.1 General............................................................................................................................................................................................................ 1
4.2 Examples of use...................................................................................................................................................................................... 2
4.3 Access.............................................................................................................................................................................................................. 2
4.4 Dependencies............................................................................................................................................................................................ 3
5 Usage instructions.............................................................................................................................................................................................. 3
Foreword
ISO (the International Organization for Standardization) and IEC (the International Electrotechnical
Commission) form the specialized system for worldwide standardization. National bodies that are
members of ISO or IEC participate in the development of International Standards through technical
committees established by the respective organization to deal with particular fields of technical
activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other international
organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the
work.
The procedures used to develop this document and those intended for its further maintenance
are described in the ISO/IEC Directives, Part 1. In particular, the different approval criteria
needed for the different types of document should be noted. This document was drafted in
accordance with the editorial rules of the ISO/IEC Directives, Part 2 (see www.iso.org/directives or
www.iec.ch/members_experts/refdocs).
Attention is drawn to the possibility that some of the elements of this document may be the subject
of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent
rights. Details of any patent rights identified during the development of the document will be in the
Introduction and/or on the ISO list of patent declarations received (see www.iso.org/patents) or the IEC
list of patent declarations received (see https://patents.iec.ch).
Any trade name used in this document is information given for the convenience of users and does not
constitute an endorsement.
For an explanation of the voluntary nature of standards, the meaning of ISO specific terms and
expressions related to conformity assessment, as well as information about ISO's adherence to
the World Trade Organization (WTO) principles in the Technical Barriers to Trade (TBT) see
www.iso.org/iso/foreword.html. In the IEC, see www.iec.ch/understanding-standards.
This document was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology,
Subcommittee SC 29, Coding of audio, picture, multimedia and hypermedia information.
A list of all parts in the ISO/IEC 18181 series can be found on the ISO and IEC websites.
Any feedback or questions on this document should be directed to the user’s national standards
body. A complete listing of these bodies can be found at www.iso.org/members.html and
www.iec.ch/national-committees.
1 Scope
This document provides reference implementations of ISO/IEC 18181-1 and ISO/IEC 18181-2. The
software supports lossless and lossy compression of images and image sequences for a wide range
of use cases such as (but not limited to) images with wide colour gamut and/or high dynamic range
and responsive web images. This document includes source code and instructions for compilation and
usage.
2 Normative references
The following documents are referred to in the text in such a way that some or all of their content
constitutes requirements of this document. For dated references, only the edition cited applies. For
undated references, the latest edition of the referenced document (including any amendments) applies.
ISO/IEC 18181-1, Information technology — JPEG XL image coding system — Part 1: Core coding system
ISO/IEC 18181-2, Information technology — JPEG XL image coding system — Part 2: File format
4 Reference software
4.1 General
The purpose of this document is to provide the following:
— Reference decoder software capable of decoding codestreams that conform to ISO/IEC 18181-1 and
files that conform to ISO/IEC 18181-2.
— Reference encoder software capable of producing codestreams that conform to ISO/IEC 18181-1
and files that conform to ISO/IEC 18181-2.
The use of the reference software is not required for making an implementation of an encoder or decoder
in conformance to ISO/IEC 18181-1 or ISO/IEC 18181-2. Requirements established in ISO/IEC 18181-1
and ISO/IEC 18181-2 take precedence over the behaviour of the reference software.
NOTE 3 The computation resource characteristics in terms of program or data memory usage, execution
speed, etc. of sample software encoder or decoder implementations cannot be construed as representative of the
typical, minimal or maximal computational resource characteristics to be exhibited by implementations of some
parts of ISO/IEC 18181-1.
4.3 Access
The reference software implementation for the ISO/IEC 18181 is provided as an electronic attachment
to this document, available from https://standards.iso.org/iso-iec/18181/-4/ed-1/en
NOTE 1 Building and usage instructions are provided in the file called README.md which is contained in the
Zip file.
4.4 Dependencies
Excluding optional dependencies for input/output formats (detailed in Clause 5), the reference software
can be built for different operating systems and makes use of the following dependencies:
— highway (included in the Zip file)
— brotli (included in the Zip file)
— lcms2 or skcms (encoder only, to handle arbitrary ICC profiles in the input; skcms is included in the
Zip file)
— IQA-optimization, vmaf, difftest_ng (optional, for computing metrics for evaluation with the
benchmark_xl tool)
5 Usage instructions
This clause is informative.
Build instructions are provided in the file called README.md included in the Zip file.
To encode a source image to JPEG XL with default settings:
cjxl input.png output.jxl
The following input/output image formats are supported; all the dependencies listed here can be
optionally disabled:
— .ppm
— .pgm
— .pfm
— .pgx
— .png: requires lodepng or libpng
— .exr: requires libopenexr
— .gif: requires giflib
— .jpeg/.jpg: requires libjpeg or sjpeg, except for lossless JPEG bitstream recompression and
reconstruction as per ISO/IEC 18181-2
Additional options are documented in the README.md file.
ICS 35.040.30
Price based on 3 pages