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

QVideoFrame::toImage gives corrupt images when no RHI backend is present

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.2
    • Multimedia
    • None
    • GNU Guix
    • Linux/Wayland
    • 6eacc4847 (dev), f6f7b38e7 (dev), 9897121c3 (6.7), 0e37d823b (6.7), 245a6a4a4 (tqtc/lts-6.5), 9d9a9e67b (tqtc/lts-6.5)
    • Multimedia wk 19-20, Multimedia wk 21-22

    Description

      After upgrading from 6.5.2 to 6.6.2, the following test fails:

       

      ********* Start testing of tst_qvideoframecolormanagement *********
      Config: Using QtTest library 6.6.2, Qt 6.6.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 11.3.0), unknown unknown
      PASS   : tst_qvideoframecolormanagement::initTestCase()
      QWARN  : tst_qvideoframecolormanagement::toImage_savesWithCorrectColors(umbrellas.jpg_nv12_BT601_Video) QRhi* initializeRHI(QRhi*) : No RHI backend. Using CPU conversion.
      FAIL!  : tst_qvideoframecolormanagement::toImage_savesWithCorrectColors(umbrellas.jpg_nv12_BT601_Video) The computed value is expected to be less than the baseline, but is not
         Computed (ratioAboveThreshold): 0.5815503003
         Baseline (0.01)               : 0.01
         Loc: [/tmp/guix-build-qtmultimedia-6.6.2.drv-0/qtmultimedia-everywhere-src-6.6.2/tests/auto/unit/multimedia/qvideoframecolormanagement/tst_qvideoframecolormanagement.cpp(557)]
      FAIL!  : tst_qvideoframecolormanagement::toImage_savesWithCorrectColors(umbrellas.jpg_nv12_BT601_Full) The computed value is expected to be less than the baseline, but is not
         Computed (ratioAboveThreshold): 0.98216966967
         Baseline (0.01)               : 0.01
         Loc: [/tmp/guix-build-qtmultimedia-6.6.2.drv-0/qtmultimedia-everywhere-src-6.6.2/tests/auto/unit/multimedia/qvideoframecolormanagement/tst_qvideoframecolormanagement.cpp(557)]
      FAIL!  : tst_qvideoframecolormanagement::toImage_savesWithCorrectColors(umbrellas.jpg_nv12_BT709_Video) The computed value is expected to be less than the baseline, but is not
         Computed (ratioAboveThreshold): 0.826388888889
         Baseline (0.01)               : 0.01
         Loc: [/tmp/guix-build-qtmultimedia-6.6.2.drv-0/qtmultimedia-everywhere-src-6.6.2/tests/auto/unit/multimedia/qvideoframecolormanagement/tst_qvideoframecolormanagement.cpp(557)]
      FAIL!  : tst_qvideoframecolormanagement::toImage_savesWithCorrectColors(umbrellas.jpg_nv12_BT709_Full) The computed value is expected to be less than the baseline, but is not
         Computed (ratioAboveThreshold): 0.978744369369
         Baseline (0.01)               : 0.01
         Loc: [/tmp/guix-build-qtmultimedia-6.6.2.drv-0/qtmultimedia-everywhere-src-6.6.2/tests/auto/unit/multimedia/qvideoframecolormanagement/tst_qvideoframecolormanagement.cpp(557)]
      FAIL!  : tst_qvideoframecolormanagement::toImage_savesWithCorrectColors(umbrellas.jpg_nv12_AdobeRgb_Video) The computed value is expected to be less than the baseline, but is not
         Computed (ratioAboveThreshold): 0.97240990991
         Baseline (0.01)               : 0.01
         Loc: [/tmp/guix-build-qtmultimedia-6.6.2.drv-0/qtmultimedia-everywhere-src-6.6.2/tests/auto/unit/multimedia/qvideoframecolormanagement/tst_qvideoframecolormanagement.cpp(557)]
      
      [...]
      
      FAIL!  : tst_qvideoframecolormanagement::toImage_savesWithCorrectColors(umbrellas.jpg_422p_BT2020_Video) T
      he computed value is expected to be less than the baseline, but is not
         Computed (ratioAboveThreshold): 0.98704954955
         Baseline (0.01)               : 0.01
         Loc: [/tmp/guix-build-qtmultimedia-6.6.2.drv-0/qtmultimedia-everywhere-src-6.6.2/tests/auto/unit/multim
      edia/qvideoframecolormanagement/tst_qvideoframecolormanagement.cpp(557)]
      FAIL!  : tst_qvideoframecolormanagement::toImage_savesWithCorrectColors(umbrellas.jpg_422p_BT2020_Full) Th
      e computed value is expected to be less than the baseline, but is not
         Computed (ratioAboveThreshold): 0.996809309309
         Baseline (0.01)               : 0.01
         Loc: [/tmp/guix-build-qtmultimedia-6.6.2.drv-0/qtmultimedia-everywhere-src-6.6.2/tests/auto/unit/multim
      edia/qvideoframecolormanagement/tst_qvideoframecolormanagement.cpp(557)]
      PASS   : tst_qvideoframecolormanagement::cleanupTestCase()
      Totals: 2 passed, 64 failed, 0 skipped, 0 blacklisted, 947ms
      ********* Finished testing of tst_qvideoframecolormanagement *********
      Images with differences were found. The output images with differences can be found in "/tmp/guix-build-qtmultimedia-6.6.2.drv-0/tst_qvideoframecolormanagement-tQkcOC" . Review the images and if the differences are expected, please update the testdata with the new output images
      Fontconfig error: No writable cache directories
      Fontconfig error: No writable cache directories
      CMake Error at tst_qvideoframecolormanagementWrapperRelWithDebInfo.cmake:18 (message):
      
        /tmp/guix-build-qtmultimedia-6.6.2.drv-0/build/tests/auto/unit/multimedia/qvideoframecolormanagement/tst_qvideoframecolormanagement
        execution failed with exit code 64.
      
      

      Attachments

        1. screenshot-1.png
          145 kB
          Jøger Hansegård
        2. qtbug-123749-tst_qvideoframecolormanagement-ZCDLRt.tar.gz
          8.75 MB
          Maxim Cournoyer

        Issue Links

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

          Activity

            People

              johanseg Jøger Hansegård
              apteryx Maxim Cournoyer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: