Skip to content

Add support for extended JPEG #32

Description

@feliwir

The JPEG specification describes the extended JPEG process (BitDepths != 8) in P2 & P4. Right now we always write out a precision of 8 (see https://github.com/vstroebel/jpeg-encoder/blob/main/src/writer.rs#L406), which is correct for baseline JPEG.

In zune-jpeg i did a PR implementing the decoding of extended JPEG, by providing a generic PRECISION argument to the functions, which is then used to calculate any constants within the function body. Maybe a similar approach could be used here?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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