Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QAbstractVideoSurface vs QGraphicsVideoItem Performance as a viewfinder surface?
Qt 6.11 is out! See what's new in the release blog

QAbstractVideoSurface vs QGraphicsVideoItem Performance as a viewfinder surface?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.9k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    rocketchicken
    wrote on last edited by
    #1

    I was wondering what the difference between the two are, besides the obvious
    QCamera can use either as a viewfinder

    void setViewfinder(QGraphicsVideoItem * viewfinder)
    I would suspect that the QGraphicsVideoItem inherently uses the scene graph.

    Where as the QAbstractVideoSurface would use the rasterizer.
    void setViewfinder(QAbstractVideoSurface * surface)

    I am currently trying to optimize my camera pipeline.
    I know that QQuickPaintedItem will allow faster rendering of the surface
    if I use a FramebufferObject instead of a QImage.

    Anyways anyone know about this topic, I know it maybe unlikely but its worth a shot asking, thanks. Also let me know if there are any misconceptions in my understanding.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rocketchicken
      wrote on last edited by
      #2

      Okay turns out they are mutually exclusive from what I can tell from the class references because one doesn't actually give us access to frames.(GraphicsVideoItem) i am guessing with the GraphicsVideoItem path way I would not be able to use the QQuickPaintedItem ? I notice that GraphicsVideoItem has paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0)

      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