Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Best way to create an OSD (on screen display with Qt)
QtWS25 Last Chance

Best way to create an OSD (on screen display with Qt)

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 600 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Omer.Tal
    wrote on last edited by
    #1

    Hey there,

    I have a gstreamer pipeline which receives h264 from an RTSP source.
    Then I pass the binary data to QOpenGLWidget, and then I draw using QPainter.

    I've noticed that CPU is quite high, and gets even higher when FPS increases.
    I was wondering if there's a way I can avoid drawing using the QPainter for each video frame, and only draw when things are actually changing on the OSD data.

    Thank you
    Omer

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What kind of OSD do you have ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • O Offline
        O Offline
        Omer.Tal
        wrote on last edited by
        #3

        Hey @SGaist,

        The OSD contains mostly text, icons (QPixmaps), QPainterPaths, lines and so on...

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          If these are not particularly dynamic, why not make a texture out of them and blend the image with that texture ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          O 1 Reply Last reply
          0
          • SGaistS SGaist

            If these are not particularly dynamic, why not make a texture out of them and blend the image with that texture ?

            O Offline
            O Offline
            Omer.Tal
            wrote on last edited by
            #5

            @SGaist They are very much dynamic.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved