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

[webrtc] No hardware acceleration for a camera view on imx6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.11.3
    • WebEngine
    • None
    • * Yocto: Linux BSP image based on boot2qt (layer: pyro, tag: v5.11.3)
      * Graphics: Vivante, EGLFS only support (without X11)
      * Target: apalis-imx6 based board.

    Description

      I have the Yocto BSP image based on boot2qt layer 'pyro' (a tag v5.11.3) with EGLFS (without X11).

      I use this QML simple WebEngineView code (I choosed the QML to use a HW acceleration):

      import QtQuick 2.0
      import QtQuick.Window 2.0
      import QtWebEngine 1.1
      
      Window {
          width: 1024
          height: 750
          visible: true
      
          WebEngineView {
              id: view
              anchors.fill: parent
              url: "https://webrtc.github.io/samples/"
      
              profile: WebEngineProfile {
                  Component.onCompleted:  console.info(httpUserAgent)
              }
      
              onFeaturePermissionRequested: {
                  console.log("onFeaturePermissionRequested");
                  view.grantFeaturePermission(securityOrigin, feature, true);
              }
      
              onNewViewRequested: {
                  console.log("onNewViewRequested");
                  request.openIn(view)
              }
          }
      }
      

      But, when I choose the "Choose camera resolution" -> "Full HD" I got a very high CPU consumption: ~180%, 97% and 74% for three cores.

      Seems, that no any HW acceleration provides.

      I know, that my board support the HW acceleration, because I testes it with GStreamer, using following pipeline:

      gst-launch-1.0 v4l2src ! image/jpeg,width=1920,height=1080,framerate=30/1 ! imxvpudec ! imxipuvideosink
      

      in case of Gstreamer, I got the CPU consmption ~8-10%..

      Attachments

        Issue Links

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

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              kuzulis Denis Shienkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes