#include "timecode_renderer.h"
+#include <assert.h>
+#include <math.h>
+#include <stdio.h>
+#include <time.h>
+#include <epoxy/gl.h>
#include <memory>
#include <string>
#include <vector>
+#include <QFont>
#include <QImage>
+#include <QPaintDevice>
#include <QPainter>
#include <epoxy/gl.h>
-#include <movit/effect_util.h>
#include <movit/resource_pool.h>
#include <movit/util.h>
#include <sys/time.h>
unsigned stream_time_hour = stream_time / 60;
char timecode_text[512];
- snprintf(timecode_text, sizeof(timecode_text), "Nageru - %s.%03u UTC - Stream time %02u:%02u:%02u.%03u (frame %u)",
+ snprintf(timecode_text, sizeof(timecode_text), "Nageru " NAGERU_VERSION " - %s.%03u UTC - Stream time %02u:%02u:%02u.%03u (frame %u)",
clock_text, msecs, stream_time_hour, stream_time_min, stream_time_sec, stream_time_ms, frame_num);
return timecode_text;
}
painter.setPen(Qt::white);
QFont font = painter.font();
+ font.setFamily("Noto Sans");
font.setPointSize(16);
painter.setFont(font);