2,599
edits
Efernandez (talk | contribs) No edit summary |
Efernandez (talk | contribs) |
||
Line 40: | Line 40: | ||
=== Resolution === | === Resolution === | ||
Resolution is a structure that consists of two parameters: width and height. | Resolution is a structure that consists of two parameters: width and height. Here we define the input resolution as 1080x720. | ||
<syntaxhighlight lang=cpp> | <syntaxhighlight lang=cpp> | ||
#define | #define INPUT_WIDTH 1080 | ||
#define | #define INPUT_HEIGHT 720 | ||
rd::Resolution input_resolution = rd::Resolution(INPUT_WIDTH, INPUT_HEIGHT); | rd::Resolution input_resolution = rd::Resolution(INPUT_WIDTH, INPUT_HEIGHT); | ||
</syntaxhighlight> | </syntaxhighlight> | ||