Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.5.0
-
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#
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:
qml: [
{"minimumFrameRate":10,"maximumFrameRate":10},
{"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}]
qml: [object Object]
qml:
qml: [
{"minimumFrameRate":10,"maximumFrameRate":10},
{"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}]
qml: [object Object]
qml:
qml: [
{"minimumFrameRate":10,"maximumFrameRate":10},
{"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}]
qml: [object Object]
qml:
qml: [
{"minimumFrameRate":10,"maximumFrameRate":10},
{"minimumFrameRate":30.00003000003,"maximumFrameRate":30.00003000003}]
qml: [object Object]
qml:
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#
\global
qml: [object Object]
qml:
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:
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:
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:
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:
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:
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:
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:
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:
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}]