Skip to content

Fix color order for NEON decoding - #121

Open
clydebarrow wants to merge 1 commit into
bitbank2:masterfrom
clydebarrow:bgr
Open

Fix color order for NEON decoding#121
clydebarrow wants to merge 1 commit into
bitbank2:masterfrom
clydebarrow:bgr

Conversation

@clydebarrow

Copy link
Copy Markdown

Fixes #120

Decoding on ARM NEON now produces the same results as other architectures.

Copilot AI review requested due to automatic review settings April 19, 2026 10:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes incorrect channel ordering in the ARM NEON fast-path so RGB8888 output matches other architectures (addresses #120 on Apple Silicon / ARM).

Changes:

  • Corrects the NEON vst4_u8 channel packing for RGB8888 so output is written as RGBA (byte order R, G, B, A).
  • Applies the fix consistently across all four 8-pixel stores within JPEGPutMCU22().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Inconsistent RGB/BGR order on Mac M1

2 participants