Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@salarkhan
Copy link
Contributor

@salarkhan salarkhan commented Nov 25, 2025

summary

fix lilliput bindgen layout tests by removing c++ includes from tone_mapping.hpp

the tone_mapping.hpp header was including <opencv2/opencv.hpp>, which pulls in tons of c++ template types (cv::Scalar_, std::vector, std::shared_ptr, etc). bindgen was generating layout tests for these templates but couldn't determine their correct sizes, causing test failures.

ffi only needs the c function apply_tone_mapping_ffi, we don't need the c++ implementation details. this PR fixes that.

the tone_mapping.hpp header was including <opencv2/opencv.hpp>, which pulls in tons of c++ template types (cv::Scalar_, std::vector, std::shared_ptr, etc). bindgen was generating layout tests for these templates but couldn't determine their correct sizes, causing test failures.
@salarkhan salarkhan changed the title remove c++ includes from tone_mapping.hpp fix: remove c++ includes from tone_mapping.hpp Nov 25, 2025
@salarkhan salarkhan merged commit 5c35536 into master Nov 25, 2025
6 checks passed
@salarkhan salarkhan deleted the salar/bindgen-woes branch November 25, 2025 21:03
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