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

Android camera: viewfinder resolution according to the area captured image

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.5.0
    • Multimedia
    • None
    • Android 5.0, Samsung SM-P600, QT 5.5

    Description

      In qandroidcamerasession.cpp the function adjustViewfinderSize selects the viewfinder resolution based on the aspect ratio of the captured image. Since the loop starts from the end of the supported preview resolutions, the final viewfinder size ends to have a higher resolution compared to capture image.

      I suggest to match also the area as well as the aspect ratio. AFAK, from QML setting viewfindersize is currently not possible for android camera. Hence in this way, at least the viewfinder resolution will be the same as the capture image resolution (It's unlikely that the viewfinder resolution should be higher than the image resolution).

      In the attachment my proposition (line 290-318).

      Attachments

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

        Activity

          People

            ylopes Yoann Lopes
            lorenzolightsgdwarf Lorenzo Lucignano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes