Made the Timeline class inherit from FileReaderBase, which means the Timeline is really just a fancy ready class now. Also, added new unit tests for the Clip and Timeline classes.

This commit is contained in:
Jonathan Thomas
2012-10-05 01:58:27 -05:00
parent d8fe0ddfb8
commit a417fef1fd
6 changed files with 146 additions and 14 deletions

View File

@@ -15,11 +15,13 @@ void FrameReady(int number)
int main()
{
// Create a clip
Clip c("/home/jonathan/Pictures/afriscot_megaman.png");
Clip c("/home/jonathan/Videos/big-buck-bunny_trailer.webm");
cout << "Position: " << c.Position() << endl;
cout << "Start: " << c.Start() << endl;
cout << "End: " << c.End() << endl;
return 0;
//openshot::ImageReader i("/home/jonathan/Apps/videcho_site/media/logos/watermark3.png");
//openshot::Frame* overlay = i.GetFrame(1);
//i.DisplayInfo();