]> git.sesse.net Git - mlt/blobdiff - src/modules/opengl/mlt_movit_input.h
Call invalidate_pixel_data() after frame rendering.
[mlt] / src / modules / opengl / mlt_movit_input.h
index 2f5de231d85938b843ceb92c9d27cfde6c5c3810..16bed6200d14e080511a23c79564d981baa77728 100644 (file)
@@ -35,6 +35,7 @@ public:
        Effect::AlphaHandling alpha_handling() const;
        std::string output_fragment_shader();
        void set_gl_state(GLuint glsl_program_num, const std::string& prefix, unsigned *sampler_num);
+       void inform_added(EffectChain *chain) { m_chain = chain; }
 
        // Input ovverrides
        void finalize();
@@ -45,10 +46,10 @@ public:
        GammaCurve get_gamma_curve() const;
 
        // Custom methods
-       void useFlatInput(EffectChain* chain, MovitPixelFormat pix_fmt, unsigned width, unsigned height);
-       void useYCbCrInput(EffectChain* chain, const ImageFormat& image_format, const YCbCrFormat& ycbcr_format, unsigned width, unsigned height);
-       void useFBOInput(EffectChain* chain, GLuint texture);
+       void useFlatInput(MovitPixelFormat pix_fmt, unsigned width, unsigned height);
+       void useYCbCrInput(const ImageFormat& image_format, const YCbCrFormat& ycbcr_format, unsigned width, unsigned height);
        void set_pixel_data(const unsigned char* data);
+       void invalidate_pixel_data();
 
 private:
        unsigned m_width, m_height;
@@ -56,6 +57,7 @@ private:
        Input *input;
        bool isRGB;
        YCbCrFormat m_ycbcr_format;
+       EffectChain *m_chain;
 };
 
 #endif // MLT_MOVIT_INPUT_H