Adding Hue video effect, to adjust the hue of a frame's image, which can also be animated with a keyframe

This commit is contained in:
Jonathan Thomas
2018-02-06 02:26:35 -06:00
parent 4a9f2a0a00
commit c81d42629d
15 changed files with 290 additions and 48 deletions

View File

@@ -58,6 +58,18 @@ void EffectBase::DisplayInfo() {
cout << "----------------------------" << endl;
}
// Constrain a color value from 0 to 255
int EffectBase::constrain(int color_value)
{
// Constrain new color from 0 to 255
if (color_value < 0)
color_value = 0;
else if (color_value > 255)
color_value = 255;
return color_value;
}
// Generate JSON string of this object
string EffectBase::Json() {