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/film_viewer.h | |
| parent | cfa0a559a8feec79d1e8acd20d4b11ef8cd01513 (diff) | |
Support optimised rendering of YUV420P in OpenGL.
Diffstat (limited to 'src/wx/film_viewer.h')
| -rw-r--r-- | src/wx/film_viewer.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/wx/film_viewer.h b/src/wx/film_viewer.h index 63aa113d1..392cf85a3 100644 --- a/src/wx/film_viewer.h +++ b/src/wx/film_viewer.h @@ -24,6 +24,7 @@ */ +#include "optimisation.h" #include "video_view.h" #include "lib/change_signaller.h" #include "lib/config.h" @@ -101,7 +102,7 @@ public: void set_outline_subtitles (boost::optional<dcpomatic::Rect<double>>); void set_eyes (Eyes e); void set_pad_black (bool p); - void set_optimise_for_j2k (bool o); + void set_optimisation(Optimisation o); void set_crop_guess (dcpomatic::Rect<float> crop); void unset_crop_guess (); @@ -206,10 +207,7 @@ private: boost::optional<int> _dcp_decode_reduction; - /** true to assume that this viewer is only being used for JPEG2000 sources - * so it can optimise accordingly. - */ - bool _optimise_for_j2k = false; + Optimisation _optimisation = Optimisation::NONE; ClosedCaptionsDialog* _closed_captions_dialog = nullptr; |
