These variables and methods should make it easier to loop through buffers elements/pixels. They take into account single element buffers.
Single element buffers can be used for set operations to reduce memory usage.
Usage example: P2078
Differential D11015
Compositor: Add vars and methods for easier image looping Authored by Manuel Castilla (manzanilla) on Apr 19 2021, 6:08 PM.
Details
These variables and methods should make it easier to loop through buffers elements/pixels. They take into account single element buffers. Usage example: P2078
Diff Detail
Event TimelineComment Actions What do you think of adding some BLI_asserts? naming single elem is a Some methods should be implemented in the header so the compiler could optimize these better. Another idea is to use a template based on the num of channels.
Comment Actions I agree. I'd like to make it generic too, not only for floats. And maybe moving pixel operations methods like readEWA and read bilinear to a header specific for pixel operations. We can see this later on. Comment Actions Naming is important so good spend just another round to have this correct and consistent. Rest of the patch is fine.
| |||||||||||||||||||||||||||||