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();
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;
Input *input;
bool isRGB;
YCbCrFormat m_ycbcr_format;
+ EffectChain *m_chain;
};
#endif // MLT_MOVIT_INPUT_H