summaryrefslogtreecommitdiff
path: root/src/wx/video_view.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-06-06 21:17:56 +0200
committerCarl Hetherington <cth@carlh.net>2024-06-06 21:17:56 +0200
commit3185f6330dc6ccc8ff86a0925602880c67951213 (patch)
treeba8ec5ff9b27bf59de0a5f65ea5f4252cb02d936 /src/wx/video_view.h
parentcfa0a559a8feec79d1e8acd20d4b11ef8cd01513 (diff)
Support optimised rendering of YUV420P in OpenGL.
Diffstat (limited to 'src/wx/video_view.h')
-rw-r--r--src/wx/video_view.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wx/video_view.h b/src/wx/video_view.h
index 387cca9f6..3ea03a5fd 100644
--- a/src/wx/video_view.h
+++ b/src/wx/video_view.h
@@ -23,6 +23,7 @@
#define DCPOMATIC_VIDEO_VIEW_H
+#include "optimisation.h"
#include "lib/dcpomatic_time.h"
#include "lib/exception_store.h"
#include "lib/signaller.h"
@@ -131,8 +132,8 @@ public:
_three_d = t;
}
- void set_optimise_for_j2k (bool o) {
- _optimise_for_j2k = o;
+ void set_optimisation(Optimisation o) {
+ _optimisation = o;
}
protected:
@@ -180,7 +181,7 @@ protected:
StateTimer _state_timer;
- bool _optimise_for_j2k = false;
+ Optimisation _optimisation = Optimisation::NONE;
private:
/** Mutex protecting all the state in this class */