opencv/modules/core
Maxim Smolskiy 08a24ba2cf
Merge pull request #26846 from MaximSmolskiy:fix_bug_with_int64_support_for_FileStorage
Fix bug with int64 support for FileStorage #26846

### Pull Request Readiness Checklist

Fix #26829, https://github.com/opencv/opencv-python/issues/1078

In current implementation of `int64` support raw size of recorded integer is variable (`4` or `8` bytes depending on value). But then we iterate over nodes we need to know it exact value
dfad11aae7/modules/core/src/persistence.cpp (L2596-L2609)

Bug is that `rawSize` method still return `4` for any integer. I haven't figured out a way how to get variable raw size for integer in this method. I made raw size for integer is constant and equal to `8`.

Yes, after this patch memory consumption for integers will increase, but I don't know a better way to do it yet. At least this fixes bug and implementation becomes more correct

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [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 a 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 accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
2025-01-28 11:08:26 +03:00
..
3rdparty/SoftFloat Add install component for 3rdparty libraries licenses 2018-03-06 16:32:30 +03:00
cmake/parallel core(parallel): plugins support 2021-02-15 17:07:36 +00:00
doc Merge pull request #26260 from sturkmen72:upd_doc_4_x 2024-10-09 09:09:51 +03:00
include/opencv2 Merge pull request #26463 from eplankin:icv_update_2022.0.0 2025-01-27 17:02:36 +03:00
misc Merge pull request #25986 from asmorkalov:as/js_for_contrib 2024-08-23 10:49:08 +03:00
perf Remove useless C headers 2025-01-13 16:34:28 +01:00
src Merge pull request #26846 from MaximSmolskiy:fix_bug_with_int64_support_for_FileStorage 2025-01-28 11:08:26 +03:00
test Merge pull request #26846 from MaximSmolskiy:fix_bug_with_int64_support_for_FileStorage 2025-01-28 11:08:26 +03:00
CMakeLists.txt Add CMake checks for getauxval and elf_aux_info for POWER 2025-01-19 13:27:20 -05:00