Class charls


  • public class charls
    extends java.lang.Object
    Ported from C++ to Java by William Gandler BSD 3-Clause License Copyright (c) 2007, Jan de Vaan and Victor Derks All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. JPEG-LS Logo # CharLS [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://raw.githubusercontent.com/team-charls/charls/main/LICENSE.md) [![REUSE status](https://api.reuse.software/badge/github.com/team-charls/charls)](https://api.reuse.software/info/github.com/team-charls/charls) [![Build status](https://ci.appveyor.com/api/projects/status/yq0naf3v2m8nfa8r/branch/main?svg=true)](https://ci.appveyor.com/project/vbaderks/charls/branch/main) [![Build Status](https://dev.azure.com/team-charls/charls/_apis/build/status/team-charls.charls?branchName=main)](https://dev.azure.com/team-charls/charls/_build/latest?definitionId=2&branchName=main) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=team-charls_charls&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=team-charls_charls) [![Vcpkg package](https://repology.org/badge/version-for-repo/vcpkg/charls.svg)](https://repology.org/metapackage/charls) 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++17 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: 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 main branch uses C++17. The 2.x branch is maintained in C++14. All mainstream JPEG-LS features are implemented by this library. According to preliminary test results published on 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 mechanism 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 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". CharLS doesn't support this extension. ## 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. ### Support Matrix | Dimension | Supported Version | |---------------|------------------------| | C Version | >= 17 | | C++ Version | >= 17 | | CMake | >= 3.16 | | GCC | >= 9.1 | | Clang | >= 7.0.0 | | MSVC | >= 2019 | | Apple Clang | >= 12 | ## Getting Started With [vcpkg](https://github.com/Microsoft/vcpkg) on Windows ```powershell PS> vcpkg install charls charls:x64-windows ``` With [vcpkg](https://github.com/Microsoft/vcpkg) on Linux or macOS ```bash ~/$ ./vcpkg install charls ``` For other platforms, more install options, how to build from source, and more, take a look at the [documentation](https://github.com/team-charls/charls/wiki). 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 main to freeze that snapshot as LTS branch. ## Related Projects [CharLS.Native .NET](https://github.com/team-charls/charls-native-dotnet) - a .NET adapter assembly for CharLS: [NuGet package](https://www.nuget.org/packages/CharLS.Native/) [JPEG-LS WIC codec](https://github.com/team-charls/jpegls-wic-codec) - Windows Imaging Component (WIC) codec for JPEG-LS .jls files [charls-js](https://github.com/chafey/charls-js) - WebAssembly build of CharLS: [Demo](https://chafey.github.io/charls-js/test/browser/index.html) [JPEG-LS plugin for Python Pillow](https://github.com/planetmarshall/pillow-jpls) - JPEG-LS plugin for Python Pillow: [Pip package](https://pypi.org/project/pillow-jpls/) ## Users & Acknowledgements CharLS is being used by [GDCM DICOM toolkit](https://sourceforge.net/projects/gdcm/), thanks for [Mathieu Malaterre](https://sourceforge.net/users/malat) 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](https://www.irfanview.com) 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 before you use this if you use this code for commercial purposes.
    • Constructor Detail

      • charls

        public charls()
      • charls

        public charls​(int test)
    • Method Detail

      • charls_get_version_string

        java.lang.String charls_get_version_string()
      • charls_get_version_number

        void charls_get_version_number​(int[] major,
                                       int[] minor,
                                       int[] patch)
      • is_known_jpeg_sof_marker

        boolean is_known_jpeg_sof_marker​(byte marker_code)
      • is_restart_marker_code

        boolean is_restart_marker_code​(byte marker_code)
      • to_application_data_id

        int to_application_data_id​(byte marker_code)
      • log2_ceiling

        int log2_ceiling​(int n)
      • bit_to_byte_count

        int bit_to_byte_count​(int bit_count)
      • bit_to_byte_count

        long bit_to_byte_count​(long bit_count)
      • calculate_maximum_sample_value

        int calculate_maximum_sample_value​(int bits_per_sample)
      • compute_maximum_near_lossless

        int compute_maximum_near_lossless​(int maximum_sample_value)
      • initialization_value_for_a

        int initialization_value_for_a​(int range)
      • map_error_value

        int map_error_value​(int error_value)
      • unmap_error_value

        int unmap_error_value​(int mapped_error)
      • sign

        int sign​(int n)
      • bit_wise_sign

        int bit_wise_sign​(int i)
      • apply_sign

        int apply_sign​(int i,
                       int sign)
      • apply_sign_for_index

        int apply_sign_for_index​(int i,
                                 int sign)
      • compute_range_parameter

        int compute_range_parameter​(int maximum_sample_value,
                                    int near_lossless)
      • compute_limit_parameter

        int compute_limit_parameter​(int bits_per_sample)
      • compute_predicted_value

        int compute_predicted_value​(int ra,
                                    int rb,
                                    int rc)
      • compute_context_id

        int compute_context_id​(int q1,
                               int q2,
                               int q3)
      • quantize_gradient_org

        byte quantize_gradient_org​(int di,
                                   int threshold1,
                                   int threshold2,
                                   int threshold3,
                                   int near_lossless)
      • check_interleave_mode

        void check_interleave_mode​(charls.interleave_mode mode,
                                   java.lang.String error_value)
      • clamp

        int clamp​(int i,
                  int j,
                  int maximum_sample_value)
      • create_encoded_value

        charls.pair<java.lang.Integer> create_encoded_value​(int k,
                                                            int mapped_error)
      • precomputed_quantization_lut_available

        boolean precomputed_quantization_lut_available​(charls.traits tr,
                                                       int threshold1,
                                                       int threshold2,
                                                       int threshold3)
      • initialize_quantization_lut

        byte[] initialize_quantization_lut​(charls.traits tr,
                                           int threshold1,
                                           int threshold2,
                                           int threshold3,
                                           java.util.Vector<java.lang.Byte> quantization_lut)
      • pixel_count_to_pixel_stride

        int pixel_count_to_pixel_stride​(int pixel_count)
      • copy_samples

        void copy_samples​(byte[] source,
                          int source_offset,
                          byte[] destination,
                          int destination_offset,
                          long pixel_count)
      • copy_samples

        void copy_samples​(byte[] source,
                          int source_offset,
                          short[] destination,
                          int destination_offset,
                          long pixel_count)
      • copy_samples

        void copy_samples​(short[] source,
                          int source_offset,
                          short[] destination,
                          int destination_offset,
                          long pixel_count)
      • copy_samples

        void copy_samples​(short[] source,
                          int source_offset,
                          byte[] destination,
                          int destination_offset,
                          long pixel_count)
      • copy_samples

        void copy_samples​(int[] source,
                          int source_offset,
                          int[] destination,
                          int destination_offset,
                          long pixel_count)
      • copy_samples_masked

        void copy_samples_masked​(byte[] source,
                                 int source_offset,
                                 byte[] destination,
                                 int destination_offset,
                                 long pixel_count,
                                 int mask)
      • copy_samples_masked

        void copy_samples_masked​(byte[] source,
                                 int source_offset,
                                 short[] destination,
                                 int destination_offset,
                                 long pixel_count,
                                 int mask)
      • copy_samples_masked

        void copy_samples_masked​(short[] source,
                                 int source_offset,
                                 short[] destination,
                                 int destination_offset,
                                 long pixel_count,
                                 int mask)
      • copy_samples_masked

        void copy_samples_masked​(int[] source,
                                 int source_offset,
                                 int[] destination,
                                 int destination_offset,
                                 long pixel_count,
                                 int mask)
      • copy_line_2_components

        void copy_line_2_components​(byte[] source,
                                    int source_offset,
                                    byte[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_2_components

        void copy_line_2_components​(byte[] source,
                                    int source_offset,
                                    short[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_2_components

        void copy_line_2_components​(short[] source,
                                    int source_offset,
                                    short[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_2_components

        void copy_line_2_components​(short[] source,
                                    int source_offset,
                                    byte[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_2_components

        void copy_line_2_components​(int[] source,
                                    int source_offset,
                                    int[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_2_components

        void copy_line_2_components​(byte[] source,
                                    int source_offset,
                                    byte[] destination,
                                    int destination_offset,
                                    long pixel_count,
                                    int mask)
      • copy_line_2_components

        void copy_line_2_components​(byte[] source,
                                    int source_offset,
                                    short[] destination,
                                    int destination_offset,
                                    long pixel_count,
                                    int mask)
      • copy_line_2_components

        void copy_line_2_components​(short[] source,
                                    int source_offset,
                                    short[] destination,
                                    int destination_offset,
                                    long pixel_count,
                                    int mask)
      • copy_line_2_components

        void copy_line_2_components​(int[] source,
                                    int source_offset,
                                    int[] destination,
                                    int destination_offset,
                                    long pixel_count,
                                    int mask)
      • copy_line_3_components

        void copy_line_3_components​(byte[] source,
                                    int source_offset,
                                    byte[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_3_components

        void copy_line_3_components​(byte[] source,
                                    int source_offset,
                                    short[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_3_components

        void copy_line_3_components​(short[] source,
                                    int source_offset,
                                    short[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_3_components

        void copy_line_3_components​(short[] source,
                                    int source_offset,
                                    byte[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_3_components

        void copy_line_3_components​(int[] source,
                                    int source_offset,
                                    int[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_3_components

        void copy_line_3_components​(byte[] source,
                                    int source_offset,
                                    byte[] destination,
                                    int destination_offset,
                                    long pixel_count,
                                    int mask)
      • copy_line_3_components

        void copy_line_3_components​(byte[] source,
                                    int source_offset,
                                    short[] destination,
                                    int destination_offset,
                                    long pixel_count,
                                    int mask)
      • copy_line_3_components

        void copy_line_3_components​(short[] source,
                                    int source_offset,
                                    short[] destination,
                                    int destination_offset,
                                    long pixel_count,
                                    int mask)
      • copy_line_3_components

        void copy_line_3_components​(int[] source,
                                    int source_offset,
                                    int[] destination,
                                    int destination_offset,
                                    long pixel_count,
                                    int mask)
      • copy_line_3_components_transform_impl

        void copy_line_3_components_transform_impl​(byte[] source,
                                                   int source_offset,
                                                   byte[] destination,
                                                   int destination_offset,
                                                   long pixel_count,
                                                   charls.color_transformation transform,
                                                   boolean inverse)
      • copy_line_3_components_transform_impl

        void copy_line_3_components_transform_impl​(byte[] source,
                                                   int source_offset,
                                                   short[] destination,
                                                   int destination_offset,
                                                   long pixel_count,
                                                   charls.color_transformation transform,
                                                   boolean inverse)
      • copy_to_line_3_components_transform_impl

        void copy_to_line_3_components_transform_impl​(byte[] source,
                                                      int source_offset,
                                                      byte[] destination,
                                                      int destination_offset,
                                                      long pixel_count,
                                                      charls.color_transformation transform,
                                                      boolean inverse)
      • copy_to_line_3_components_transform_impl

        void copy_to_line_3_components_transform_impl​(byte[] source,
                                                      int source_offset,
                                                      short[] destination,
                                                      int destination_offset,
                                                      long pixel_count,
                                                      charls.color_transformation transform,
                                                      boolean inverse)
      • copy_line_3_components_transform_impl

        void copy_line_3_components_transform_impl​(short[] source,
                                                   int source_offset,
                                                   short[] destination,
                                                   int destination_offset,
                                                   long pixel_count,
                                                   charls.color_transformation transform,
                                                   boolean inverse)
      • copy_line_3_components_transform_impl

        void copy_line_3_components_transform_impl​(short[] source,
                                                   int source_offset,
                                                   byte[] destination,
                                                   int destination_offset,
                                                   long pixel_count,
                                                   charls.color_transformation transform,
                                                   boolean inverse)
      • copy_to_line_3_components_transform_impl

        void copy_to_line_3_components_transform_impl​(short[] source,
                                                      int source_offset,
                                                      short[] destination,
                                                      int destination_offset,
                                                      long pixel_count,
                                                      charls.color_transformation transform,
                                                      boolean inverse)
      • copy_line_4_components

        void copy_line_4_components​(byte[] source,
                                    int source_offset,
                                    byte[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_4_components

        void copy_line_4_components​(byte[] source,
                                    int source_offset,
                                    short[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_4_components

        void copy_line_4_components​(short[] source,
                                    int source_offset,
                                    short[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_4_components

        void copy_line_4_components​(short[] source,
                                    int source_offset,
                                    byte[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_4_components

        void copy_line_4_components​(int[] source,
                                    int source_offset,
                                    int[] destination,
                                    int destination_offset,
                                    long pixel_count)
      • copy_line_4_components

        void copy_line_4_components​(byte[] source,
                                    int source_offset,
                                    byte[] destination,
                                    int destination_offset,
                                    long pixel_count,
                                    int mask)
      • copy_line_4_components

        void copy_line_4_components​(byte[] source,
                                    int source_offset,
                                    short[] destination,
                                    int destination_offset,
                                    long pixel_count,
                                    int mask)
      • copy_line_4_components

        void copy_line_4_components​(short[] source,
                                    int source_offset,
                                    short[] destination,
                                    int destination_offset,
                                    long pixel_count,
                                    int mask)
      • copy_line_4_components

        void copy_line_4_components​(int[] source,
                                    int source_offset,
                                    int[] destination,
                                    int destination_offset,
                                    long pixel_count,
                                    int mask)
      • copy_pixels_2_components

        void copy_pixels_2_components​(byte[] source,
                                      int source_offset,
                                      byte[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_2_components

        void copy_pixels_2_components​(byte[] source,
                                      int source_offset,
                                      short[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_2_components

        void copy_pixels_2_components​(short[] source,
                                      int source_offset,
                                      short[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_2_components

        void copy_pixels_2_components​(short[] source,
                                      int source_offset,
                                      byte[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_2_components

        void copy_pixels_2_components​(int[] source,
                                      int source_offset,
                                      int[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_2_components

        void copy_pixels_2_components​(byte[] source,
                                      int source_offset,
                                      byte[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      int mask)
      • copy_pixels_2_components

        void copy_pixels_2_components​(byte[] source,
                                      int source_offset,
                                      short[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      int mask)
      • copy_pixels_2_components

        void copy_pixels_2_components​(short[] source,
                                      int source_offset,
                                      short[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      int mask)
      • copy_pixels_2_components

        void copy_pixels_2_components​(int[] source,
                                      int source_offset,
                                      int[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      int mask)
      • copy_pixels_3_components

        void copy_pixels_3_components​(byte[] source,
                                      int source_offset,
                                      byte[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_3_components

        void copy_pixels_3_components​(byte[] source,
                                      int source_offset,
                                      short[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_3_components

        void copy_pixels_3_components​(byte[] source,
                                      int source_offset,
                                      short[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      int mask)
      • copy_pixels_3_components

        void copy_pixels_3_components​(short[] source,
                                      int source_offset,
                                      byte[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_3_components

        void copy_pixels_3_components​(short[] source,
                                      int source_offset,
                                      short[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_3_components

        void copy_pixels_3_components​(int[] source,
                                      int source_offset,
                                      int[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_3_components

        void copy_pixels_3_components​(byte[] source,
                                      int source_offset,
                                      byte[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      int mask)
      • copy_pixels_3_components

        void copy_pixels_3_components​(short[] source,
                                      int source_offset,
                                      short[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      int mask)
      • copy_pixels_3_components

        void copy_pixels_3_components​(int[] source,
                                      int source_offset,
                                      int[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      int mask)
      • copy_pixels_3_components_transform_impl

        void copy_pixels_3_components_transform_impl​(byte[] source,
                                                     int source_offset,
                                                     byte[] destination,
                                                     int destination_offset,
                                                     long pixel_count,
                                                     charls.color_transformation transform,
                                                     boolean inverse)
      • copy_pixels_3_components_transform_impl

        void copy_pixels_3_components_transform_impl​(byte[] source,
                                                     int source_offset,
                                                     short[] destination,
                                                     int destination_offset,
                                                     long pixel_count,
                                                     charls.color_transformation transform,
                                                     boolean inverse)
      • copy_pixels_3_components_transform_impl

        void copy_pixels_3_components_transform_impl​(short[] source,
                                                     int source_offset,
                                                     short[] destination,
                                                     int destination_offset,
                                                     long pixel_count,
                                                     charls.color_transformation transform,
                                                     boolean inverse)
      • copy_pixels_3_components_transform_impl

        void copy_pixels_3_components_transform_impl​(short[] source,
                                                     int source_offset,
                                                     byte[] destination,
                                                     int destination_offset,
                                                     long pixel_count,
                                                     charls.color_transformation transform,
                                                     boolean inverse)
      • copy_pixels_4_components

        void copy_pixels_4_components​(byte[] source,
                                      int source_offset,
                                      byte[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_4_components

        void copy_pixels_4_components​(byte[] source,
                                      int source_offset,
                                      short[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_4_components

        void copy_pixels_4_components​(short[] source,
                                      int source_offset,
                                      short[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_4_components

        void copy_pixels_4_components​(short[] source,
                                      int source_offset,
                                      byte[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_4_components

        void copy_pixels_4_components​(int[] source,
                                      int source_offset,
                                      int[] destination,
                                      int destination_offset,
                                      long pixel_count)
      • copy_pixels_4_components

        void copy_pixels_4_components​(byte[] source,
                                      int source_offset,
                                      byte[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      int mask)
      • copy_pixels_4_components

        void copy_pixels_4_components​(byte[] source,
                                      int source_offset,
                                      short[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      int mask)
      • copy_pixels_4_components

        void copy_pixels_4_components​(short[] source,
                                      int source_offset,
                                      short[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      int mask)
      • copy_pixels_4_components

        void copy_pixels_4_components​(int[] source,
                                      int source_offset,
                                      int[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      int mask)
      • copy_from_line_buffer_8

        void copy_from_line_buffer_8​(byte[] source,
                                     int source_offset,
                                     byte[] destination,
                                     int destination_offset,
                                     long pixel_count,
                                     charls.interleave_mode interleave,
                                     int component_count,
                                     charls.color_transformation transform,
                                     boolean inverse)
      • copy_from_line_buffer_8

        void copy_from_line_buffer_8​(byte[] source,
                                     int source_offset,
                                     short[] destination,
                                     int destination_offset,
                                     long pixel_count,
                                     charls.interleave_mode interleave,
                                     int component_count,
                                     charls.color_transformation transform,
                                     boolean inverse)
      • copy_from_line_buffer_16

        void copy_from_line_buffer_16​(short[] source,
                                      int source_offset,
                                      short[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      charls.interleave_mode interleave,
                                      int component_count,
                                      charls.color_transformation transform,
                                      boolean inverse)
      • copy_from_line_buffer_16

        void copy_from_line_buffer_16​(short[] source,
                                      int source_offset,
                                      byte[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      charls.interleave_mode interleave,
                                      int component_count,
                                      charls.color_transformation transform,
                                      boolean inverse)
      • copy_from_line_buffer_32

        void copy_from_line_buffer_32​(int[] source,
                                      int source_offset,
                                      int[] destination,
                                      int destination_offset,
                                      long pixel_count,
                                      charls.interleave_mode interleave,
                                      int component_count,
                                      charls.color_transformation transform,
                                      boolean inverse)
      • copy_to_line_buffer_8

        void copy_to_line_buffer_8​(byte[] source,
                                   int source_offset,
                                   byte[] destination,
                                   int destination_offset,
                                   long pixel_count,
                                   charls.interleave_mode interleave,
                                   int component_count,
                                   int bits_per_sample,
                                   charls.color_transformation transform,
                                   boolean inverse,
                                   int mask)
      • copy_to_line_buffer_16

        void copy_to_line_buffer_16​(byte[] source,
                                    int source_offset,
                                    short[] destination,
                                    int destination_offset,
                                    long pixel_count,
                                    charls.interleave_mode interleave,
                                    int component_count,
                                    int bits_per_sample,
                                    charls.color_transformation transform,
                                    boolean inverse,
                                    int mask)
      • copy_to_line_buffer_32

        void copy_to_line_buffer_32​(int[] source,
                                    int source_offset,
                                    int[] destination,
                                    int destination_offset,
                                    long pixel_count,
                                    charls.interleave_mode interleave,
                                    int component_count,
                                    int bits_per_sample,
                                    charls.color_transformation transform,
                                    boolean inverse,
                                    int mask)
      • read_big_endian_unaligned

        long read_big_endian_unaligned​(byte[] buffer,
                                       int offset)
      • push_back

        void push_back​(java.util.Vector<java.lang.Byte> values,
                       short value)
      • push_back

        void push_back​(java.util.Vector<java.lang.Byte> values,
                       int value)
      • check_operation

        void check_operation​(boolean expression)
      • check_argument

        void check_argument​(boolean expression)
      • check_argument

        void check_argument​(boolean expression,
                            java.lang.String error_value)
      • check_argument

        void check_argument​(charls.span8 argument)
      • check_argument

        void check_argument​(charls.span16 argument)
      • checked_mul

        int checked_mul​(int a,
                        int b)
      • check_argument_range

        void check_argument_range​(int minimum,
                                  int maximum,
                                  int value)
      • check_argument_range

        void check_argument_range​(int minimum,
                                  int maximum,
                                  int value,
                                  java.lang.String error_value)
      • checked_mul

        long checked_mul​(long a,
                         long b)
      • charls_jpegls_encoder_encode_from_buffer

        java.lang.String charls_jpegls_encoder_encode_from_buffer​(charls.charls_jpegls_encoder encoder,
                                                                  short[] source_buffer,
                                                                  int source_size_bytes,
                                                                  int stride)
      • charls_jpegls_encoder_encode_from_buffer

        java.lang.String charls_jpegls_encoder_encode_from_buffer​(charls.charls_jpegls_encoder encoder,
                                                                  byte[] source_buffer,
                                                                  int source_size_bytes,
                                                                  int stride)
      • charls_jpegls_decoder_decode_to_buffer

        java.lang.String charls_jpegls_decoder_decode_to_buffer​(charls.charls_jpegls_decoder decoder,
                                                                byte[] destination_buffer,
                                                                int destination_size_bytes,
                                                                int stride)
      • create_quantize_lut_lossless

        java.util.Vector<java.lang.Byte> create_quantize_lut_lossless​(int bit_count)
      • valid_spiff_header_test

        public void valid_spiff_header_test()
      • invalid_compression_spiff_header_test

        public void invalid_compression_spiff_header_test()
      • invalid_profile_spiff_header_test

        public void invalid_profile_spiff_header_test()
      • invalid_component_count_spiff_header_test

        public void invalid_component_count_spiff_header_test()
      • all_jpegls_bits_per_sample_are_valid

        public void all_jpegls_bits_per_sample_are_valid()
      • invalid_bits_per_sample_spiff_header_test

        public void invalid_bits_per_sample_spiff_header_test()
      • invalid_height_spiff_header_test

        public void invalid_height_spiff_header_test()
      • invalid_width_spiff_header_test

        public void invalid_width_spiff_header_test()
      • invalid_color_space_spiff_header_test

        public void invalid_color_space_spiff_header_test()
      • invalid_color_space_component_count_spiff_header_test

        public void invalid_color_space_component_count_spiff_header_test()
      • invalid_vertical_resolution_spiff_header_test

        public void invalid_vertical_resolution_spiff_header_test()
      • invalid_horizontal_resolution_spiff_header_test

        public void invalid_horizontal_resolution_spiff_header_test()
      • spiff_header_nullptr_spiff_header_test

        public void spiff_header_nullptr_spiff_header_test()
      • frame_info_nullptr_spiff_header_test

        public void frame_info_nullptr_spiff_header_test()
      • test_traits_16_bit

        public void test_traits_16_bit()
      • test_traits_8_bit

        public void test_traits_8_bit()
      • default_traits_create_test

        public void default_traits_create_test()
      • default_traits_modulo_range_test

        public void default_traits_modulo_range_test()
      • transform_hp1_round_trip

        public void transform_hp1_round_trip()
      • transform_hp2_round_trip

        public void transform_hp2_round_trip()
      • transform_hp3_round_trip

        public void transform_hp3_round_trip()
      • golomb_table_test

        public void golomb_table_test()
      • run_mode_context_test

        public void run_mode_context_test()
      • read_header_from_buffer_preceded_with_fill_bytes

        public void read_header_from_buffer_preceded_with_fill_bytes()
      • read_header_with_application_data

        public void read_header_with_application_data()
      • read_header_jpegls_preset_parameter_segment

        public void read_header_jpegls_preset_parameter_segment()
      • test_read_spiff_header

        public void test_read_spiff_header()
      • read_spiff_header_low_version_newer

        public void read_spiff_header_low_version_newer()
      • read_spiff_header_high_version_to_new

        public void read_spiff_header_high_version_to_new()
      • read_header_with_define_restart_interval_16_bit

        public void read_header_with_define_restart_interval_16_bit()
      • read_header_with_define_restart_interval_24_bit

        public void read_header_with_define_restart_interval_24_bit()
      • read_header_with_define_restart_interval_32_bit

        public void read_header_with_define_restart_interval_32_bit()
      • read_header_with_2_define_restart_intervals

        public void read_header_with_2_define_restart_intervals()
      • read_mapping_table

        public void read_mapping_table()
      • mapping_table_count_is_zero_at_start

        public void mapping_table_count_is_zero_at_start()
      • mapping_table_count_after_read_header

        public void mapping_table_count_after_read_header()
      • mapping_table_count_after_read_header_after_frame

        public void mapping_table_count_after_read_header_after_frame()
      • mapping_table_count_after_read_header_before_frame

        public void mapping_table_count_after_read_header_before_frame()
      • read_mapping_table_continuation

        public void read_mapping_table_continuation()
      • read_define_number_of_lines_16_bit

        public void read_define_number_of_lines_16_bit()
      • read_define_number_of_lines_24_bit

        public void read_define_number_of_lines_24_bit()
      • read_define_number_of_lines_32_bit

        public void read_define_number_of_lines_32_bit()
      • create_test_spiff_header

        java.util.Vector<java.lang.Byte> create_test_spiff_header()
      • create_test_spiff_header

        java.util.Vector<java.lang.Byte> create_test_spiff_header​(short high_version,
                                                                  short low_version,
                                                                  boolean end_of_directory,
                                                                  short component_count)
      • read_spiff_header

        public void read_spiff_header​(short low_version)
      • read_header_with_application_data

        public void read_header_with_application_data​(short data_number)
      • remaining_destination_will_be_zero_after_create_with_default

        public void remaining_destination_will_be_zero_after_create_with_default()
      • write_start_of_image

        public void write_start_of_image()
      • write_end_of_image

        public void write_end_of_image()
      • write_end_of_image_even_no_extra_byte_needed

        public void write_end_of_image_even_no_extra_byte_needed()
      • write_end_of_image_even_extra_byte_needed

        public void write_end_of_image_even_extra_byte_needed()
      • write_end_of_image_even_extra_byte_needed_not_enabled

        public void write_end_of_image_even_extra_byte_needed_not_enabled()
      • write_spiff_segment

        public void write_spiff_segment()
      • write_spiff_end_of_directory_segment

        public void write_spiff_end_of_directory_segment()
      • write_spiff_directory_entry

        public void write_spiff_directory_entry()
      • write_start_of_frame_segment

        public void write_start_of_frame_segment()
      • write_start_of_frame_segment_large_image_width

        public void write_start_of_frame_segment_large_image_width()
      • write_start_of_frame_segment_large_image_height

        public void write_start_of_frame_segment_large_image_height()
      • write_start_of_frame_marker_segment_with_low_boundary_values

        public void write_start_of_frame_marker_segment_with_low_boundary_values()
      • write_start_of_frame_marker_segment_with_high_boundary_values_and_serialize

        public void write_start_of_frame_marker_segment_with_high_boundary_values_and_serialize()
      • write_color_transform_segment

        public void write_color_transform_segment()
      • write_jpegls_extended_parameters_marker_and_serialize

        public void write_jpegls_extended_parameters_marker_and_serialize()
      • write_jpegls_preset_parameters_segment_for_oversized_image_dimensions

        public void write_jpegls_preset_parameters_segment_for_oversized_image_dimensions()
      • write_start_of_scan_segment

        public void write_start_of_scan_segment()
      • write_start_of_scan_segment_with_table_id

        public void write_start_of_scan_segment_with_table_id()
      • write_start_of_scan_segment_with_table_id_after_rewind

        public void write_start_of_scan_segment_with_table_id_after_rewind()
      • advance_position

        public void advance_position()
      • rewind

        public void rewind()
      • write_minimal_table

        public void write_minimal_table()
      • write_table_max_entry_size

        public void write_table_max_entry_size()
      • write_table_fits_in_single_segment

        public void write_table_fits_in_single_segment()
      • write_table_that_requires_two_segment

        public void write_table_that_requires_two_segment()
      • decode_encoded_ff_pattern

        public void decode_encoded_ff_pattern()
      • peek_byte

        public void peek_byte()
      • read_bit

        public void read_bit()
      • peek_0_bits

        public void peek_0_bits()
      • peek_0_bits_empty_buffer

        public void peek_0_bits_empty_buffer()
      • append_to_bit_stream_zero_length

        public void append_to_bit_stream_zero_length()
      • append_to_bit_stream_ff_pattern

        public void append_to_bit_stream_ff_pattern()
      • create_and_move

        public void create_and_move()
      • frame_info_without_read_header

        public void frame_info_without_read_header()
      • read_file

        public byte[] read_file​(java.lang.String filename)
      • frame_info_from_temporary_object

        public void frame_info_from_temporary_object()
      • test_get_destination_size

        public void test_get_destination_size()
      • get_destination_size_stride_interleave_none

        public void get_destination_size_stride_interleave_none()
      • get_destination_size_stride_interleave_none_16_bit

        public void get_destination_size_stride_interleave_none_16_bit()
      • get_destination_size_stride_interleave_line

        public void get_destination_size_stride_interleave_line()
      • get_destination_size_stride_interleave_sample

        public void get_destination_size_stride_interleave_sample()
      • get_destination_size_for_small_image_with_custom_stride

        public void get_destination_size_for_small_image_with_custom_stride()
      • triplet_to_planar

        void triplet_to_planar​(byte[] triplet_buffer,
                               int width,
                               int height)
      • decode_reference_file_from_buffer

        public void decode_reference_file_from_buffer()
      • get_destination_size_returns_zero_for_abbreviated_table_specification

        public void get_destination_size_returns_zero_for_abbreviated_table_specification()
      • find_scan_header

        int find_scan_header​(java.util.Vector<java.lang.Byte> data,
                             int begin)
      • find_first_restart_marker

        int find_first_restart_marker​(java.util.Vector<java.lang.Byte> data,
                                      int begin)
      • create_default_pc_parameters_segment

        java.util.Vector<java.lang.Byte> create_default_pc_parameters_segment()
      • insert_pc_parameters_segments

        void insert_pc_parameters_segments​(java.util.Vector<java.lang.Byte> jpegls_source,
                                           int component_count)
      • decode_with_default_pc_parameters_before_each_sos

        public void decode_with_default_pc_parameters_before_each_sos()
      • decode_color_interleave_none_with_standard_stride_works

        public void decode_color_interleave_none_with_standard_stride_works()
      • decode_color_interleave_sample_with_standard_stride_works

        public void decode_color_interleave_sample_with_standard_stride_works()
      • decode_color_interleave_none_with_custom_stride_works

        public void decode_color_interleave_none_with_custom_stride_works()
      • decode_color_interleave_sample_with_custom_stride_works

        public void decode_color_interleave_sample_with_custom_stride_works()
      • test_read_spiff_header_2

        public void test_read_spiff_header_2()
      • read_spiff_header_from_temporary_decoder

        public void read_spiff_header_from_temporary_decoder()
      • read_spiff_header_from_non_jpegls_data

        public void read_spiff_header_from_non_jpegls_data()
      • read_spiff_header_from_jpegls_without_spiff

        public void read_spiff_header_from_jpegls_without_spiff()
      • read_invalid_spiff_header_with_read_header

        public void read_invalid_spiff_header_with_read_header()
      • simple_decode

        public void simple_decode()
      • verify_encoded_bytes

        boolean verify_encoded_bytes​(byte[] uncompressed_source,
                                     byte[] encoded_source)
      • test_compliance

        void test_compliance​(byte[] encoded_source,
                             byte[] uncompressed_source,
                             boolean check_encode)
      • decode_file_with_extra_begin_bytes_for_restart_marker_code

        public void decode_file_with_extra_begin_bytes_for_restart_marker_code()
      • oversize_image_dimension_before_start_of_frame

        public void oversize_image_dimension_before_start_of_frame()
      • oversize_image_dimension_zero_before_start_of_frame

        public void oversize_image_dimension_zero_before_start_of_frame()
      • decode_to_buffer_with_uint16_size_works

        public void decode_to_buffer_with_uint16_size_works()
      • abbreviated_format_mapping_table_count_after_read_header

        public void abbreviated_format_mapping_table_count_after_read_header()
      • compressed_data_format_interchange

        public void compressed_data_format_interchange()
      • compressed_data_format_abbreviated_image_data

        public void compressed_data_format_abbreviated_image_data()
      • mapping_table_count_after_decode_table_after_first_scan

        public void mapping_table_count_after_decode_table_after_first_scan()
      • mapping_table_id_returns_zero

        public void mapping_table_id_returns_zero()
      • create_destroy

        public void create_destroy()
      • encoder_create_and_move

        public void encoder_create_and_move()
      • frame_info_max_and_min

        public void frame_info_max_and_min()
      • interleave_mode

        public void interleave_mode()
      • near_lossless

        public void near_lossless()
      • estimated_destination_size_minimal_frame_info

        public void estimated_destination_size_minimal_frame_info()
      • estimated_destination_size_monochrome_16_bit

        public void estimated_destination_size_monochrome_16_bit()
      • estimated_destination_size_color_8_bit

        public void estimated_destination_size_color_8_bit()
      • estimated_destination_size_very_wide

        public void estimated_destination_size_very_wide()
      • estimated_destination_size_very_high

        public void estimated_destination_size_very_high()
      • destination

        public void destination()
      • write_standard_spiff_header_test

        public void write_standard_spiff_header_test()
      • write_standard_spiff_header_with_non_matching_color_space

        public void write_standard_spiff_header_with_non_matching_color_space()
      • write_spiff_header_test

        public void write_spiff_header_test()
      • write_spiff_entry_test

        public void write_spiff_entry_test()
      • write_spiff_entry_twice

        public void write_spiff_entry_twice()
      • write_empty_spiff_entry

        public void write_empty_spiff_entry()
      • write_spiff_end_of_directory_entry_test

        public void write_spiff_end_of_directory_entry_test()
      • write_comment_test

        public void write_comment_test()
      • write_empty_comment

        public void write_empty_comment()
      • write_max_comment

        public void write_max_comment()
      • write_two_comment

        public void write_two_comment()
      • write_comment_before_encode

        public void write_comment_before_encode()
      • write_application_data

        public void write_application_data()
      • write_empty_application_data

        public void write_empty_application_data()
      • write_max_application_data

        public void write_max_application_data()
      • write_two_application_data

        public void write_two_application_data()
      • write_application_data_before_encode

        public void write_application_data_before_encode()
      • write_mapping_table

        public void write_mapping_table()
      • write_mapping_table_before_encode

        public void write_mapping_table_before_encode()
      • create_abbreviated_format

        public void create_abbreviated_format()
      • set_preset_coding_parameters

        public void set_preset_coding_parameters()
      • encode_with_preset_coding_parameters_non_default_values

        public void encode_with_preset_coding_parameters_non_default_values()
      • set_table_id

        public void set_table_id()
      • set_table_id_clear_id

        public void set_table_id_clear_id()
      • encode_with_spiff_header

        public void encode_with_spiff_header()
      • encode_with_color_transformation

        public void encode_with_color_transformation()
      • encode_16_bit

        public void encode_16_bit()
      • simple_encode

        public void simple_encode()
      • encode_with_stride_interleave_none_8_bit

        public void encode_with_stride_interleave_none_8_bit()
      • encode_with_stride_interleave_none_8_bit_small_image

        public void encode_with_stride_interleave_none_8_bit_small_image()
      • encode_with_stride_interleave_none_16_bit

        public void encode_with_stride_interleave_none_16_bit()
      • encode_with_stride_interleave_sample_8_bit

        public void encode_with_stride_interleave_sample_8_bit()
      • encode_with_stride_interleave_sample_16_bit

        public void encode_with_stride_interleave_sample_16_bit()
      • encode_1_component_4_bit_with_high_bits_set

        public void encode_1_component_4_bit_with_high_bits_set()
      • encode_1_component_12_bit_with_high_bits_set

        public void encode_1_component_12_bit_with_high_bits_set()
      • encode_3_components_6_bit_with_high_bits_set_interleave_mode_sample

        public void encode_3_components_6_bit_with_high_bits_set_interleave_mode_sample()
      • encode_3_components_6_bit_with_high_bits_set_interleave_mode_line

        public void encode_3_components_6_bit_with_high_bits_set_interleave_mode_line()
      • encode_3_components_10_bit_with_high_bits_set_interleave_mode_sample

        public void encode_3_components_10_bit_with_high_bits_set_interleave_mode_sample()
      • encode_3_components_10_bit_with_high_bits_set_interleave_mode_line

        public void encode_3_components_10_bit_with_high_bits_set_interleave_mode_line()
      • encode_4_components_5_bit_with_high_bits_set_interleave_mode_line

        public void encode_4_components_5_bit_with_high_bits_set_interleave_mode_line()
      • encode_4_components_7_bit_with_high_bits_set_interleave_mode_sample

        public void encode_4_components_7_bit_with_high_bits_set_interleave_mode_sample()
      • encode_4_components_11_bit_with_high_bits_set_interleave_mode_line

        public void encode_4_components_11_bit_with_high_bits_set_interleave_mode_line()
      • encode_4_components_13_bit_with_high_bits_set_interleave_mode_sample

        public void encode_4_components_13_bit_with_high_bits_set_interleave_mode_sample()
      • encode_2_components_5_bit_with_high_bits_set_interleave_mode_line

        public void encode_2_components_5_bit_with_high_bits_set_interleave_mode_line()
      • encode_2_components_7_bit_with_high_bits_set_interleave_mode_sample

        public void encode_2_components_7_bit_with_high_bits_set_interleave_mode_sample()
      • encode_2_components_11_bit_with_high_bits_set_interleave_mode_line

        public void encode_2_components_11_bit_with_high_bits_set_interleave_mode_line()
      • encode_2_components_13_bit_with_high_bits_set_interleave_mode_sample

        public void encode_2_components_13_bit_with_high_bits_set_interleave_mode_sample()
      • encode_3_components_8_bit_with_high_bits_set_interleave_mode_sample_hp1

        public void encode_3_components_8_bit_with_high_bits_set_interleave_mode_sample_hp1()
      • encode_3_components_8_bit_with_high_bits_set_interleave_mode_sample_hp2

        public void encode_3_components_8_bit_with_high_bits_set_interleave_mode_sample_hp2()
      • encode_3_components_8_bit_with_high_bits_set_interleave_mode_sample_hp3

        public void encode_3_components_8_bit_with_high_bits_set_interleave_mode_sample_hp3()
      • encode_3_components_8_bit_with_high_bits_set_interleave_mode_line_hp1

        public void encode_3_components_8_bit_with_high_bits_set_interleave_mode_line_hp1()
      • encode_3_components_8_bit_with_high_bits_set_interleave_mode_line_hp2

        public void encode_3_components_8_bit_with_high_bits_set_interleave_mode_line_hp2()
      • encode_3_components_8_bit_with_high_bits_set_interleave_mode_line_hp3

        public void encode_3_components_8_bit_with_high_bits_set_interleave_mode_line_hp3()
      • encode_3_components_16_bit_with_high_bits_set_interleave_mode_sample_hp1

        public void encode_3_components_16_bit_with_high_bits_set_interleave_mode_sample_hp1()
      • encode_3_components_16_bit_with_high_bits_set_interleave_mode_sample_hp2

        public void encode_3_components_16_bit_with_high_bits_set_interleave_mode_sample_hp2()
      • encode_3_components_16_bit_with_high_bits_set_interleave_mode_sample_hp3

        public void encode_3_components_16_bit_with_high_bits_set_interleave_mode_sample_hp3()
      • encode_3_components_16_bit_with_high_bits_set_interleave_mode_line_hp1

        public void encode_3_components_16_bit_with_high_bits_set_interleave_mode_line_hp1()
      • encode_3_components_16_bit_with_high_bits_set_interleave_mode_line_hp2

        public void encode_3_components_16_bit_with_high_bits_set_interleave_mode_line_hp2()
      • encode_3_components_16_bit_with_high_bits_set_interleave_mode_line_hp3

        public void encode_3_components_16_bit_with_high_bits_set_interleave_mode_line_hp3()
      • rewind_test

        public void rewind_test()
      • rewind_before_destination

        public void rewind_before_destination()
      • encode_image_odd_size

        public void encode_image_odd_size()
      • encode_image_odd_size_forced_even

        public void encode_image_odd_size_forced_even()
      • compute_defaults_using_reference_implementation

        charls.thresholds compute_defaults_using_reference_implementation​(int max_value,
                                                                          int near)
      • encode_image_include_pc_parameters_jai

        public void encode_image_include_pc_parameters_jai()
      • encode_image_with_include_pc_parameters_jai_not_set

        public void encode_image_with_include_pc_parameters_jai_not_set()
      • large_image_contains_lse_for_oversize_image_dimension

        public void large_image_contains_lse_for_oversize_image_dimension()
      • encode_oversized_image

        public void encode_oversized_image()
      • image_contains_no_preset_coding_parameters_by_default

        public void image_contains_no_preset_coding_parameters_by_default()
      • image_contains_no_preset_coding_parameters_if_configured_pc_is_default

        public void image_contains_no_preset_coding_parameters_if_configured_pc_is_default()
      • image_contains_preset_coding_parameters_if_configured_pc_is_non_default

        public void image_contains_preset_coding_parameters_if_configured_pc_is_non_default()
      • image_contains_preset_coding_parameters_if_configured_pc_has_diff_max_value

        public void image_contains_preset_coding_parameters_if_configured_pc_has_diff_max_value()
      • table_c3

        public void table_c3()
      • max_value_lossless

        public void max_value_lossless()
      • min_value_lossless

        public void min_value_lossless()
      • min_high_value_lossless

        public void min_high_value_lossless()
      • max_low_value_lossless

        public void max_low_value_lossless()
      • max_value_max_lossy

        public void max_value_max_lossy()
      • min_value_max_lossy

        public void min_value_max_lossy()
      • is_valid_default

        public void is_valid_default()
      • is_valid_thresholds_zero

        public void is_valid_thresholds_zero()
      • is_default_nothing_set

        public void is_default_nothing_set()
      • is_default_same_as_default

        public void is_default_same_as_default()
      • is_default_same_as_default_except_reset

        public void is_default_same_as_default_except_reset()
      • decode_encode_file

        public void decode_encode_file​(java.lang.String encoded_filename,
                                       java.lang.String raw_filename,
                                       boolean check_encode)
      • decode_encode_color_8_bit_interleave_none_lossless

        public void decode_encode_color_8_bit_interleave_none_lossless()
      • decode_encode_color_8_bit_interleave_line_lossless

        public void decode_encode_color_8_bit_interleave_line_lossless()
      • decode_encode_color_8_bit_interleave_sample_lossless

        public void decode_encode_color_8_bit_interleave_sample_lossless()
      • decode_encode_color_8_bit_interleave_none_near_lossless_3

        public void decode_encode_color_8_bit_interleave_none_near_lossless_3()
      • decode_encode_color_8_bit_interleave_line_near_lossless_3

        public void decode_encode_color_8_bit_interleave_line_near_lossless_3()
      • decode_encode_color_8_bit_interleave_sample_near_lossless_3

        public void decode_encode_color_8_bit_interleave_sample_near_lossless_3()
      • decode_encode_color_8_bit_interleave_none_lossless_non_default

        public void decode_encode_color_8_bit_interleave_none_lossless_non_default()
      • decode_encode_color_8_bit_interleave_none_near_lossless_3_non_default

        public void decode_encode_color_8_bit_interleave_none_near_lossless_3_non_default()
      • decode_encode_monochrome_16_bit_lossless

        public void decode_encode_monochrome_16_bit_lossless()
      • decode_monochrome_16_bit_near_lossless_3

        public void decode_monochrome_16_bit_near_lossless_3()
      • decode_encode_tulips_monochrome_8_bit_lossless_hp

        public void decode_encode_tulips_monochrome_8_bit_lossless_hp()
      • decode_color_8_bit_interleave_none_lossless_restart_7

        public void decode_color_8_bit_interleave_none_lossless_restart_7()
      • decode_color_8_bit_interleave_line_lossless_restart_7

        public void decode_color_8_bit_interleave_line_lossless_restart_7()
      • decode_color_8_bit_interleave_sample_lossless_restart_7

        public void decode_color_8_bit_interleave_sample_lossless_restart_7()
      • decode_color_8_bit_interleave_sample_lossless_restart_300

        public void decode_color_8_bit_interleave_sample_lossless_restart_300()
      • decode_monochrome_16_bit_restart_5

        public void decode_monochrome_16_bit_restart_5()
      • compare_buffers

        public void compare_buffers​(byte[] buffer1,
                                    int size1,
                                    byte[] buffer2,
                                    int size2)
      • decode_mapping_table_sample_annex_h4_5

        public void decode_mapping_table_sample_annex_h4_5()
      • test_decoded_data

        public void test_decoded_data​(byte[] decoded_source,
                                      java.lang.String raw_filename)
      • decode_simple_8_bit_monochrome

        public byte[] decode_simple_8_bit_monochrome​(byte[] source)
      • call_decode_simple_8_bit_monochrome

        public void call_decode_simple_8_bit_monochrome()
      • decode_advanced

        public byte[] decode_advanced​(byte[] source)
      • call_decode_advanced

        public void call_decode_advanced()
      • encode_simple_8_bit_monochrome

        public byte[] encode_simple_8_bit_monochrome​(byte[] source,
                                                     int width,
                                                     int height)
      • call_encode_simple_8_bit_monochrome

        public void call_encode_simple_8_bit_monochrome()
      • encode_advanced_8_bit_monochrome

        public byte[] encode_advanced_8_bit_monochrome​(byte[] source,
                                                       int width,
                                                       int height)
      • call_encode_advanced_8_bit_monochrome

        public void call_encode_advanced_8_bit_monochrome()
      • charls_get_version_string_test

        public void charls_get_version_string_test()
      • charls_get_version_number_all

        public void charls_get_version_number_all()
      • estimated_destination_size

        public int estimated_destination_size​(int width,
                                              int height,
                                              int component_count,
                                              int bits_per_sample)
      • encode

        public void encode​(java.lang.String filename,
                           int expected_size)
      • check_output

        public void check_output​(byte[] source,
                                 int source_size,
                                 byte[] destination,
                                 charls.charls_jpegls_decoder decoder,
                                 int component_count,
                                 int component_size)
      • encode_monochrome_2_bit_lossless

        public void encode_monochrome_2_bit_lossless()
      • encode_monochrome_4_bit_lossless

        public void encode_monochrome_4_bit_lossless()
      • encode_monochrome_12_bit_lossless

        public void encode_monochrome_12_bit_lossless()
      • encode_monochrome_16_bit_lossless

        public void encode_monochrome_16_bit_lossless()
      • encode_2_components_8_bit_interleave_none

        public void encode_2_components_8_bit_interleave_none()
      • encode_2_components_8_bit_interleave_line

        public void encode_2_components_8_bit_interleave_line()
      • encode_2_components_8_bit_interleave_sample

        public void encode_2_components_8_bit_interleave_sample()
      • encode_2_components_16_bit_interleave_none

        public void encode_2_components_16_bit_interleave_none()