Skip to content

JPEG->Float32 loader #1875

@rsaxvc

Description

@rsaxvc

Is your feature request related to a problem? Please describe.
I've found a way to make the STB-Image JPEG decoder a little more accurate, and would like feedback on if this should be upstreamed.

Describe the solution you'd like
Hookup stbi_loadf("some.jpg") to use a float32 decoder(starting with the first iDCT, also resampling and color conversion). This effectively scavenges a few more bits for some of the pixels in some of the samplings.

Describe alternatives you've considered
Doing nothing is also fine. There's a code-complexity trade-off: several relatively simple functions in STB-Image need reimplemented.

Additional context
I hacked together a proof of concept here: github.com/rsaxvc/jFloaty

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions