Added experimental AddEffect method to the frame object, to apply image effects

This commit is contained in:
Jonathan Thomas
2012-08-11 21:13:05 -05:00
parent 1bbfa060cf
commit be802dafb0
3 changed files with 30 additions and 12 deletions

View File

@@ -62,10 +62,13 @@ int main()
// Output stream info
w.OutputStreamInfo();
for (int frame = 1; frame <= 500; frame++)
for (int frame = 300; frame <= 450; frame++)
{
Frame f = r.GetFrame(frame);
// Apply effect
f.AddEffect("oilPaint");
// Write frame
cout << "Write frame " << f.number << endl;
w.WriteFrame(&f);