X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.h;h=91b8e29f2c5fe12b5405e9778a3a3c948fab1d01;hp=50d57ec35f108ca27a1e0bd70cb60dc7dccfb3f1;hb=5aae6761385e1d64cb21b8c902f6b47b4f22690a;hpb=bd24998a9ebd1e2d296fd6cb419db51e2c6a84fb diff --git a/effect_chain.h b/effect_chain.h index 50d57ec..91b8e29 100644 --- a/effect_chain.h +++ b/effect_chain.h @@ -63,10 +63,11 @@ private: struct Phase { GLint glsl_program_num; bool input_needs_mipmaps; - std::vector inputs; + std::vector inputs; // Only from other phases; input textures are not counted here. std::vector effects; // In order. }; + void set_use_srgb_texture_format(Effect *effect); Effect *normalize_to_linear_gamma(Effect *input); Effect *normalize_to_srgb(Effect *input); @@ -77,11 +78,12 @@ private: // Create all GLSL programs needed to compute the given effect, and all outputs // that depends on it (whenever possible). - void construct_glsl_programs(Effect *start, std::set *completed_effects); + void construct_glsl_programs(Effect *output); unsigned width, height; - ImageFormat input_format, output_format; + ImageFormat output_format; std::vector effects; + std::vector inputs; // Also contained in effects. std::map effect_ids; std::map effect_output_textures; std::map > outgoing_links;