When the player is used in OpenGL mode, pass unscaled XYZ data through to the shader...
[dcpomatic.git] / src / lib / butler.h
index a231fd0990bf75f8f4e0f8f5bfe4eab50f9bff26..d31442f6c699b1096a52ba842d22043d571f2b44 100644 (file)
@@ -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.
        */