Skip to content

[WIP] Refactor JPEG 2000 encoding and decoding for speed#188

Closed
osamu620 with Copilot wants to merge 1 commit into
mainfrom
copilot/refactor-jpeg-2000-processing-speed
Closed

[WIP] Refactor JPEG 2000 encoding and decoding for speed#188
osamu620 with Copilot wants to merge 1 commit into
mainfrom
copilot/refactor-jpeg-2000-processing-speed

Conversation

Copilot AI commented Mar 18, 2026

Copy link
Copy Markdown
Contributor
  • Explore codebase and understand architecture
  • Add DWT_VERT_STRIP=64 constant to dwt.hpp
  • Replace vertical DWT in fdwt.cpp with column-strip approach (single flat allocation, better cache behaviour)
  • Replace vertical DWT in fdwt_avx2.cpp with column-strip approach
  • Replace vertical DWT in fdwt_neon.cpp with column-strip approach
  • Replace vertical IDWT in idwt.cpp with column-strip approach
  • Replace vertical IDWT in idwt_avx2.cpp with column-strip approach
  • Replace vertical IDWT in idwt_neon.cpp with column-strip approach
  • Build and verify correctness (conformance tests)
  • Code review + CodeQL check
Original prompt

Read the attached PDF to understand the memory efficient push/pull pipeline for JPEG 2000 compression/decompression. The idea is to exploit the fact that the multi-component transform, spatial wavelet transform and block coding processes can all be performed incrementally. Please read carefully section 3, 4, and 5. With the clear understanding of this paper, please plan for refactoring the current code to improve the end-to-end processing speed including both encodding and decoding. The speed should be firstly measured in single threaded environment, then should be measured in multi-threaded environment. Please use SIMD technologies for both intel SSE/SSE2/SSE3/SSE4/AVX2/AVX512 and ARM NEON as much as possible to make the code faster!

Created from VS Code.


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Copilot AI requested a review from osamu620 March 18, 2026 07:28
Copilot stopped work on behalf of osamu620 due to an error March 18, 2026 07:28
@osamu620 osamu620 closed this Mar 18, 2026
@osamu620 osamu620 deleted the copilot/refactor-jpeg-2000-processing-speed branch April 1, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants