VideoSurface Class

Converts the camera frame to a gray-scale image. More...

Header: #include <VideoSurface>
Inherits: QAbstractVideoSurface.

Properties

Public Functions

VideoSurface()
~VideoSurface()
QObject * camera() const
bool enabled() const
QImage paintedImage() const

Reimplemented Public Functions

virtual bool present(const QVideoFrame & frame)
virtual QList<QVideoFrame::PixelFormat> supportedPixelFormats(QAbstractVideoBuffer::HandleType handleType) const

Public Slots

void setCamera(QObject * camera)
void setEnabled(bool enabled)

Signals

void cameraChanged(QObject * camera)
void enabledChanged(bool enabled)
void gotImage(QRect paintedImage)

Additional Inherited Members

Detailed Description

Converts the camera frame to a gray-scale image.

Property Documentation

camera : QObject *

Access functions:

QObject * camera() const
void setCamera(QObject * camera)

Notifier signal:

void cameraChanged(QObject * camera)

enabled : bool

Access functions:

bool enabled() const
void setEnabled(bool enabled)

Notifier signal:

void enabledChanged(bool enabled)

Member Function Documentation

VideoSurface::VideoSurface()

VideoSurface::~VideoSurface()

[signal] void VideoSurface::gotImage(QRect paintedImage)

QImage VideoSurface::paintedImage() const

[virtual] bool VideoSurface::present(const QVideoFrame & frame)

[virtual] QList<QVideoFrame::PixelFormat> VideoSurface::supportedPixelFormats(QAbstractVideoBuffer::HandleType handleType) const