Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

Category:QtMediaHub::ST7540

From Qt Wiki
Revision as of 14:48, 14 January 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Running QtMediaHub on ST7540

Assumptions

  1. Qt 4.8.0 is configured, built and installed as per ST7540 [qt.io]
  2. Can run STM’s “Test-Tool” on reference board to test OpenGL ES 2.0 and media playback.
  3. QTDIR” and “PATH” environment variables are set to use Qt 4.8.0 cross compiled and installed for ST7540 in your build terminal

Getting Source

You can get the latest source code from gitorious https://gitorious.org/qtmediahub [gitorious.org].
You can use sync-to-head [gitorious.org] to update your sources to latest version

Note that we are in the process of moving the git repositories to the qt.io.

Multimedia Playback Support

QMH uses “platform specific media player application” (in ST’s case it is the Test-Tool) to have media playback facility.
This is achieved using “out of process integration” which means:-

  1. Start “Test-Tool” in background and redirect a FIFO (”/tmp/stapp_fifo2”) to “Test-Tool“s STDIN
  2. Redirect “Test-Tool”‘s STDOUT and STDERROR to a normal file (”/tmp/stapp_log”)
  3. QMH issues commands to “platform specific media player application” to another FIFO (”/tmp/stapp_fifo”)
  4. Have an arrangement to transfer data from FIF0 (”/tmp/stapp_fifo”) to FIFO (”/tmp/stapp_fifo2”)
  5. And QMH collects the feedback by reading “platform specific media player application”‘s STDOUT and STDERROR

This is achieved using following shell (commands in a init) script on ST7540 reference board.

ST7540 specific media control integration can be found in files mediaplayerST7540.h [gitorious.org] and mediaplayerST7540.cpp [gitorious.org]

Configuring

Use “ -media-backend ST7540” configure option to enable multimedia playback capability of QMH

Building

Build QMH as follows

Installing

As installation of QMH on ST7540 reference board copy entire “qtmediahub” directory so that its path is exactly same as that on build machine.

Running QMH on Qt 4.8 (QWS)

Setup QTDIR, QWS_KEYBOARD, QWS_MOUSE_PROTO and LD_LIBRARY_PATH environment variables as follows

Rum QMH as follows to use OpenGL ES 2.0

Rum QMH as follows to use DirectFB

Rum QMH as follows to use Linux Frame Buffer

There is only one article in "QtMediaHub -> ST7540":

Q

This category currently contains no pages or media.