22 #ifndef QTAV_OPENGLVIDEO_H 23 #define QTAV_OPENGLVIDEO_H 27 #include <QtCore/QHash> 28 #include <QtGui/QMatrix4x4> 29 #include <QtCore/QObject> 30 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) 31 #include <QtGui/QOpenGLContext> 33 #include <QtOpenGL/QGLContext> 34 #define QOpenGLContext QGLContext 44 class OpenGLVideoPrivate;
68 void setOpenGLContext(QOpenGLContext *ctx);
69 QOpenGLContext* openGLContext();
71 void fill(
const QColor& color);
80 void render(
const QRectF& target = QRectF(),
const QRectF& roi = QRectF(),
const QMatrix4x4& transform = QMatrix4x4());
85 void setProjectionMatrixToRect(
const QRectF& v);
87 void setBrightness(qreal value);
88 void setContrast(qreal value);
89 void setHue(qreal value);
90 void setSaturation(qreal value);
95 void beforeRendering();
101 void afterRendering();
114 #endif //QT_NO_OPENGL 115 #endif // QTAV_OPENGLVIDEO_H #define Q_AV_EXPORT
Definition: QtAV_Global.h:40
#define DPTR_DECLARE_PRIVATE(Class)
Definition: dptr.h:107
The VideoShader class Represents a shader for rendering a video frame.
Definition: VideoShader.h:53
Definition: VideoFrame.h:32
#define DPTR_DECLARE(Class)
Definition: dptr.h:105
AudioOutput ao; ao.setAudioFormat(fmt); ao.open(); while (has_data) { data = read_data(ao->bufferSize...
Definition: AudioDecoder.h:31
The OpenGLVideo class high level api for renderering a video frame.
Definition: OpenGLVideo.h:51