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

QImageCapture: setResolution works only after camera start

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.0 RC
    • 6.2.0 RC
    • Multimedia
    • None
    • 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

            laknoll Lars Knoll
            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