/*!
* This file is part of CameraPlus.
*
- * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
~QtCamViewfinderRendererMeeGo();
- virtual void paint(QPainter *painter);
+ virtual void paint(const QMatrix4x4& matrix, const QRectF& viewport);
virtual void resize(const QSizeF& size);
virtual void reset();
virtual GstElement *sinkElement();
QRectF renderArea();
QSizeF videoResolution();
+ bool needsNativePainting();
+
private slots:
void setVideoSize(const QSizeF& size);
void calculateProjectionMatrix(const QRectF& rect);
void createProgram();
- void paintFrame(QPainter *painter, int frame);
+ void paintFrame(const QMatrix4x4& matrix, int frame);
void calculateCoords();
QtCamConfig *m_conf;