[Qt-interest] Phonon - access video frames

Helder Correia helder.pereira.correia at gmail.com
Thu Mar 5 16:49:18 CET 2009


On Wed, Mar 4, 2009 at 2:11 PM, Martin Schröer <gordon at gordonswelt.de> wrote:
> I want to access the video frames of a media played back directly, so i can
> apply some manipulation to it before it goes to the screen.
> May someone give me hints on this ?

Hi Martin. Take a look at
src/3rdparty/webkit/WebCore/platform/graphics/qt/MediaPlayerPrivatePhonon.cpp
Particularly these lines:
   m_videoWidget->setAttribute(Qt::WA_DontShowOnScreen);
   ...
   m_videoWidget->render(painter, QPoint(rect.x(), rect.y()),
QRegion(0, 0, rect.width(), rect.height()));




More information about the Qt-interest-old mailing list