mirror of
https://github.com/opencv/opencv.git
synced 2026-09-11 21:01:33 -05:00
core: fix RVV widening load lane count (#29907) - #29921 # core: fix RVV widening load lane count Partially fixes #29907. The RVV `v_load_expand` implementation used the source vector lane count for the widening load. For widening loads, the number of loaded elements must match the destination widened vector lane count instead. This change: * uses `VTraits<_Tpwvec>::vlanes()` for the RVV widening load and conversion; * adds regression coverage for `texpr` `select()` with byte masks across multiple data types, channel counts, mask types, strided matrices, and in-place output. ### Pull Request Readiness Checklist See details at the OpenCV contribution guidelines. * [x] I agree to contribute to the project under Apache 2 License. * [x] To the best of my knowledge, the proposed patch is not based on code under GPL or another license that is incompatible with OpenCV. * [x] The PR is proposed to the proper branch. * [x] There is a reference to the original bug report and related work. * [x] There is an accuracy/regression test where applicable. * [x] The change does not require documentation or sample updates.