Package gov.nih.mipav.model.file
Class charls
java.lang.Object
gov.nih.mipav.model.file.charls
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.
# CharLS
[](https://raw.githubusercontent.com/team-charls/charls/main/LICENSE.md)
[](https://api.reuse.software/info/github.com/team-charls/charls)
[](https://ci.appveyor.com/project/vbaderks/charls/branch/main)
[](https://dev.azure.com/team-charls/charls/_build/latest?definitionId=2invalid input: '&branchName'=main)
[](https://sonarcloud.io/summary/new_code?id=team-charls_charls)
[](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: invalid input: '<'https://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 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 invalid input: '<'https://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 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 invalid input: '&' 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 invalid input: '<'https://hpl.hp.com/loco/>
before you use this if you use this code for commercial purposes.
# CharLS
[](https://raw.githubusercontent.com/team-charls/charls/main/LICENSE.md)
[](https://api.reuse.software/info/github.com/team-charls/charls)
[](https://ci.appveyor.com/project/vbaderks/charls/branch/main)
[](https://dev.azure.com/team-charls/charls/_build/latest?definitionId=2invalid input: '&branchName'=main)
[](https://sonarcloud.io/summary/new_code?id=team-charls_charls)
[](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: invalid input: '<'https://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 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 invalid input: '<'https://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 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 invalid input: '&' 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 invalid input: '<'https://hpl.hp.com/loco/>
before you use this if you use this code for commercial purposes.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum(package private) static enum(package private) static enum(package private) static enum(package private) class(package private) static enumclass(package private) class(package private) static enum(package private) class(package private) class(package private) static enum(package private) static enum(package private) static enum(package private) class(package private) static enum(package private) static enum(package private) class(package private) static enum(package private) static enum(package private) static enum(package private) class(package private) static enum(package private) static enum(package private) class(package private) class(package private) static enum(package private) class(package private) class(package private) class(package private) static enum(package private) static enum(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) static enum(package private) class(package private) class(package private) class(package private) class(package private) static enum(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) static enum(package private) static enum(package private) static enum(package private) static enum(package private) static enum(package private) static enum(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final int(package private) final int(package private) final int(package private) final int(package private) final int(package private) final byte(package private) final int(package private) final byte(package private) final byte(package private) final byte(package private) charls.golomb_code_match_table[](package private) final int(package private) final int[](package private) final byte(package private) final int(package private) final int(package private) final byte(package private) final int(package private) final int(package private) final int(package private) final int(package private) final int(package private) final int(package private) final int(package private) final int(package private) final int(package private) final int(package private) final int(package private) final int(package private) final int(package private) final int(package private) final int(package private) final int(package private) byte[](package private) final int(package private) final int(package private) boolean(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final byte(package private) final short(package private) final int(package private) final int(package private) final short(package private) final short(package private) final byte(package private) final byte(package private) final byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoid(package private) intapply_sign(int i, int sign) (package private) intapply_sign_for_index(int i, int sign) (package private) intbit_to_byte_count(int bit_count) (package private) longbit_to_byte_count(long bit_count) (package private) intbit_wise_sign(int i) (package private) intcalculate_maximum_sample_value(int bits_per_sample) voidcall_and_compare_log2_ceil(int value) (package private) voidcall_and_compare_log2_floor(int arg) voidvoidvoidvoid(package private) voidcharls_get_version_number(int[] major, int[] minor, int[] patch) void(package private) Stringvoid(package private) Stringcharls_jpegls_decoder_decode_to_buffer(charls.charls_jpegls_decoder decoder, byte[] destination_buffer, int destination_size_bytes, int stride) (package private) Stringcharls_jpegls_encoder_encode_from_buffer(charls.charls_jpegls_encoder encoder, byte[] source_buffer, int source_size_bytes, int stride) (package private) Stringcharls_jpegls_encoder_encode_from_buffer(charls.charls_jpegls_encoder encoder, short[] source_buffer, int source_size_bytes, int stride) (package private) charls.jpegls_errccharls_validate_spiff_header(charls.charls_spiff_header spiff_header, charls.charls_frame_info frame_info) (package private) voidcheck_argument(boolean expression) (package private) voidcheck_argument(boolean expression, String error_value) (package private) voidcheck_argument(charls.span16 argument) (package private) voidcheck_argument(charls.span8 argument) (package private) voidcheck_argument_range(int minimum, int maximum, int value) (package private) voidcheck_argument_range(int minimum, int maximum, int value, String error_value) (package private) voidcheck_interleave_mode(charls.interleave_mode mode, String error_value) (package private) voidcheck_operation(boolean expression) voidcheck_output(byte[] source, int source_size, byte[] destination, int destination_offset, charls.charls_jpegls_decoder decoder, int component_count, int component_size) voidcheck_output(byte[] source, int source_size, byte[] destination, charls.charls_jpegls_decoder decoder, int component_count, int component_size) (package private) intchecked_mul(int a, int b) (package private) longchecked_mul(long a, long b) (package private) intclamp(int i, int j, int maximum_sample_value) (package private) booleanvoidcompare_buffers(byte[] buffer1, int size1, byte[] buffer2, int size2) voidvoid(package private) intcompute_context_id(int q1, int q2, int q3) (package private) charls.charls_jpegls_pc_parameterscompute_default(int maximum_sample_value, int near_lossless) (package private) charls.thresholdscompute_defaults_using_reference_implementation(int max_value, int near) (package private) intcompute_limit_parameter(int bits_per_sample) (package private) intcompute_maximum_near_lossless(int maximum_sample_value) (package private) intcompute_predicted_value(int ra, int rb, int rc) (package private) intcompute_range_parameter(int maximum_sample_value, int near_lossless) (package private) voidcopy_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) (package private) voidcopy_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) (package private) voidcopy_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) (package private) voidcopy_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) (package private) voidcopy_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) (package private) voidcopy_line_2_components(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_2_components(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_line_2_components(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_2_components(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_line_2_components(int[] source, int source_offset, int[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_2_components(int[] source, int source_offset, int[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_line_2_components(short[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_2_components(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_2_components(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_line_3_components(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_3_components(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_line_3_components(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_3_components(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_line_3_components(int[] source, int source_offset, int[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_3_components(int[] source, int source_offset, int[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_line_3_components(short[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_3_components(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_3_components(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_line_3_components_transform_impl(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count, charls.color_transformation transform, boolean inverse) (package private) voidcopy_line_3_components_transform_impl(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, charls.color_transformation transform, boolean inverse) (package private) voidcopy_line_3_components_transform_impl(short[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count, charls.color_transformation transform, boolean inverse) (package private) voidcopy_line_3_components_transform_impl(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, charls.color_transformation transform, boolean inverse) (package private) voidcopy_line_4_components(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_4_components(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_line_4_components(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_4_components(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_line_4_components(int[] source, int source_offset, int[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_4_components(int[] source, int source_offset, int[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_line_4_components(short[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_4_components(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count) (package private) voidcopy_line_4_components(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_pixels_2_components(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_2_components(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_pixels_2_components(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_2_components(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_pixels_2_components(int[] source, int source_offset, int[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_2_components(int[] source, int source_offset, int[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_pixels_2_components(short[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_2_components(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_2_components(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_pixels_3_components(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_3_components(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_pixels_3_components(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_3_components(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_pixels_3_components(int[] source, int source_offset, int[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_3_components(int[] source, int source_offset, int[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_pixels_3_components(short[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_3_components(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_3_components(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_pixels_3_components_transform_impl(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count, charls.color_transformation transform, boolean inverse) (package private) voidcopy_pixels_3_components_transform_impl(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, charls.color_transformation transform, boolean inverse) (package private) voidcopy_pixels_3_components_transform_impl(short[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count, charls.color_transformation transform, boolean inverse) (package private) voidcopy_pixels_3_components_transform_impl(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, charls.color_transformation transform, boolean inverse) (package private) voidcopy_pixels_4_components(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_4_components(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_pixels_4_components(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_4_components(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_pixels_4_components(int[] source, int source_offset, int[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_4_components(int[] source, int source_offset, int[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_pixels_4_components(short[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_4_components(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count) (package private) voidcopy_pixels_4_components(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_samples(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count) (package private) voidcopy_samples(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count) (package private) voidcopy_samples(int[] source, int source_offset, int[] destination, int destination_offset, long pixel_count) (package private) voidcopy_samples(short[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count) (package private) voidcopy_samples(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count) (package private) voidcopy_samples_masked(byte[] source, int source_offset, byte[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_samples_masked(byte[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_samples_masked(int[] source, int source_offset, int[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_samples_masked(short[] source, int source_offset, short[] destination, int destination_offset, long pixel_count, int mask) (package private) voidcopy_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) (package private) voidcopy_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) (package private) voidcopy_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) (package private) voidcopy_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) (package private) voidcopy_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) (package private) voidcopy_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) (package private) intcountl_zero(int x) voidvoid(package private) charls.charls_jpegls_decodercreate_decoder(Vector<Byte> source) void(package private) charls.pair<Integer> create_encoded_value(int k, int mapped_error) create_quantize_lut_lossless(int bit_count) create_test_spiff_header(short high_version, short low_version, boolean end_of_directory, short component_count) (package private) charls.charls_frame_info(package private) charls.charls_spiff_headerbyte[]decode_advanced(byte[] source) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoiddecode_encode_file(String encoded_filename, String raw_filename, boolean check_encode) voidvoidvoidvoidvoidvoidvoidvoidbyte[]decode_simple_8_bit_monochrome(byte[] source) voidvoid(package private) voiddecompress_file(String name_encoded, String name_raw, int offset) (package private) voiddecompress_file(String name_encoded, String name_raw, int offset, boolean check_encode) voidvoidvoid(package private) byte[]encode(byte[] source, charls.charls_frame_info frame, charls.interleave_mode interleave, charls.encoding_options options) voidencode(charls.charls_frame_info frame_info, byte[] source, int expected_size, charls.interleave_mode interleave_) voidencode(charls.charls_frame_info frame_info, byte[] source, int expected_size, charls.interleave_mode interleave_, charls.color_transformation color_) voidvoidencode(String filename, int expected_size, charls.interleave_mode interleave_) voidencode(String filename, int expected_size, charls.interleave_mode interleave_, charls.color_transformation color_) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidbyte[]encode_advanced_8_bit_monochrome(byte[] source, int width, int height) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidbyte[]encode_simple_8_bit_monochrome(byte[] source, int width, int height) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidintestimated_destination_size(int width, int height, int component_count, int bits_per_sample) voidvoidvoidvoidvoid(package private) intfind_first_restart_marker(Vector<Byte> data, int begin) (package private) intfind_scan_header(Vector<Byte> data, int begin) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid(package private) booleanhas_option(charls.encoding_options options, charls.encoding_options option_to_test) voidvoidvoidvoid(package private) intinitialization_value_for_a(int range) (package private) byte[]initialize_quantization_lut(charls.traits tr, int threshold1, int threshold2, int threshold3, Vector<Byte> quantization_lut) (package private) voidinsert_pc_parameters_segments(Vector<Byte> jpegls_source, int component_count) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid(package private) booleanis_default(charls.charls_jpegls_pc_parameters preset_coding_parameters, charls.charls_jpegls_pc_parameters defaults) voidvoidvoid(package private) booleanis_known_jpeg_sof_marker(byte marker_code) (package private) booleanis_restart_marker_code(byte marker_code) (package private) booleanis_valid(charls.charls_jpegls_pc_parameters pc_parameters, int maximum_component_value, int near_lossless, charls.charls_jpegls_pc_parameters validated_parameters) (package private) booleanis_valid_color_space(charls.spiff_color_space color_space, int component_count) void(package private) booleanis_valid_resolution_units(charls.spiff_resolution_units resolution_units) (package private) booleanis_valid_spiff_header(charls.charls_spiff_header header, charls.charls_frame_info frame_info) voidvoidvoid(package private) intlog2_ceiling(int n) (package private) intlog2_floor(int n) void(package private) charls.scan_decoder_implmake_scan_codec(charls.charls_frame_info frame, charls.charls_jpegls_pc_parameters pc_parameters, charls.coding_parameters parameters) (package private) charls.scan_encoder_implmake_scan_codec_encoder(charls.charls_frame_info frame, charls.charls_jpegls_pc_parameters pc_parameters, charls.coding_parameters parameters) (package private) byte[]make_some_noise(int length, int bit_count, long seed) (package private) byte[]make_some_noise16_bit(int length, int bit_count, long seed) (package private) intmap_error_value(int error_value) voidmap_error_value_algorithm(int error_value) voidintmap_error_value_alternative1(int error_value) intmap_error_value_original(int error_value) voidmap_unmap_error_value_algorithm(int error_value) voidvoidvoidvoidvoidvoidvoidvoidvoidvoid(package private) intmax_value_to_bits_per_sample(int max_value) voidvoidvoidvoidvoidvoidvoidvoidvoidvoid(package private) intpixel_count_to_pixel_stride(int pixel_count) (package private) booleanprecomputed_quantization_lut_available(charls.traits tr, int threshold1, int threshold2, int threshold3) (package private) void(package private) void(package private) bytequantize_gradient_org(int di, int threshold1, int threshold2, int threshold3, int near_lossless) (package private) charls.portable_anymap_fileread_anymap_reference_file(String filename, charls.interleave_mode interleave) (package private) charls.portable_anymap_fileread_anymap_reference_file(String filename, charls.interleave_mode interleave, charls.charls_frame_info frame_info) (package private) longread_big_endian_unaligned(byte[] buffer, int offset) voidread_bit()voidvoidvoidbyte[]byte[]byte[]voidvoidvoidvoidvoidread_header_with_application_data(short data_number) voidvoidvoidvoidvoidvoidvoidread_spiff_header(short low_version) voidvoidvoidvoidvoidvoidvoidrewind()voidvoidvoidvoidvoidvoid(package private) intsign(int n) voidvoidvoidvoidtable_c3()voidtest_by_decoding(byte[] encoded_source, charls.charls_frame_info source_frame_info, byte[] expected_destination, int expected_destination_size, charls.interleave_mode interleave, charls.color_transformation color_trans) voidtest_by_decoding(byte[] encoded_data, charls.charls_frame_info reference_frame_info, byte[] reference_source, charls.interleave_mode interleave_, charls.color_transformation color_) voidtest_by_decoding(byte[] encoded_source, charls.charls_frame_info source_frame_info, short[] expected_destination_short, int expected_destination_size, charls.interleave_mode interleave, charls.color_transformation color_trans) voidtest_by_decoding(byte[] encoded_source, charls.portable_anymap_file reference_file, charls.interleave_mode interleave_) void(package private) voidtest_compliance(byte[] encoded_source, byte[] uncompressed_source, boolean check_encode) (package private) voidtest_compliance(byte[] compressed_bytes, int compressed_length, byte[] uncompressed_data, int uncompressed_length, boolean check_encode) voidvoidtest_decoded_data(byte[] decoded_source, String raw_filename) void(package private) voidtest_encode_from_file(String filename, int offset, int width, int height, int bits_per_sample, int component_count, charls.interleave_mode interleave_, int expected_length) (package private) voidtest_file(String filename, int offset, int width, int height, int bits_per_sample, int component_count, boolean little_endian_file, int loop_count) voidvoidvoidtest_large_image_performance_rgb8(int loop_count) voidvoidtest_performance(int loop_count) (package private) voidtest_portable_anymap_file(String filename, int loop_count) voidvoid(package private) voidtest_round_trip(String name, byte[] original_buffer, int width, int height, int bits_per_sample, int component_count, int loop_count) voidvoidvoidvoidvoid(package private) intto_application_data_id(byte marker_code) voidvoidvoid(package private) voidtriplet_to_planar(byte[] triplet_buffer, int width, int height) (package private) voidtriplet2_planar(byte[] buffer, int width, int height) (package private) intunmap_error_value(int mapped_error) voidunmap_error_value_algorithm(int mapped_error_value) voidintunmap_error_value_alternative1(int mapped_error_value) intunmap_error_value_original(int mapped_error_value) void(package private) voidverify_decoded_bytes(charls.interleave_mode interleave, charls.charls_frame_info frame_info, byte[] sample, int destination_stride, String reference_filename) (package private) booleanverify_encoded_bytes(byte[] uncompressed_source, byte[] encoded_source) (package private) booleanverify_encoded_bytes(byte[] uncompressed_data, int uncompressed_length, byte[] compressed_data, int compressed_length) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
CHARLS_VERSION_MAJOR
final int CHARLS_VERSION_MAJOR- See Also:
-
CHARLS_VERSION_MINOR
final int CHARLS_VERSION_MINOR- See Also:
-
CHARLS_VERSION_PATCH
final int CHARLS_VERSION_PATCH- See Also:
-
CHARLS_RETURN_TYPE_SUCCESS
final int CHARLS_RETURN_TYPE_SUCCESS- See Also:
-
mapping_table_missing
final int mapping_table_missing -
signed_data
boolean signed_data -
default_reset_threshold
final int default_reset_threshold- See Also:
-
minimum_component_count
final int minimum_component_count- See Also:
-
maximum_component_count
final int maximum_component_count- See Also:
-
maximum_component_count_in_scan
final int maximum_component_count_in_scan- See Also:
-
minimum_component_index
final int minimum_component_index- See Also:
-
maximum_component_index
final int maximum_component_index- See Also:
-
minimum_bits_per_sample
final int minimum_bits_per_sample- See Also:
-
maximum_bits_per_sample
final int maximum_bits_per_sample- See Also:
-
maximum_near_lossless
final int maximum_near_lossless- See Also:
-
minimum_application_data_id
final int minimum_application_data_id- See Also:
-
maximum_application_data_id
final int maximum_application_data_id- See Also:
-
minimum_mapping_table_id
final int minimum_mapping_table_id- See Also:
-
maximum_mapping_table_id
final int maximum_mapping_table_id- See Also:
-
minimum_mapping_entry_size
final int minimum_mapping_entry_size- See Also:
-
maximum_mapping_entry_size
final int maximum_mapping_entry_size- See Also:
-
max_k_value
final int max_k_value- See Also:
-
spiff_major_revision_number
final short spiff_major_revision_number- See Also:
-
spiff_minor_revision_number
final short spiff_minor_revision_number- See Also:
-
spiff_end_of_directory_entry_type
final short spiff_end_of_directory_entry_type- See Also:
-
spiff_header_size_in_bytes
final int spiff_header_size_in_bytes- See Also:
-
spiff_entry_max_data_size
final int spiff_entry_max_data_size- See Also:
-
auto_calculate_stride
final int auto_calculate_stride- See Also:
-
segment_length_size
final int segment_length_size- See Also:
-
segment_max_data_size
final int segment_max_data_size- See Also:
-
int32_t_bit_count
final int int32_t_bit_count- See Also:
-
jpeg_marker_start_byte
final byte jpeg_marker_start_byte- See Also:
-
jpeg_restart_marker_base
final int jpeg_restart_marker_base- See Also:
-
jpeg_restart_marker_range
final int jpeg_restart_marker_range- See Also:
-
start_of_image
final byte start_of_image- See Also:
-
end_of_image
final byte end_of_image- See Also:
-
start_of_scan
final byte start_of_scan- See Also:
-
define_number_of_lines
final byte define_number_of_lines- See Also:
-
define_restart_interval
final byte define_restart_interval- See Also:
-
application_data0
final byte application_data0- See Also:
-
application_data1
final byte application_data1- See Also:
-
application_data2
final byte application_data2- See Also:
-
application_data3
final byte application_data3- See Also:
-
application_data4
final byte application_data4- See Also:
-
application_data5
final byte application_data5- See Also:
-
application_data6
final byte application_data6- See Also:
-
application_data7
final byte application_data7- See Also:
-
application_data8
final byte application_data8- See Also:
-
application_data9
final byte application_data9- See Also:
-
application_data10
final byte application_data10- See Also:
-
application_data11
final byte application_data11- See Also:
-
application_data12
final byte application_data12- See Also:
-
application_data13
final byte application_data13- See Also:
-
application_data14
final byte application_data14- See Also:
-
application_data15
final byte application_data15- See Also:
-
comment
final byte comment- See Also:
-
start_of_frame_jpegls
final byte start_of_frame_jpegls- See Also:
-
jpegls_preset_parameters
final byte jpegls_preset_parameters- See Also:
-
sof_baseline_jpeg
final byte sof_baseline_jpeg- See Also:
-
sof_extended_sequential
final byte sof_extended_sequential- See Also:
-
sof_progressive
final byte sof_progressive- See Also:
-
sof_lossless
final byte sof_lossless- See Also:
-
sof_differential_sequential
final byte sof_differential_sequential- See Also:
-
sof_differential_progressive
final byte sof_differential_progressive- See Also:
-
sof_differential_lossless
final byte sof_differential_lossless- See Also:
-
sof_extended_arithmetic
final byte sof_extended_arithmetic- See Also:
-
sof_progressive_arithmetic
final byte sof_progressive_arithmetic- See Also:
-
sof_lossless_arithmetic
final byte sof_lossless_arithmetic- See Also:
-
sof_jpegls_extended
final byte sof_jpegls_extended- See Also:
-
quantization_lut_lossless_8
-
quantization_lut_lossless_10
-
quantization_lut_lossless_12
-
quantization_lut_lossless_16
-
golomb_lut
charls.golomb_code_match_table[] golomb_lut -
J
final int[] J -
reference_image_data
byte[] reference_image_data
-
-
Constructor Details
-
charls
public charls() -
charls
public charls(int test)
-
-
Method Details
-
charls_get_version_string
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
-
clamp
int clamp(int i, int j, int maximum_sample_value) -
compute_default
-
is_default
boolean is_default(charls.charls_jpegls_pc_parameters preset_coding_parameters, charls.charls_jpegls_pc_parameters defaults) -
is_valid
boolean is_valid(charls.charls_jpegls_pc_parameters pc_parameters, int maximum_component_value, int near_lossless, charls.charls_jpegls_pc_parameters validated_parameters) -
create_encoded_value
-
color_transformation_possible
-
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, Vector<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
-
push_back
-
check_operation
void check_operation(boolean expression) -
check_argument
void check_argument(boolean expression) -
check_argument
-
check_argument
-
check_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
-
checked_mul
long checked_mul(long a, long b) -
make_scan_codec_encoder
charls.scan_encoder_impl make_scan_codec_encoder(charls.charls_frame_info frame, charls.charls_jpegls_pc_parameters pc_parameters, charls.coding_parameters parameters) -
make_scan_codec
charls.scan_decoder_impl make_scan_codec(charls.charls_frame_info frame, charls.charls_jpegls_pc_parameters pc_parameters, charls.coding_parameters parameters) -
has_option
-
encode
byte[] encode(byte[] source, charls.charls_frame_info frame, charls.interleave_mode interleave, charls.encoding_options options) -
charls_jpegls_encoder_encode_from_buffer
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
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
String charls_jpegls_decoder_decode_to_buffer(charls.charls_jpegls_decoder decoder, byte[] destination_buffer, int destination_size_bytes, int stride) -
decode
public charls.Pair2var<charls.charls_frame_info,charls.interleave_mode> decode(byte[] source, Vector<Byte> destination) -
create_quantize_lut_lossless
-
is_valid_color_space
-
is_valid_resolution_units
-
is_valid_spiff_header
boolean is_valid_spiff_header(charls.charls_spiff_header header, charls.charls_frame_info frame_info) -
charls_validate_spiff_header
charls.jpegls_errc charls_validate_spiff_header(charls.charls_spiff_header spiff_header, charls.charls_frame_info frame_info) -
create_valid_spiff_header
charls.charls_spiff_header create_valid_spiff_header() -
create_valid_frame_info
charls.charls_frame_info create_valid_frame_info() -
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
-
create_test_spiff_header
-
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
-
read_file
-
read_file
-
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) -
read_anymap_reference_file
charls.portable_anymap_file read_anymap_reference_file(String filename, charls.interleave_mode interleave, charls.charls_frame_info frame_info) -
read_anymap_reference_file
charls.portable_anymap_file read_anymap_reference_file(String filename, charls.interleave_mode interleave) -
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
-
find_first_restart_marker
-
create_default_pc_parameters_segment
-
insert_pc_parameters_segments
-
decode_with_default_pc_parameters_before_each_sos
public void decode_with_default_pc_parameters_before_each_sos() -
verify_decoded_bytes
void verify_decoded_bytes(charls.interleave_mode interleave, charls.charls_frame_info frame_info, byte[] sample, int destination_stride, String reference_filename) -
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() -
create_decoder
-
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() -
test_by_decoding
public void test_by_decoding(byte[] encoded_source, charls.charls_frame_info source_frame_info, byte[] expected_destination, int expected_destination_size, charls.interleave_mode interleave, charls.color_transformation color_trans) -
test_by_decoding
public void test_by_decoding(byte[] encoded_source, charls.charls_frame_info source_frame_info, short[] expected_destination_short, int expected_destination_size, charls.interleave_mode interleave, charls.color_transformation color_trans) -
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_custom_preset_coding_parameters
public void encode_with_custom_preset_coding_parameters(charls.charls_jpegls_pc_parameters pc_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
-
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
-
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
-
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) -
test_by_decoding
public void test_by_decoding(byte[] encoded_source, charls.portable_anymap_file reference_file, charls.interleave_mode interleave_) -
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) -
test_by_decoding
public void test_by_decoding(byte[] encoded_data, charls.charls_frame_info reference_frame_info, byte[] reference_source, charls.interleave_mode interleave_, charls.color_transformation color_) -
encode
public void encode(charls.charls_frame_info frame_info, byte[] source, int expected_size, charls.interleave_mode interleave_, charls.color_transformation color_) -
encode
public void encode(charls.charls_frame_info frame_info, byte[] source, int expected_size, charls.interleave_mode interleave_) -
encode
public void encode(String filename, int expected_size, charls.interleave_mode interleave_, charls.color_transformation color_) -
encode
-
encode
-
check_output
public void check_output(byte[] source, int source_size, byte[] destination, charls.charls_jpegls_decoder decoder, int component_count, int component_size) -
check_output
public void check_output(byte[] source, int source_size, byte[] destination, int destination_offset, 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() -
encode_2_components_16_bit_interleave_line
public void encode_2_components_16_bit_interleave_line() -
encode_2_components_16_bit_interleave_sample
public void encode_2_components_16_bit_interleave_sample() -
encode_color_8_bit_interleave_none_lossless
public void encode_color_8_bit_interleave_none_lossless() -
encode_color_8_bit_interleave_line_lossless
public void encode_color_8_bit_interleave_line_lossless() -
encode_color_8_bit_interleave_sample_lossless
public void encode_color_8_bit_interleave_sample_lossless() -
encode_color_8_bit_interleave_line_hp1
public void encode_color_8_bit_interleave_line_hp1() -
encode_color_8_bit_interleave_sample_hp1
public void encode_color_8_bit_interleave_sample_hp1() -
encode_color_8_bit_interleave_line_hp2
public void encode_color_8_bit_interleave_line_hp2() -
encode_color_8_bit_interleave_sample_hp2
public void encode_color_8_bit_interleave_sample_hp2() -
encode_color_8_bit_interleave_line_hp3
public void encode_color_8_bit_interleave_line_hp3() -
encode_color_8_bit_interleave_sample_hp3
public void encode_color_8_bit_interleave_sample_hp3() -
encode_monchrome_16_bit_interleave_none
public void encode_monchrome_16_bit_interleave_none() -
encode_color_16_bit_interleave_none
public void encode_color_16_bit_interleave_none() -
encode_color_16_bit_interleave_line
public void encode_color_16_bit_interleave_line() -
encode_color_16_bit_interleave_sample
public void encode_color_16_bit_interleave_sample() -
encode_color_16_bit_interleave_line_hp1
public void encode_color_16_bit_interleave_line_hp1() -
encode_color_16_bit_interleave_sample_hp1
public void encode_color_16_bit_interleave_sample_hp1() -
encode_color_16_bit_interleave_line_hp2
public void encode_color_16_bit_interleave_line_hp2() -
encode_color_16_bit_interleave_sample_hp2
public void encode_color_16_bit_interleave_sample_hp2() -
encode_color_16_bit_interleave_line_hp3
public void encode_color_16_bit_interleave_line_hp3() -
encode_color_16_bit_interleave_sample_hp3
public void encode_color_16_bit_interleave_sample_hp3() -
encode_4_components_8_bit_interleave_none
public void encode_4_components_8_bit_interleave_none() -
encode_4_components_8_bit_interleave_line
public void encode_4_components_8_bit_interleave_line() -
encode_4_components_8_bit_interleave_sample
public void encode_4_components_8_bit_interleave_sample() -
encode_4_components_16_bit_interleave_none
public void encode_4_components_16_bit_interleave_none() -
encode_4_components_16_bit_interleave_line
public void encode_4_components_16_bit_interleave_line() -
encode_4_components_16_bit_interleave_sample
public void encode_4_components_16_bit_interleave_sample() -
encode_with_different_lossless_values
public void encode_with_different_lossless_values() -
encode_with_different_preset_coding_parameters
public void encode_with_different_preset_coding_parameters() -
encode_with_different_interleave_modes_none_first
public void encode_with_different_interleave_modes_none_first() -
encode_with_different_interleave_modes_sample_first
public void encode_with_different_interleave_modes_sample_first() -
call_and_compare_log2_ceil
public void call_and_compare_log2_ceil(int value) -
log2_ceil_test
public void log2_ceil_test() -
test_initialization_value_for_a
public void test_initialization_value_for_a() -
map_error_value_original
public int map_error_value_original(int error_value) -
map_error_value_alternative1
public int map_error_value_alternative1(int error_value) -
map_error_value_algorithm
public void map_error_value_algorithm(int error_value) -
map_error_value_algorithm_test
public void map_error_value_algorithm_test() -
unmap_error_value_original
public int unmap_error_value_original(int mapped_error_value) -
unmap_error_value_alternative1
public int unmap_error_value_alternative1(int mapped_error_value) -
unmap_error_value_algorithm
public void unmap_error_value_algorithm(int mapped_error_value) -
unmap_error_value_algorithm_test
public void unmap_error_value_algorithm_test() -
map_unmap_error_value_algorithm
public void map_unmap_error_value_algorithm(int error_value) -
map_unmap_error_value_algorithm_test
public void map_unmap_error_value_algorithm_test() -
countl_zero
int countl_zero(int x) -
log2_floor
int log2_floor(int n) -
max_value_to_bits_per_sample
int max_value_to_bits_per_sample(int max_value) -
call_and_compare_log2_floor
void call_and_compare_log2_floor(int arg) -
log2_floor_test
public void log2_floor_test() -
max_value_to_bits_per_sample_test
public void max_value_to_bits_per_sample_test() -
test_sample_annex_h4_5
public void test_sample_annex_h4_5() -
triplet2_planar
void triplet2_planar(byte[] buffer, int width, int height) -
verify_encoded_bytes
boolean verify_encoded_bytes(byte[] uncompressed_data, int uncompressed_length, byte[] compressed_data, int compressed_length) -
test_compliance
void test_compliance(byte[] compressed_bytes, int compressed_length, byte[] uncompressed_data, int uncompressed_length, boolean check_encode) -
decompress_file
-
decompress_file
-
test_color_transforms_hp_images
public void test_color_transforms_hp_images() -
test_conformance
public void test_conformance() -
test_round_trip
void test_round_trip(String name, byte[] original_buffer, int width, int height, int bits_per_sample, int component_count, int loop_count) -
test_file
void test_file(String filename, int offset, int width, int height, int bits_per_sample, int component_count, boolean little_endian_file, int loop_count) -
test_performance
public void test_performance(int loop_count) -
test_portable_anymap_file
-
test_large_image_performance_rgb8
public void test_large_image_performance_rgb8(int loop_count) -
test_traits16_bit
public void test_traits16_bit() -
test_traits8_bit
public void test_traits8_bit() -
test_encode_from_file
void test_encode_from_file(String filename, int offset, int width, int height, int bits_per_sample, int component_count, charls.interleave_mode interleave_, int expected_length) -
test_encode_from_file
public void test_encode_from_file() -
make_some_noise
byte[] make_some_noise(int length, int bit_count, long seed) -
make_some_noise16_bit
byte[] make_some_noise16_bit(int length, int bit_count, long seed) -
test_noise_image
public void test_noise_image()
-