ffmpegdirectpainterwidget.h Example File
ffmpeg/ffmpegdirectpainterwidget.h
#ifndef __FFMPEG_DIRECTPAINTERSINK_H
#define __FFMPEG_DIRECTPAINTERSINK_H
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <QDirectPainter>
#include "ffmpegsinkwidget.h"
class QVideoFrame;
class QVideoSurface;
namespace ffmpeg
{
class DirectPainterWidget :
public SinkWidget
{
public:
DirectPainterWidget(QObject* parent = 0);
~DirectPainterWidget();
QRect m_viewPort;
virtual QVideoSurface *videoSurface();
void setVideoSize(int width, int height);
void paint( const QVideoFrame& frame );
virtual int windowId() const;
private:
QVideoSurface *m_videoSurface;
};
}
#endif
Copyright © 2009 Nokia |
Trademarks |
Qt Extended 4.4.3 |