X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.h;h=3fa62ee3e074c3402843d46f0124ed3599e87ed0;hp=045c9aa7832f7885570eccd69d7670ce39d92e28;hb=91c70600f2d0a6a42420ee98949cf182859b798f;hpb=f6c44598c9dad9ddd024c5f8f010d179a6d971fd diff --git a/effect_chain.h b/effect_chain.h index 045c9aa..3fa62ee 100644 --- a/effect_chain.h +++ b/effect_chain.h @@ -6,7 +6,7 @@ #include "effect.h" #include "effect_id.h" -enum PixelFormat { FORMAT_RGB, FORMAT_RGBA }; +enum PixelFormat { FORMAT_RGB, FORMAT_RGBA, FORMAT_BGR, FORMAT_BGRA }; enum ColorSpace { COLORSPACE_sRGB = 0, @@ -53,7 +53,10 @@ private: ImageFormat input_format, output_format; std::vector effects; - int glsl_program_num; + bool use_srgb_texture_format; + + GLint glsl_program_num; + GLenum format, bytes_per_pixel; bool finalized; // Used during the building of the effect chain.