dsharlet / array

C++ multidimensional arrays in the spirit of the STL
Apache License 2.0
198 stars 15 forks source link

Adjusts stride calculation for single-row interleaved or single-plane planar images. #95

Closed benweiss closed 1 year ago

benweiss commented 1 year ago

Fix for Issue #91. Adjusts automatic stride calculation to improve an edge case where single-row images were getting assigned a y-stride of 1, rather than the number of row elements. (Similarly for plane-stride of planar images with a single plane.)

dsharlet commented 1 year ago

Thanks again, this is a really nice fix!

benweiss commented 1 year ago

Thanks again Dillon, happy you found it useful!