X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.h;h=4b277b38d8d8eab6b221dd651a52d2889564cec7;hp=f0138a99d48bd5a6783f6357229f37fa3d5b03d7;hb=fc55857d9ccf1edcc141fa0853a8bf2d6b40b4dc;hpb=e2962f03fe8fb0b1c47be56eca26761da97453a0 diff --git a/effect_chain.h b/effect_chain.h index f0138a9..4b277b3 100644 --- a/effect_chain.h +++ b/effect_chain.h @@ -148,9 +148,10 @@ public: void insert_node_between(Node *sender, Node *middle, Node *receiver); private: - // Fits a rectangle of the given size to the current aspect ratio - // (aspect_nom/aspect_denom) and returns the new width and height. - unsigned fit_rectangle_to_aspect(unsigned width, unsigned height); + // Make sure the output rectangle is at least large enough to hold + // the given input rectangle in both dimensions, and is of the + // current aspect ratio (aspect_nom/aspect_denom). + void size_rectangle_to_fit(unsigned width, unsigned height, unsigned *output_width, unsigned *output_height); // Compute the input sizes for all inputs for all effects in a given phase, // and inform the effects about the results.