176 return d_func()->format;
202 bool wasActive =
d->active;
243 return d_func()->active;
290 return d_func()->error;
#define QT_END_NAMESPACE
This macro expands to.
Error
This enum describes the errors that may be returned by the error() function.
void activeChanged(bool active)
Signals that the active state of a video surface has changed.
virtual void stop()
Stops a video surface presenting frames and releases any resources acquired in start().
~QAbstractVideoSurface()
Destroys a video surface.
The QObject class is the base class of all Qt objects.
void setError(Error error)
Sets the value of error() to error.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void surfaceFormatChanged(const QVideoSurfaceFormat &format)
Signals that the configured format of a video surface has changed.
QVideoSurfaceFormat surfaceFormat() const
Returns the format of a video surface.
virtual QVideoSurfaceFormat nearestFormat(const QVideoSurfaceFormat &format) const
Returns a supported video surface format that is similar to format.
QAbstractVideoSurface(QObject *parent=0)
Constructs a video surface with the given parent.
virtual bool isFormatSupported(const QVideoSurfaceFormat &format) const
Tests a video surface format to determine if a surface can accept it.
QObject * parent() const
Returns a pointer to the parent object.
The QAbstractVideoSurface class is a base class for video presentation surfaces.
Error error() const
Returns the last error that occurred.
virtual QList< QVideoFrame::PixelFormat > supportedPixelFormats(QAbstractVideoBuffer::HandleType handleType=QAbstractVideoBuffer::NoHandle) const =0
Returns a list of pixel formats a video surface can present for a given handle type.
bool isActive() const
Indicates whether a video surface has been started.
virtual bool start(const QVideoSurfaceFormat &format)
Starts a video surface presenting format frames.