4#ifndef AVFVIDEORENDERERCONTROL_H
5#define AVFVIDEORENDERERCONTROL_H
18#include <QtCore/QObject>
19#include <QtCore/QMutex>
20#include <QtCore/QSize>
24#include <CoreVideo/CVBase.h>
25#include <CoreVideo/CVPixelBuffer.h>
55 void updateVideoFrame(
const CVTimeStamp &ts);
58 AVPlayerLayer *playerLayer()
const {
return static_cast<AVPlayerLayer *
>(
m_layer); }
59 CVPixelBufferRef copyPixelBufferFromLayer(
size_t&
width,
size_t&
height);
63 AVPlayerItemVideoOutput *m_videoOutput =
nullptr;
64 AVPlayerItemLegibleOutput *m_subtitleOutput =
nullptr;
67 bool m_mirrored =
false;
void setVideoMirrored(bool mirrored)
virtual ~AVFVideoRendererControl()
void setSubtitleText(const QString &subtitle)
void setLayer(CALayer *layer) override
void setVideoRotation(QVideoFrame::RotationAngle)
void reconfigure() override
QObject * parent() const
Returns a pointer to the parent object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
RotationAngle
The angle of the clockwise rotation that should be applied to a video frame before displaying.
Combined button and popup list for selecting options.
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname)
GLint GLsizei GLsizei height