X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=blobdiff_plain;f=lib%2Fqtcamviewfinderrenderermeego.h;h=d7ec2b37fbacec7047a9471108ec538235dd8d42;hp=322c9c5db34bbe3ebc81c7ed3f54a20329442c59;hb=2f83aedd8945838e64037ff02dc3b994c2f1cee0;hpb=4f3bdd1a7e95c3bb30d08f32f5dfff1869443875 diff --git a/lib/qtcamviewfinderrenderermeego.h b/lib/qtcamviewfinderrenderermeego.h index 322c9c5..d7ec2b3 100644 --- a/lib/qtcamviewfinderrenderermeego.h +++ b/lib/qtcamviewfinderrenderermeego.h @@ -3,7 +3,7 @@ /*! * This file is part of CameraPlus. * - * Copyright (C) 2012 Mohammed Sameer + * Copyright (C) 2012-2013 Mohammed Sameer * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ 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(); @@ -48,6 +48,8 @@ public: QRectF renderArea(); QSizeF videoResolution(); + bool needsNativePainting(); + private slots: void setVideoSize(const QSizeF& size); @@ -58,7 +60,7 @@ private: 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;