[Qt-interest] Phonon - access video frames
Martin Schröer
gordon at gordonswelt.de
Thu Mar 5 20:09:21 CET 2009
Helder, thanks for your reply.
Another suggestion made was:
QPixmap::grabWidget(QWidget * widget, int x = 0, int y = 0, int width
= -1, int height = -1)
VideoWidget* videoWidget = new VideoWidget(this);
QPixmap pixmap = QPixmap::grabWidget(videoWidget);
I'm a bit unsure what to do.
What i want to do is to overlay video frames in realtime, with some
static contents
( like text ) but also with some cursor.
What approach would be the best to achieve that ?
Helder Correia schrieb:
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()));
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list