reworked viewer timers
This commit is contained in:
@@ -37,8 +37,6 @@
|
||||
#include "render/previewautocacher.h"
|
||||
#include "threading/threadticketwatcher.h"
|
||||
#include "viewerdisplay.h"
|
||||
#include "viewerplaybacktimer.h"
|
||||
#include "viewerqueue.h"
|
||||
#include "viewersizer.h"
|
||||
#include "viewerwindow.h"
|
||||
#include "widget/playbackcontrols/playbackcontrols.h"
|
||||
@@ -183,7 +181,7 @@ private:
|
||||
|
||||
bool ViewerMightBeAStill();
|
||||
|
||||
void SetDisplayImage(QVariant frame, bool main_only = false);
|
||||
void SetDisplayImage(QVariant frame);
|
||||
|
||||
void RequestNextFrameForQueue(bool prioritize = false, bool increment = true);
|
||||
|
||||
@@ -193,8 +191,6 @@ private:
|
||||
|
||||
int DeterminePlaybackQueueSize();
|
||||
|
||||
void PopOldestFrameFromPlaybackQueue();
|
||||
|
||||
static FramePtr DecodeCachedImage(const QString &cache_path, const QByteArray &hash, const rational& time);
|
||||
|
||||
static void DecodeCachedImage(RenderTicketPtr ticket, const QString &cache_path, const QByteArray &hash, const rational& time);
|
||||
@@ -231,11 +227,10 @@ private:
|
||||
|
||||
ViewerDisplayWidget* context_menu_widget_;
|
||||
|
||||
ViewerPlaybackTimer playback_timer_;
|
||||
QTimer playback_backup_timer_;
|
||||
|
||||
ViewerQueue playback_queue_;
|
||||
int64_t playback_queue_next_frame_;
|
||||
QVector<ViewerDisplayWidget*> playback_devices_;
|
||||
|
||||
bool prequeuing_video_;
|
||||
int prequeuing_audio_;
|
||||
@@ -245,6 +240,7 @@ private:
|
||||
rational last_length_;
|
||||
|
||||
int prequeue_length_;
|
||||
int prequeue_count_;
|
||||
|
||||
PreviewAutoCacher auto_cacher_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user