Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6846435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:37:19+00:00 2026-05-27T00:37:19+00:00

I am currently trying to write an application that displays live video from a

  • 0

I am currently trying to write an application that displays live “video” from a specialized USB device. The USB device provides approx. 10 frames/sec of 320×240 video in an array of gray levels. The application is written in Qt on an iMx51 (800Mhz arm) platform running linux and X11. My application needs to display this video, scaled by a factor of 2 (so 640×480) and use as little CPU as possible.

Currently, the images are displayed as a simple QLabel which updates it’s pixmap every time a new video frame has been transmitted from the device. When the QLabel is being displayed at 320×240 the video plays smoothly and the application uses 20% of the CPU.

When we attempt to scale the QLabel to 640×480 in size the CPU usage spikes, consuming all available resources at 10frames/sec. Our only means of reducing the CPU usage is to drop frames.

We have tried writing a widget with a custom paint event to paint the contents of the video image ourselves to no avail, this technique used slightly more CPU than the QLabel.

Our other products that do this have the capability to blit the image directly to a raw frame buffer (no x11) and despite their much slower CPU’s they can handle this task without any problem. It seems that X11 and Qt is adding an immense amount of overhead for us.

There must be a PROPER way to display a constantly updating image through Qt and X11 that is not so resource intensive. We are exploring the possibility of getting openGL ES up and running on the unit but that may be out of the question for the time being. Is there something I’m missing in the Qt Framework that will allow me to accomplish this relatively simple task?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:37:19+00:00Added an answer on May 27, 2026 at 12:37 am

    After downloading and reading through the VLC source code I settled on using the Xvideo extension for X11. The VLC source code contains an xvideo output “engine” using xcb to communicated with the xserver. I used this as an example to code my own solution.

    On our platform the scaling and display features of the xvideo extension are hardware accelerated.

    I intend to provide a tutorial and example code as soon as time allows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently trying to write a Windows Media Center Application (Vista) that can restart
I'm trying to write a java application that accesses the usb ports to read
I'm currently trying to write an application that intercepts text messages and reacts depending
I am currently trying to write an addin for PowerPoint that whenever any PowerPoint
I am currently working on this application(C#,WPF,LINQ2XML,.NET 4.0) that displays details for 'Animals'. An
I am trying to write a simple application that gets updated. For this I
I am trying to write Watin tests for an intranet application that uses Integrated
I'm trying to write a vb.net application that uses SqlDependency . The dependency will
I'm a beginner in Andoird, currently trying to write an application using the Camera
I am currently trying to write a class in Android that will Scan for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.