Skip to content

Refactor Simd::FillFrame to use Simd::Fill - #906

Merged
ermig1979 merged 1 commit into
devfrom
cursor/refactor-fill-frame-e75f
Aug 24, 2026
Merged

Refactor Simd::FillFrame to use Simd::Fill#906
ermig1979 merged 1 commit into
devfrom
cursor/refactor-fill-frame-e75f

Conversation

@ermig1979

@ermig1979 ermig1979 commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Summary

Simd::FillFrame was a thin C++ wrapper around SimdFillFrame. It now fills the four outer regions with Simd::Fill on View::Region views:

  • top: [0, width) x [0, frame.top)
  • bottom: [0, width) x [frame.bottom, height)
  • left: [0, frame.left) x [frame.top, frame.bottom)
  • right: [frame.right, width) x [frame.top, frame.bottom)

The C API SimdFillFrame / Base::FillFrame is unchanged.

Test plan

  • Built with repo CMake flags (g++, Release, SIMD_SHARED=ON).
  • ./Test "-r=.." -fi=FillFrame -tt=1 -ts=1 — ALL TESTS ARE FINISHED SUCCESSFULLY (compares Base vs SimdFillFrame and the C++ wrapper vs SimdFillFrame).
  • Extra edge-case checker: empty frame, full frame, one-sided borders, one-pixel hole, odd sizes; Gray8 / Uv16 / Bgr24 / Bgra32 — all passed vs SimdFillFrame and a pixel oracle.
  • GitHub CI Test / build_and_test_arm64 on this PR: success.

FillFrame official test report

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Implement the C++ wrapper with four Simd::Fill calls on View regions
instead of forwarding to SimdFillFrame. Update docs and compare the
wrapper with the C API in FillFrame tests.

Co-authored-by: igor.ermolaev <igor.ermolaev@altezza.org>
@ermig1979
ermig1979 marked this pull request as ready for review August 24, 2026 12:07
@ermig1979
ermig1979 merged commit c4643af into dev Aug 24, 2026
1 check passed
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