diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-06-06 21:17:56 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-06-06 21:17:56 +0200 |
| commit | 3185f6330dc6ccc8ff86a0925602880c67951213 (patch) | |
| tree | ba8ec5ff9b27bf59de0a5f65ea5f4252cb02d936 /src/wx/video_view.h | |
| parent | cfa0a559a8feec79d1e8acd20d4b11ef8cd01513 (diff) | |
Support optimised rendering of YUV420P in OpenGL.
Diffstat (limited to 'src/wx/video_view.h')
| -rw-r--r-- | src/wx/video_view.h | 7 |
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 */ |
