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

macOS: Frame rates are not applied

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.14
    • Multimedia
    • None
    • macOS

      QCamera::setViewfinderSettings does not expose frame rates

          QCamera c;
          c.load();
          QObject::connect(&c,&QCamera::stateChanged,[&](QCamera::State s) {
              if (s==QCamera::ActiveState)
                  qDebug() << ":="<<c.viewfinderSettings().maximumFrameRate()<<":"<<c.viewfinderSettings().minimumFrameRate();
          });
      
          QCameraViewfinderSettings sss = c.supportedViewfinderSettings()[0];
          auto ss = c.viewfinderSettings();
          qDebug() << ss.maximumFrameRate()<<":"<<ss.minimumFrameRate();
      
          c.setViewfinderSettings(sss);
          ss = c.viewfinderSettings();
          qDebug() << ss.maximumFrameRate()<<":"<<ss.minimumFrameRate();
      
          c.start();
      

      https://developer.apple.com/documentation/avfoundation/avcapturedevice?language=objc

      In macOS, a capture session can still automatically configure the capture format after you make changes. To prevent automatic changes to the capture format in macOS, follow the advice listed under the lockForConfiguration: method.

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

            valentyn.doroshchuk Valentyn Doroshchuk
            valentyn.doroshchuk Valentyn Doroshchuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes