-
Notifications
You must be signed in to change notification settings - Fork 620
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
feature request: signed strides #614
Comments
The TSC discussed this. It's a useful feature, implemented in other places like OIIO. If you would entertaining making the change, we'd happily review it and consider incorporating it. The change will require careful testing, so besides just changing the type, the test suite should include tests that validate the behavior. |
The type should probably be |
We're planning a 3.0 release for later in August. If anyone from the community would like to submit a PR that address this (with sufficient testing), now would be a good time to consider including it. |
Add support for negative stride to FrameBuffer Slice. Change data type of stride from size_t to ptrdiff_t. Add support for negative stride in `copyIntoFrameBuffer` and `copyFromFrameBuffer`. Add a new `testNegativeStride` test. Fixes: AcademySoftwareFoundation#614 Signed-off-by: 胡玮文 <[email protected]>
Add support for negative stride to FrameBuffer Slice. Change data type of stride from size_t to ptrdiff_t. Add support for negative stride in `copyIntoFrameBuffer` and `copyFromFrameBuffer`. Add a new `testNegativeStride` test. Fixes: AcademySoftwareFoundation#614 Signed-off-by: 胡玮文 <[email protected]>
Add support for negative stride to FrameBuffer Slice. Change data type of stride from size_t to ptrdiff_t. Add support for negative stride in `copyIntoFrameBuffer` and `copyFromFrameBuffer`. Add a new `testNegativeStride` test. Fixes: AcademySoftwareFoundation#614 Signed-off-by: 胡玮文 <[email protected]>
Add support for negative stride to FrameBuffer Slice. Change data type of stride from size_t to ptrdiff_t. Add support for negative stride in `copyIntoFrameBuffer` and `copyFromFrameBuffer`. Add a new `testNegativeStride` test. Fixes: AcademySoftwareFoundation#614 Signed-off-by: 胡玮文 <[email protected]>
Frame buffer slice strides are non-negative as per:
https://github.com/openexr/openexr/blob/d778a0b47b18fe1ede3824fe013cea9dd7404360/OpenEXR/IlmImf/ImfFrameBuffer.h#L98-L99
Negative strides could be useful for flipping images at I/O time.
Would it be possible to change
size_t
tossize_t
at the next ABI-break-point?The text was updated successfully, but these errors were encountered: