#include <string.h>
#include <math.h>
#include <stdio.h>
-#include <QtGui>
+#include <QApplication>
+#include <QImage>
+#include <QColor>
+#include <QLocale>
+#include <QPainter>
+#include <QPalette>
+#include <QFont>
+#include <QString>
static QApplication *app = 0;
QFont font;
QString s;
font.setBold( true );
- font.setPointSize( 30 );
+ font.setPointSize( 30 * *height / 1080 );
painter.setPen( QColor("black") );
painter.drawLine( 0, *height/2 + 1, *width, *height/2 );
painter.setPen( QColor("white") );
mlt_frame_get_position( a_frame ), psnr[0], psnr[1], psnr[2],
ssim[0], ssim[1], ssim[2] );
painter.setPen( QColor("black") );
- painter.drawText( 52, *height - 300 * font.pointSize() / 72 + 2, *width, *height, 0, s );
+ painter.drawText( 52, *height * 8 / 10 + 2, *width, *height, 0, s );
painter.setPen( QColor("white") );
- painter.drawText( 50, *height - 300 * font.pointSize() / 72, *width, *height, 0, s );
+ painter.drawText( 50, *height * 8 / 10, *width, *height, 0, s );
// finish Qt drawing
painter.end();