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

Camera.supportedViewfinderFrameRateRanges(param) doesn't respect param

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.5.1
    • 5.5.0
    • Multimedia
    • None
    • Windows 8.1 64bit, MSVC_2013_64, 1MP webcam
    • 4eb4a3ada360af152b9403e8a88eb76b9474c4ba

    Description

      list<object> supportedViewfinderFrameRateRanges(size resolution = undefined)
      ...
      If the optional parameter resolution is specified, the returned list is reduced to frame rate ranges supported for the given resolution.
      ...

      However, it seems that the function always returns ALL frame-rate ranges, regardless of specified resolution. This might be a back-end related thing, also, but I see the same behavior with 5 different cameras/drivers/manufacturers. Example:

              Camera {
                  id: camera
      
                  Component.onCompleted: {
                          var resolutions = camera.supportedViewfinderResolutions();
                          for (var j=0; j< resolutions.length; j++) {
                              console.log(resolutions[j]);
                              console.log(JSON.stringify(resolutions[j]));
                              console.log(JSON.stringify(camera.supportedViewfinderFrameRateRanges(resolutions[j])));
                          }
                      }
                  }
      

      Expected:

      qml: HP High Definition 1MP Webcam
      qml: @device:pnp:\\?\usb#vid_064e&pid_9303&mi_00#7&3140a398&0&0000#

      {65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
      qml: [object Object]
      qml: {"width":160,"height":120}
      qml: [{"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}]
      qml: [object Object]
      qml: {"width":320,"height":240}
      qml: [{"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}]
      qml: [object Object]
      qml: {"width":640,"height":360}
      qml: [{"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}]
      qml: [object Object]
      qml: {"width":640,"height":480}
      qml: [{"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}]
      qml: [object Object]
      qml: {"width":1280,"height":720}
      qml: [{"minimumFrameRate":10,"maximumFrameRate":10}]


      Actual:

      qml: HP High Definition 1MP Webcam
      qml: @device:pnp:\\?\usb#vid_064e&pid_9303&mi_00#7&3140a398&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}

      \global
      qml: [object Object]
      qml:

      {"width":160,"height":120}

      qml: [

      {"minimumFrameRate":10,"maximumFrameRate":10}

      ,

      {"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}

      ]
      qml: [object Object]
      qml:

      {"width":320,"height":240}

      qml: [

      {"minimumFrameRate":10,"maximumFrameRate":10}

      ,

      {"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}

      ]
      qml: [object Object]
      qml:

      {"width":640,"height":360}

      qml: [

      {"minimumFrameRate":10,"maximumFrameRate":10}

      ,

      {"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}

      ]
      qml: [object Object]
      qml:

      {"width":640,"height":480}

      qml: [

      {"minimumFrameRate":10,"maximumFrameRate":10}

      ,

      {"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}

      ]
      qml: [object Object]
      qml:

      {"width":1280,"height":720}

      qml: [

      {"minimumFrameRate":10,"maximumFrameRate":10}

      ,

      {"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}

      ]

      Actual 2 (different camera):

      qml: Intel(R) RealSense(TM) 3D Camera (Front F200) RGB
      qml: @device:pnp:\\?\usb#vid_8086&pid_0a66&mi_00#7&1446047e&0&0000#

      {65e8773d-8f56-11d0-a3b9-00a0c9223196}

      \global
      qml: [object Object]
      qml:

      {"width":320,"height":180}

      qml: [

      {"minimumFrameRate":2,"maximumFrameRate":2}

      ,

      {"minimumFrameRate":5,"maximumFrameRate":5}

      ,

      {"minimumFrameRate":15.000015000015,"maximumFrameRate":15.000015000015}

      ,

      {"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}

      ,

      {"minimumFrameRate":60.000240000960005,"maximumFrameRate":60.000240000960005}

      ]
      qml: [object Object]
      qml:

      {"width":320,"height":240}

      qml: [

      {"minimumFrameRate":2,"maximumFrameRate":2}

      ,

      {"minimumFrameRate":5,"maximumFrameRate":5}

      ,

      {"minimumFrameRate":15.000015000015,"maximumFrameRate":15.000015000015}

      ,

      {"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}

      ,

      {"minimumFrameRate":60.000240000960005,"maximumFrameRate":60.000240000960005}

      ]
      qml: [object Object]
      qml:

      {"width":424,"height":240}

      qml: [

      {"minimumFrameRate":2,"maximumFrameRate":2}

      ,

      {"minimumFrameRate":5,"maximumFrameRate":5}

      ,

      {"minimumFrameRate":15.000015000015,"maximumFrameRate":15.000015000015}

      ,

      {"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}

      ,

      {"minimumFrameRate":60.000240000960005,"maximumFrameRate":60.000240000960005}

      ]
      qml: [object Object]
      qml:

      {"width":640,"height":360}

      qml: [

      {"minimumFrameRate":2,"maximumFrameRate":2}

      ,

      {"minimumFrameRate":5,"maximumFrameRate":5}

      ,

      {"minimumFrameRate":15.000015000015,"maximumFrameRate":15.000015000015}

      ,

      {"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}

      ,

      {"minimumFrameRate":60.000240000960005,"maximumFrameRate":60.000240000960005}

      ]
      qml: [object Object]
      qml:

      {"width":640,"height":480}

      qml: [

      {"minimumFrameRate":2,"maximumFrameRate":2}

      ,

      {"minimumFrameRate":5,"maximumFrameRate":5}

      ,

      {"minimumFrameRate":15.000015000015,"maximumFrameRate":15.000015000015}

      ,

      {"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}

      ,

      {"minimumFrameRate":60.000240000960005,"maximumFrameRate":60.000240000960005}

      ]
      qml: [object Object]
      qml:

      {"width":848,"height":480}

      qml: [

      {"minimumFrameRate":2,"maximumFrameRate":2}

      ,

      {"minimumFrameRate":5,"maximumFrameRate":5}

      ,

      {"minimumFrameRate":15.000015000015,"maximumFrameRate":15.000015000015}

      ,

      {"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}

      ,

      {"minimumFrameRate":60.000240000960005,"maximumFrameRate":60.000240000960005}

      ]
      qml: [object Object]
      qml:

      {"width":960,"height":540}

      qml: [

      {"minimumFrameRate":2,"maximumFrameRate":2}

      ,

      {"minimumFrameRate":5,"maximumFrameRate":5}

      ,

      {"minimumFrameRate":15.000015000015,"maximumFrameRate":15.000015000015}

      ,

      {"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}

      ,

      {"minimumFrameRate":60.000240000960005,"maximumFrameRate":60.000240000960005}

      ]
      qml: [object Object]
      qml:

      {"width":1280,"height":720}

      qml: [

      {"minimumFrameRate":2,"maximumFrameRate":2}

      ,

      {"minimumFrameRate":5,"maximumFrameRate":5}

      ,

      {"minimumFrameRate":15.000015000015,"maximumFrameRate":15.000015000015}

      ,

      {"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}

      ,

      {"minimumFrameRate":60.000240000960005,"maximumFrameRate":60.000240000960005}

      ]
      qml: [object Object]
      qml:

      {"width":1920,"height":1080}

      qml: [

      {"minimumFrameRate":2,"maximumFrameRate":2}

      ,

      {"minimumFrameRate":5,"maximumFrameRate":5}

      ,

      {"minimumFrameRate":15.000015000015,"maximumFrameRate":15.000015000015}

      ,

      {"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}

      ,

      {"minimumFrameRate":60.000240000960005,"maximumFrameRate":60.000240000960005}

      ]

      Attachments

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

        Activity

          People

            ylopes Yoann Lopes
            achipa Attila Csipa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes