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

QImageCapture: setResolution works only after camera start

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.2.0 RC
    • Fix Version/s: 6.2.0 RC
    • Component/s: Multimedia
    • Labels:
      None
    • Platform/s:
      macOS

      Description

      OSX10.15.7 with Qt6.2:

      Changing the image capture resolution from default to something else only works after starting the camera but not before:

      This works:

      camera = new QCamera( QMediaDevices::defaultVideoInput() );
      QCameraDevice cameraDevice = camera->cameraDevice();

      imageCapture = new QImageCapture;

      captureSession.setCamera(camera);
      captureSession.setImageCapture(imageCapture);

      captureSession.setVideoOutput(ui->viewfinder);
      camera->start();
      imageCapture->setResolution(640,480); // CALLING IT AFTER CAMERA START

       

      This does not work:

      camera = new QCamera( QMediaDevices::defaultVideoInput() );
      QCameraDevice cameraDevice = camera->cameraDevice();

      imageCapture = new QImageCapture;

      imageCapture->setResolution(640,480); // CALLING IT BEFORE CAMERA START

      captureSession.setCamera(camera);
      captureSession.setImageCapture(imageCapture);

      captureSession.setVideoOutput(ui->viewfinder);
      camera->start();

       

       

       

       

        Attachments

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

          Activity

            People

            Assignee:
            laknoll Lars Knoll
            Reporter:
            jazzalex Alexander Carôt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes