5#include "qvideorenderercontrol.h"
8#include "qvideowindowcontrol.h"
13#include <QGraphicsView>
91 videoWidget->videoSurface()->start(
format);
92 videoWidget->videoSurface()->present(
img);
113 graphicsView->show();
void setVideoSink(QVideoSink *sink)
QVideoSink * videoSink() const
void onNewVideoContentReceived(const QVideoFrame &frame)
void addItem(QGraphicsItem *item)
Adds or moves the item and all its children to this scene.
The QGraphicsVideoItem class provides a graphics item which display video produced by a QMediaPlayer ...
The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.
QGraphicsScene * scene() const
Returns a pointer to the scene that is currently visualized in the view.
QImage convertToFormat(Format f, Qt::ImageConversionFlags flags=Qt::AutoColor) const &
The QVideoFrame class represents a frame of video data.
The QVideoSink class represents a generic sink for video data.
void setVideoFrame(const QVideoFrame &frame)
Sets the current video frame.
void VideoWindowControl()
void VideoWidgetControl()
GLint GLsizei GLsizei GLenum format
GLsizei GLenum GLboolean sink