MCPcopy Index your code
hub / github.com/Traneptora/jxlatte

github.com/Traneptora/jxlatte @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
593 symbols 1,534 edges 78 files 13 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

jxlatte

Work-in-progress pure java JPEG XL decoder

Compiling

JXLatte is built with the Meson build system.

To build, create a build directory, for example, with mkdir build && cd build.

Then run meson setup ../ to set up the build directory, and ninja to compile JXLatte.

Running

JXLatte can be executed just like any normal jar file:

java -jar jxlatte.jar samples/art.jxl output.png

The JAR can also be used as a library. To use it, add it to your application's classpath.

InputStream input = someInputStream;
OutputStream output = someOutputStream;
JXLDecoder decoder = new JXLDecoder(input);
JXLImage image = decoder.decode();
PNGWriter writer = new PNGWriter(image);
writer.write(output);

Features

Supported features:

  • All static Modular images
  • All lossless images
  • All JXL Art
  • All Lossy Modular images
  • All static VarDCT Images
  • All JPEG reconstructions
  • Other static VarDCT images
  • Varblock Visualization
  • Output:
  • PNG
    • SDR
    • HDR
  • PFM

Features not yet supported at this time:

  • Progressive Decoding
  • Region-of-interest Decoding
  • Animation

Extension points exported contracts — how you extend this code

LLFScale (Interface)
This must be separate because TransformType's static initializers won't fire in time
java/com/traneptora/jxlatte/frame/vardct/LLFScale.java
TransferFunction (Interface)
(no doc) [1 implementers]
java/com/traneptora/jxlatte/color/TransferFunction.java
FloatUnaryOperator (Interface)
(no doc) [1 implementers]
java/com/traneptora/jxlatte/util/functional/FloatUnaryOperator.java
FrameFlags (Interface)
(no doc)
java/com/traneptora/jxlatte/frame/FrameFlags.java
ExtraChannelType (Interface)
(no doc)
java/com/traneptora/jxlatte/bundle/ExtraChannelType.java

Core symbols most depended-on inside this repo

readBits
called by 97
java/com/traneptora/jxlatte/io/Bitreader.java
readBool
called by 54
java/com/traneptora/jxlatte/io/Bitreader.java
readU32
called by 47
java/com/traneptora/jxlatte/io/Bitreader.java
log
called by 43
java/com/traneptora/jxlatte/io/Loggers.java
getFloatBuffer
called by 39
java/com/traneptora/jxlatte/util/ImageBuffer.java
readSymbol
called by 38
java/com/traneptora/jxlatte/entropy/EntropyStream.java
readF16
called by 33
java/com/traneptora/jxlatte/io/Bitreader.java
of
called by 28
java/com/traneptora/jxlatte/util/functional/ExceptionalRunnable.java

Shape

Method 515
Class 69
Interface 8
Enum 1

Languages

Java100%

Modules by API surface

java/com/traneptora/jxlatte/frame/Frame.java49 symbols
java/com/traneptora/jxlatte/bundle/ImageHeader.java37 symbols
java/com/traneptora/jxlatte/JXLImage.java30 symbols
java/com/traneptora/jxlatte/util/MathHelper.java28 symbols
java/com/traneptora/jxlatte/frame/modular/ModularChannel.java25 symbols
java/com/traneptora/jxlatte/io/Bitreader.java20 symbols
java/com/traneptora/jxlatte/util/ImageBuffer.java18 symbols
java/com/traneptora/jxlatte/JXLCodestreamDecoder.java16 symbols
java/com/traneptora/jxlatte/frame/vardct/TransformType.java15 symbols
java/com/traneptora/jxlatte/frame/modular/MATree.java14 symbols
java/com/traneptora/jxlatte/color/ColorManagement.java12 symbols
java/com/traneptora/jxlatte/io/PNGWriter.java11 symbols

For agents

$ claude mcp add jxlatte \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact