You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
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:
@@ -169,27 +169,6 @@ void Cache::Display()
|
||||
}
|
||||
}
|
||||
|
||||
// Display the list of cache and clear the cache (mainly for debugging reasons)
|
||||
void Cache::DisplayAndClear()
|
||||
{
|
||||
cout << "----- Cache List (" << frames.size() << ") ------" << endl;
|
||||
int i = 1;
|
||||
while(!frame_numbers.empty())
|
||||
{
|
||||
// Print the frame number
|
||||
int frame_number = frame_numbers.back();
|
||||
cout << " " << i << ") --- Frame " << frame_number << endl;
|
||||
|
||||
// Remove this frame
|
||||
Remove(frame_number);
|
||||
|
||||
// increment counter
|
||||
i++;
|
||||
}
|
||||
|
||||
// Reset total bytes
|
||||
total_bytes = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user