Added alpha to all FFmpegReader source images, which is needed by the timeline class. Also, added alpha to the AddColor() method. Now even the background of the timeline can be transparent, along with all layers... even the bottom layer.

This commit is contained in:
Jonathan Thomas
2012-12-04 02:21:01 -06:00
parent b75d8961b8
commit ad81fed72e
5 changed files with 13 additions and 9 deletions

View File

@@ -33,6 +33,10 @@ int main()
c1.gravity = GRAVITY_LEFT;
c1.scale = SCALE_CROP;
c1.Layer(0);
c1.End(16.0);
c1.alpha.AddPoint(1, 0.0);
c1.alpha.AddPoint(360, 0.0, LINEAR);
c1.alpha.AddPoint(384, 1.0);
// CLIP 2 (wave form)
c2.Position(0.0);
@@ -77,7 +81,7 @@ int main()
// Output stream info
w.OutputStreamInfo();
for (int frame = 1; frame <= 300; frame++)
for (int frame = 1; frame <= 600; frame++)
{
tr1::shared_ptr<Frame> f = t.GetFrame(frame);
if (f)