Skip to content

Fix corrupted luma from biased subtract in the x86 residue blocks - #138

Merged
awxkee merged 1 commit into
awxkee:masterfrom
kornelski:corrupted-luma
Sep 15, 2026
Merged

awxkee merged 1 commit into
awxkee:masterfrom
kornelski:corrupted-luma

Conversation

@kornelski

Copy link
Copy Markdown
Collaborator

The 8-bit SSE and AVX-512 residue blocks subtracted the limited-range luma bias with a signed saturating subtract (_mm_subs_epi8/_mm512_subs_epi8) while the vector loop used the unsigned one. With YuvRange::Limited (bias 16) that corrupts luma below the bias and luma in 128..144.

@awxkee awxkee left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for the PR!

@awxkee
awxkee merged commit e247ff3 into awxkee:master Sep 15, 2026
14 checks passed
@kornelski
kornelski deleted the corrupted-luma branch September 15, 2026 12:19
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