X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=test_util.h;h=6a3e16b49836f483448e453769c1ac440fc8d344;hp=ed0275e15942b23209736be54c113d3afa04c0bd;hb=2fdbe6e32ef5de09db9c890b6cd4355bf65dd1e5;hpb=5718299276a6966eddc2f3fb5948a6dd1bbdef90 diff --git a/test_util.h b/test_util.h index ed0275e..6a3e16b 100644 --- a/test_util.h +++ b/test_util.h @@ -5,12 +5,14 @@ class EffectChainTester { public: - EffectChainTester(const float *data, unsigned width, unsigned height, ColorSpace color_space, GammaCurve gamma_curve); + EffectChainTester(const float *data, unsigned width, unsigned height, MovitPixelFormat pixel_format, ColorSpace color_space, GammaCurve gamma_curve); EffectChain *get_chain() { return &chain; } - void run(float *out_data, ColorSpace color_space, GammaCurve gamma_curve); + Input *add_input(const float *data, MovitPixelFormat pixel_format, ColorSpace color_space, GammaCurve gamma_curve); + void run(float *out_data, GLenum format, ColorSpace color_space, GammaCurve gamma_curve); private: EffectChain chain; + GLuint fbo, texnum; unsigned width, height; };