Skip to content

Support 16-bit 2D DCT outputs #132

@astewart-xmos

Description

@astewart-xmos

After speaking with Alex about the JPEG encoding work she's doing, I realized that the 2D DCT really needs to support 16-bit outputs, rather than just 8-bit outputs.

  • The current implementation already expands to 16-bits as an intermediate result
  • The 16-bit output version should actually be a little faster than the 8-bit-output version
  • The 8-bit-output version can be built on top of the 16-bit version
    • e.g. the 8-bit one wraps the 16-bit version with a bit-depth reduction at the end.
  • This is already written, though not well tested.
  • Should be backwards compatible, requiring only a minor version increment.

Alex also pointed out that the JPEG encoding requires that an orthogonal DCT be used, as well. This just means passing an alternate DCT matrix to the functions.

Metadata

Metadata

Assignees

Labels

size:Stype:enhancementNew feature or requestversion: minor incrMinor version number increment required. (Change adds new features)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions