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. Display UYVY frame in widget

Display UYVY frame in widget

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.9k 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.
  • W Offline
    W Offline
    wshirey
    wrote on last edited by
    #1

    I would like to know what's the best way to show UYVY frames coming from capture card (720p 60Hz) using Qt framework? Basically I am given a pointer to a memory location of a frame of video, and need to display that video in realtime.

    I have looked at the multimedia/videowidget sample, but the images there are RGB, where as I'm using YUV colorspace.

    I have also looked at the phonon module, but didn't look too promising for my application.

    Anyone solved this problem previously?

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

      If you do not want to use OpenGL, you will have to do the YUV/RGB conversion on the CPU which can be quite intensive, and then display the resulting image. I would not go that way...
      A great solution would be to stream the contents of that buffer to an OpenGL texture and then to use a GLSL fragment shader program to do the conversion when displaying the frame.
      Using this approach the conversion will be completed very efficiently in parallel on the GPU. The many cores available in modern GPUs just crave to do such processing. It would work great even on entry-level embedded GPUs such as Intel Graphics 3000 and such.

      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