Jonathan Thomas
b647ff77c8
Fixed a regression with audio files and seeking, added a few new methods, and more accurately detect the End() of clips.
2012-10-14 02:36:05 -05:00
Jonathan Thomas
a601bcef2d
Another huge refactor and lots of big fixes! Time mapping now works... mostly. The jumpy / glitchy images have been solved by copying the AVFrame into an AVPicture, which does not get clobbered on the next decode.
...
Also, added a new frame number overaly (in the top, left part of the image), and a new AddColor() method, to change the size and color of the frame's image...
Padded the end of the FFmpegWriter / WriteTrailer() method, to avoid having a codec ignore the last many frames.
2012-10-12 00:54:53 -05:00
Jonathan Thomas
cebf9728c8
Refactored seek method a bit in the FFmpegReader, to fix some bugs. Also, being changing the cache object again, on how it cleans up pointers. Some debug code is checked in also.
2012-10-10 17:27:46 -05:00
Jonathan Thomas
b7792b04d8
Added new method to adjust the min value of a valid frame number, added a new unlimited cache option, and fixed a bug which was preventing the timeline from calling GetFrame correctly. Now timelines, clips, and readers are working together nicely.
2012-10-10 15:21:33 -05:00
Jonathan Thomas
004e76adbb
Added an example, trying write a timeline to the FFmpegWriter. Not quite working yet though.
2012-10-10 02:49:34 -05:00
Jonathan Thomas
780a702f5d
Added a Rotate() method to a Frame object. Added new methods on a clip to translate frame numbers (FrameMapper and Time Curves). Now, the Timeline, Clip, and Readers are all working with animation curves. Pretty cool!
2012-10-10 02:36:53 -05:00
Jonathan Thomas
1d89fd140a
A big refactor of the Open() method on Readers, and the constructor of Readers. All resource consuming code has been moved into the Open() methods, so the Clips and Timeline can control them better.
2012-10-09 01:45:34 -05:00
Jonathan Thomas
87d12254ef
Added Open() to the reader base class, so all readers need to have that method now. This is to allow the timeline to better control Clips and Readers.
2012-10-08 16:22:18 -05:00
Jonathan Thomas
d8fe0ddfb8
Improved the logic to decide which reader to use. ImageReader sometimes hangs when passed "mp4" video files, so we now check for common movie extensions first.
2012-10-04 18:02:46 -05:00
Jonathan Thomas
93a356c171
Renamed some enumerations, and added in framerate mapping into the clip object.
2012-10-04 16:07:58 -05:00
Jonathan Thomas
4bd6db527e
Renamed some of the basic clip property getters and setters, and added some simpler ways to get the value of and add points to a key frame.
2012-10-04 15:07:29 -05:00
Jonathan Thomas
2266a4ab7a
Improved Clip class, and worked on constructors, file readers (image and ffmpeg), and more curves (shear, perspective, and crop)
2012-10-04 01:34:45 -05:00
Jonathan Thomas
e96bd5ba98
Added the initial timeline and clip classes, with some of the initial curves and constructors.
2012-10-03 01:55:24 -05:00