f966f6ed55
Compositor: Add vars and methods for easier image looping
...
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
Reviewed By: #compositing, jbakker
Differential Revision: https://developer.blender.org/D11015
2021-05-10 11:16:06 +02:00
094c950915
Cleanup: clang-format.
2021-03-30 16:03:43 +02:00
88e0ed3288
Cleanup: Use constexpr.
2021-03-30 16:03:43 +02:00
25c02ea703
Cleanup: Add namespace to compositor.
2021-03-29 08:18:33 +02:00
9f86933f2e
Cleanup: Remove unused states and vars from MemoryBuffer.
2021-03-19 17:11:47 +01:00
31d5c5078c
Cleanup: MemoryBuffer do not store width and height.
2021-03-19 17:11:47 +01:00
8cb1089795
Cleanup: Rename copyContentFrom to fill_from.
2021-03-19 17:11:47 +01:00
dc9aea9903
Cleanup: Add copy constructor to MemoryBuffer.
2021-03-19 17:11:47 +01:00
260e50ed82
Cleanup: Use ref to read from encapsuled data.
...
MemoryBuffer->getRect was returning a ptr.
2021-03-19 17:11:47 +01:00
c905dd24b6
Cleanup: Replace ptr with ref (COM_MemoryBuffer).
2021-03-19 17:11:47 +01:00
e5ffefe606
Cleanup: Use enum class for DataType.
2021-03-19 17:11:47 +01:00
1775ea74c1
Cleanup: Change extension .cpp to .cc
2021-03-08 13:41:52 +01:00