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