X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.h;h=ddabad959bb292b7798af46e69c6869ccca1c1c5;hp=4b277b38d8d8eab6b221dd651a52d2889564cec7;hb=ad66f9714e4a36008c341355700272a52484a785;hpb=fc55857d9ccf1edcc141fa0853a8bf2d6b40b4dc diff --git a/effect_chain.h b/effect_chain.h index 4b277b3..ddabad9 100644 --- a/effect_chain.h +++ b/effect_chain.h @@ -1,15 +1,18 @@ #ifndef _EFFECT_CHAIN_H #define _EFFECT_CHAIN_H 1 +#include +#include +#include #include +#include #include -#include "effect.h" #include "image_format.h" -#include "input.h" -class EffectChain; -class Phase; +class Effect; +class Input; +struct Phase; // For internal use within Node. enum AlphaType { @@ -22,8 +25,8 @@ enum AlphaType { // Whether you want pre- or postmultiplied alpha in the output // (see effect.h for a discussion of pre- versus postmultiplied alpha). enum OutputAlphaFormat { - OUTPUT_ALPHA_PREMULTIPLIED, - OUTPUT_ALPHA_POSTMULTIPLIED, + OUTPUT_ALPHA_FORMAT_PREMULTIPLIED, + OUTPUT_ALPHA_FORMAT_POSTMULTIPLIED, }; // A node in the graph; basically an effect and some associated information. @@ -72,7 +75,7 @@ struct Phase { std::vector inputs; std::vector effects; // In order. - unsigned output_width, output_height; + unsigned output_width, output_height, virtual_output_width, virtual_output_height; }; class EffectChain {