I could not find a way to represent images with rows ordered bottom-up.
In Microsoft Media Foundations, they use negative stride but the SampleLayout struct does not handle this case.
It would be great to be able to use negative strides or maybe some kind of "inverted" flag, but I suppose this would be a breaking change.
Currently, the only way I know to handle this case is to convert the buffer by swapping the rows.
I could not find a way to represent images with rows ordered bottom-up. In Microsoft Media Foundations, they use negative stride but the
SampleLayout
struct does not handle this case. It would be great to be able to use negative strides or maybe some kind of "inverted" flag, but I suppose this would be a breaking change.Currently, the only way I know to handle this case is to convert the buffer by swapping the rows.