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.
This commit is contained in:
Jonathan Thomas
2012-10-12 00:54:53 -05:00
parent 217c54a5ae
commit a601bcef2d
12 changed files with 109 additions and 82 deletions

View File

@@ -161,8 +161,6 @@ Frame* Clip::GetFrame(int requested_frame) throw(ReaderClosed)
// Get time mapped frame number (used to increase speed, change direction, etc...)
frame_number = adjust_frame_number_minimum(get_time_mapped_frame(frame_number));
cout << "Requested frame: " << frame_number << endl;
// Now that we have re-mapped what frame number is needed, go and get the frame pointer
Frame *frame = file_reader->GetFrame(frame_number);