Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84684

QImage to support column-first data

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.15.0 RC2
    • GUI: Painting
    • None
    • All

    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!

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            zxpatric Patrick zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes