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/lib/butler.h | |
| 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/lib/butler.h')
| -rw-r--r-- | src/lib/butler.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/butler.h b/src/lib/butler.h index a231fd099..d31442f6c 100644 --- a/src/lib/butler.h +++ b/src/lib/butler.h @@ -80,6 +80,9 @@ public: boost::optional<TextRingBuffers::Data> get_closed_caption (); void disable_audio (); + void set_prepare_only_proxy (bool p) { + _prepare_only_proxy = p; + } std::pair<size_t, std::string> memory_used () const; @@ -127,6 +130,14 @@ private: bool _aligned; bool _fast; + /** true to ask PlayerVideo::prepare to only prepare the ImageProxy and not also + * the final image. We want to do this when the viewer is intending to call + * PlayerVideo::raw_image() and do the things in PlayerVideo::make_imgae() itself: + * this is the case for the GLVideoView which can do scale, pixfmt conversion etc. + * in the shader. + */ + bool _prepare_only_proxy = false; + /** If we are waiting to be refilled following a seek, this is the time we were seeking to. */ |
