diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-09-11 18:52:05 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-09-27 13:41:46 +0200 |
| commit | 7245e46453a82886739a45bd78fcdf9e8401367c (patch) | |
| tree | d8f8b3d420eecfc958ac78df40c26f77d34f47d3 /src/wx/film_viewer.cc | |
| parent | e9ae050b0b15c91c3f591ad84938e60d271357b3 (diff) | |
When the player is used in OpenGL mode, pass unscaled XYZ data through to the shader and do colourspace conversion there.
Diffstat (limited to 'src/wx/film_viewer.cc')
| -rw-r--r-- | src/wx/film_viewer.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 77c2e85d6..749e4ceb7 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -229,6 +229,10 @@ FilmViewer::recreate_butler () _butler->disable_audio (); } + if (dynamic_pointer_cast<GLVideoView>(_video_view) && _optimise_for_j2k) { + _butler->set_prepare_only_proxy (true); + } + _closed_captions_dialog->set_butler (_butler); resume (); @@ -772,3 +776,12 @@ FilmViewer::image_changed (shared_ptr<PlayerVideo> pv) { emit (boost::bind(boost::ref(ImageChanged), pv)); } + + +void +FilmViewer::set_optimise_for_j2k (bool o) +{ + _optimise_for_j2k = o; + _video_view->set_optimise_for_j2k (o); +} + |
