Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
5.15.0 RC2
-
None
Description
QImage only supports the data initialization of row-first memory alignment. Assume there is a data of '1,2,3,4,5,6' getting loaded into an image of 3*2, it will be an image of
1 2 3
4 5 6
However, some times (vertical sensor scanning), the data is coming in as column first. So for the above case, the data was really coming as 1, 2 -> 3,4 -> 5,6 so users are expecting an image of
1 3 5
2 4 6
To convert memory in row first to column first is very costy but not sure if when QImage's memory is used internally, it can be handled relatively easier? Is yes, please add an option to support this column first memory alignment data initialization without rearrange the memory layout.
It is not necessary a bug but definitely a very good feature to have.
Thanks!