Skip to content

Improve YUV conversion API docs - #377

Merged
ermig1979 merged 1 commit into
masterfrom
cursor/improve-yuv-docs-2d0a
Jun 8, 2026
Merged

Improve YUV conversion API docs#377
ermig1979 merged 1 commit into
masterfrom
cursor/improve-yuv-docs-2d0a

Conversation

@ermig1979

Copy link
Copy Markdown
Owner

Summary

  • Improve SimdLib.h descriptions for SimdYToGray and the listed YUVA/YUV conversion functions.
  • Document plane dimensions, subsampling constraints, alpha handling, hue/HSL/HSV behavior, and UYVY byte layout.
  • Add 2026 release-note entries for the documentation improvements.

Testing

  • Ran git diff --check and confirmed the diff is whitespace-clean.
  • Confirmed only docs/2026.html and src/Simd/SimdLib.h changed.
  • Did not run the test suite per request; changes are documentation-only.
Open in Web Open in Cursor 

Co-authored-by: Ihar Yermalayeu <ermig1979@gmail.com>
@ermig1979
ermig1979 marked this pull request as ready for review June 8, 2026 10:44
Copilot AI review requested due to automatic review settings June 8, 2026 10:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the public API documentation for YUV/YUVA conversion routines (and related helpers) in SimdLib.h, clarifying plane sizing/subsampling constraints, alpha handling, and packed UYVY byte order, and records these documentation updates in the 2026 release notes.

Changes:

  • Expanded/clarified SimdLib.h Doxygen docs for SimdYToGray and multiple YUV/YUVA conversion functions (subsampling rules, even-dimension constraints, alpha behavior, and hue/HSL/HSV conversion details).
  • Documented UYVY422 byte layout for SimdYuv420pToUyvy422.
  • Added corresponding “Improving” entries to docs/2026.html.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Simd/SimdLib.h Updates Doxygen API docs for YUV/YUVA conversion functions (constraints, ranges, layouts).
docs/2026.html Adds 2026 release-note bullets for the documentation improvements.

Comment thread src/Simd/SimdLib.h
Comment on lines +11263 to 11265
The Y values are treated as studio-range luma [16..235] and converted to full-range gray [0..255].

\note This function has C++ wrappers: Simd::YToGray(const View& y, View& gray).
@ermig1979
ermig1979 merged commit 8d18258 into master Jun 8, 2026
21 of 25 checks passed
@ermig1979
ermig1979 deleted the cursor/improve-yuv-docs-2d0a branch July 1, 2026 11:46
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.

3 participants