Thanks to visit codestin.com
Credit goes to github.com

Skip to content

32 bit floating point supportΒ #37

@haraldk

Description

@haraldk

Hi again, I've been testing the decoder on a lot of images, and I have found an image that won't decode. It's one of the images from the libjxl conformance tests, containing a lossless encoded 32 bit float image:

lossless_pfm/input.jxl

com.traneptora.jxlatte.io.InvalidBitstreamException: Illegal final modular state
	at com.traneptora.jxlatte.frame.modular.ModularStream.decodeChannels(ModularStream.java:196)
	at com.traneptora.jxlatte.frame.modular.ModularStream.decodeChannels(ModularStream.java:184)
	at com.traneptora.jxlatte.frame.group.PassGroup.<init>(PassGroup.java:79)
	at com.traneptora.jxlatte.frame.Frame.decodePassGroups(Frame.java:342)
	at com.traneptora.jxlatte.frame.Frame.decodeFrame(Frame.java:429)
	at com.traneptora.jxlatte.JXLCodestreamDecoder.decode(JXLCodestreamDecoder.java:761)
	at com.traneptora.jxlatte.JXLCodestreamDecoder.decode(JXLCodestreamDecoder.java:686)
	at com.traneptora.jxlatte.JXLDecoder.decode(JXLDecoder.java:41)

This is the only sample file I have come across that actually contains 32 bit and float samples, so I guess they are quite rare. But it would be nice if it could be decoded!

Not sure if this counts as a bug or a new feature... Let me know if I can help fixing this, but I'm afraid my knowledge on JPEG XL is a bit limited at the moment. πŸ˜€

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions