Miam-Player  0.8.0
A nice music player
QtAV::OpenGLRendererBase Class Reference

#include <OpenGLRendererBase.h>

Inheritance diagram for QtAV::OpenGLRendererBase:
QtAV::VideoRenderer QtAV::AVOutput QtAV::OpenGLWindowRenderer

Public Member Functions

virtual ~OpenGLRendererBase ()
 
bool isSupported (VideoFormat::PixelFormat pixfmt) const Q_DECL_OVERRIDE
 
OpenGLVideoopengl () const Q_DECL_OVERRIDE
 opengl Currently you can only use it to set custom shader OpenGLVideo.setUserShader() More...
 
- Public Member Functions inherited from QtAV::VideoRenderer
 VideoRenderer ()
 
virtual ~VideoRenderer ()
 
virtual VideoRendererId id () const =0
 
bool receive (const VideoFrame &frame)
 
bool setPreferredPixelFormat (VideoFormat::PixelFormat pixfmt)
 setPreferredPixelFormat More...
 
virtual VideoFormat::PixelFormat preferredPixelFormat () const
 preferredPixelFormat More...
 
void forcePreferredPixelFormat (bool force=true)
 forcePreferredPixelFormat force to use preferredPixelFormat() even if incoming format is supported More...
 
bool isPreferredPixelFormatForced () const
 
qreal sourceAspectRatio () const
 sourceAspectRatio The display aspect ratio of received video frame. More...
 
void setOutAspectRatioMode (OutAspectRatioMode mode)
 
OutAspectRatioMode outAspectRatioMode () const
 
void setOutAspectRatio (qreal ratio)
 
qreal outAspectRatio () const
 
void setQuality (Quality q)
 
Quality quality () const
 
void resizeRenderer (const QSize &size)
 
void resizeRenderer (int width, int height)
 
QSize rendererSize () const
 
int rendererWidth () const
 
int rendererHeight () const
 
QSize videoFrameSize () const
 
int orientation () const
 orientation 0, 90, 180, 270. More...
 
void setOrientation (int value)
 
QRect videoRect () const
 
QRectF regionOfInterest () const
 
void setRegionOfInterest (qreal x, qreal y, qreal width, qreal height)
 
void setRegionOfInterest (const QRectF &roi)
 
QRect realROI () const
 
QRectF normalizedROI () const
 
QPointF mapToFrame (const QPointF &p) const
 mapToFrame map point in VideoRenderer coordinate to VideoFrame, with current ROI More...
 
QPointF mapFromFrame (const QPointF &p) const
 mapFromFrame map point in VideoFrame coordinate to VideoRenderer, with current ROI More...
 
virtual QWindow * qwindow ()
 
virtual QWidget * widget ()
 widget More...
 
virtual QGraphicsItem * graphicsItem ()
 graphicsItem More...
 
qreal brightness () const
 brightness, contrast, hue, saturation values range between -1.0 and 1.0, the default is 0. More...
 
bool setBrightness (qreal brightness)
 
qreal contrast () const
 
bool setContrast (qreal contrast)
 
qreal hue () const
 
bool setHue (qreal hue)
 
qreal saturation () const
 
bool setSaturation (qreal saturation)
 
QColor backgroundColor () const
 
void setBackgroundColor (const QColor &c)
 
- Public Member Functions inherited from QtAV::AVOutput
 AVOutput ()
 
virtual ~AVOutput ()
 
bool isAvailable () const
 
void pause (bool p)
 
bool isPaused () const
 
QList< Filter * > & filters ()
 
bool installFilter (Filter *filter, int index=0x7fffffff)
 installFilter Insert a filter at position 'index' of current filter list. More...
 
bool uninstallFilter (Filter *filter)
 

Protected Member Functions

virtual bool receiveFrame (const VideoFrame &frame) Q_DECL_OVERRIDE
 
virtual void drawBackground () Q_DECL_OVERRIDE
 
virtual void drawFrame () Q_DECL_OVERRIDE
 
void onInitializeGL ()
 
void onPaintGL ()
 
void onResizeGL (int w, int h)
 
void onResizeEvent (int w, int h)
 
void onShowEvent ()
 
 OpenGLRendererBase (OpenGLRendererBasePrivate &d)
 
- Protected Member Functions inherited from QtAV::VideoRenderer
 VideoRenderer (VideoRendererPrivate &d)
 
QRegion backgroundRegion () const
 
virtual void handlePaintEvent ()
 
virtual void updateUi ()
 
- Protected Member Functions inherited from QtAV::AVOutput
 AVOutput (AVOutputPrivate &d)
 
Q_DECL_DEPRECATED bool tryPause ()
 
void addOutputSet (OutputSet *set)
 
void removeOutputSet (OutputSet *set)
 
void attach (OutputSet *set)
 
void detach (OutputSet *set=0)
 
void hanlePendingTasks ()
 

Additional Inherited Members

- Public Types inherited from QtAV::VideoRenderer
enum  OutAspectRatioMode { RendererAspectRatio, VideoAspectRatio, CustomAspectRation }
 
enum  Quality { QualityDefault, QualityBest, QualityFastest }
 
- Static Public Member Functions inherited from QtAV::VideoRenderer
template<class C >
static bool Register (VideoRendererId id, const char *name)
 
static VideoRenderercreate (VideoRendererId id)
 
static VideoRenderercreate (const char *name)
 
static VideoRendererIdnext (VideoRendererId *id=0)
 next More...
 
static const char * name (VideoRendererId id)
 
static VideoRendererId id (const char *name)
 

Constructor & Destructor Documentation

◆ ~OpenGLRendererBase()

virtual QtAV::OpenGLRendererBase::~OpenGLRendererBase ( )
virtual

◆ OpenGLRendererBase()

QtAV::OpenGLRendererBase::OpenGLRendererBase ( OpenGLRendererBasePrivate d)
protected

Member Function Documentation

◆ drawBackground()

virtual void QtAV::OpenGLRendererBase::drawBackground ( )
protectedvirtual

Reimplemented from QtAV::VideoRenderer.

◆ drawFrame()

virtual void QtAV::OpenGLRendererBase::drawFrame ( )
protectedvirtual

Implements QtAV::VideoRenderer.

◆ isSupported()

bool QtAV::OpenGLRendererBase::isSupported ( VideoFormat::PixelFormat  pixfmt) const
virtual

Implements QtAV::VideoRenderer.

◆ onInitializeGL()

void QtAV::OpenGLRendererBase::onInitializeGL ( )
protected

◆ onPaintGL()

void QtAV::OpenGLRendererBase::onPaintGL ( )
protected

◆ onResizeEvent()

void QtAV::OpenGLRendererBase::onResizeEvent ( int  w,
int  h 
)
protected

◆ onResizeGL()

void QtAV::OpenGLRendererBase::onResizeGL ( int  w,
int  h 
)
protected

◆ onShowEvent()

void QtAV::OpenGLRendererBase::onShowEvent ( )
protected

◆ opengl()

OpenGLVideo* QtAV::OpenGLRendererBase::opengl ( ) const
virtual

opengl Currently you can only use it to set custom shader OpenGLVideo.setUserShader()

Reimplemented from QtAV::VideoRenderer.

◆ receiveFrame()

virtual bool QtAV::OpenGLRendererBase::receiveFrame ( const VideoFrame frame)
protectedvirtual

Implements QtAV::VideoRenderer.


The documentation for this class was generated from the following file: