-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for wider channel size in f3d::image #858
Conversation
You are modifying libf3d public API! |
What does that entail for the data buffer exposed through For example, in the case of a |
Nevermind, I have another idea to refactor this class. |
Just to answer the question. Usually, when you have a buffer of an unknown type, you can just use a buffer of bytes and reinterpret_cast the buffer later. You have to be careful about the endianness though. |
abbf4d8
to
855c3ac
Compare
Alright so if the bindings expose this raw data too, multiplying the length by the new channel width here and here should do. |
You're right! Nice catch :) |
@mwestphal I've modified the public API without taking care of backward compatibility. Do you think it's fine? |
I do not see any non retro compat changes, looks fine |
I removed some setters to put them in a dedicated constructor. |
Ideally they should be deprecated, if possible by keeping the feature with a warning, if not, by keeping the method but erroring out. Not saying this will impact a lot of people but we need to think of a process that works for the future of F3D. I know very well the system in VTK, maybe we need something similar ? I can create an issue about it if you want. |
Codecov Report
@@ Coverage Diff @@
## master #858 +/- ##
==========================================
- Coverage 96.06% 95.81% -0.25%
==========================================
Files 113 115 +2
Lines 6551 6643 +92
==========================================
+ Hits 6293 6365 +72
- Misses 258 278 +20
... and 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
ca51cbc
to
34d390c
Compare
80e514b
to
07165d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some changes needed
…ted_ci Improve upon f3d-app#858
Fix #854
Also, add the architecture required to deprecate libf3d functions.