You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
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:
@@ -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() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user