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

Header diff issues in QtMultimedia

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.5.0
    • 5.5.0 RC
    • Multimedia
    • None
    • 7f9beeaf9c1f86268dee8e6f668fbf78313ffd9c

    Description

      On Friday 05 June 2015 10:10:52 Frederik Gladhorn wrote:
      > + typedef QPair<qreal, qreal> FrameRateRange;

      Should be a struct, not a QPair:

      FrameRateChange chg = ...;
      chg.first... // what's first???
      chg.second... // what's second???

      > enum Status {
      > UnavailableStatus,
      > UnloadedStatus,
      > @@ -169,6 +172,21 @@ public:
      > void setViewfinder(QGraphicsVideoItem *viewfinder);
      > void setViewfinder(QAbstractVideoSurface *surface);
      >
      > + QCameraViewfinderSettings viewfinderSettings() const;
      > + void setViewfinderSettings(const QCameraViewfinderSettings &settings);
      > +
      > + QList<QCameraViewfinderSettings> supportedViewfinderSettings(
      > + const QCameraViewfinderSettings &settings =
      > QCameraViewfinderSettings()) const;

      QCameraViewFinderSettings isn't marked as movable, so should be held in
      QVector instead.

      > + QList<QSize> supportedViewfinderResolutions(
      > + const QCameraViewfinderSettings &settings =
      > QCameraViewfinderSettings()) const;

      QList<QSize> should be QVector<QSize>

      > + QList<FrameRateRange> supportedViewfinderFrameRateRanges(
      > + const QCameraViewfinderSettings &settings =

      QList<FrameRateChange> should be QVector<FrameRateChange>

      > QCameraViewfinderSettings()) const; +
      > + QList<QVideoFrame::PixelFormat> supportedViewfinderPixelFormats(
      > + const QCameraViewfinderSettings &settings =
      > QCameraViewfinderSettings()) const;

      QList<PixelFormat> should be QVector<PixelFormat> (enum PixelFormat)

      Thanks,
      Marc


      Marc Mutz <marc.mutz@kdab.com> | Senior Software Engineer

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-46563
          # Subject Branch Project Status CR V

          Activity

            People

              ylopes Yoann Lopes
              janihe Jani Heikkinen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes