You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Large refactor of Timeline, TimelineBase, ClipBase, and Clip, to allow a Clip access to the parent timeline instance (if available), and thus, certain properties (preview size, timeline FPS, etc...). This allows for a simpler rendering of Clip keyframes (during the Clip::GetFrame method), and a simpler Timeline class, that can change the preview window size dynamically and no longer requires a Singleton Settings class.
- Also removed "crop" from Clip class, as it was never implmeneted correctly, and we have a fully functional "crop" effect when needed - Added caching to Clip class, to optimize previewing of cached frames (much faster than previous)
This commit is contained in:
committed by
FeRD (Frank Dana)
parent
6da4e8fded
commit
8387b124ad
@@ -159,10 +159,6 @@ void ChunkWriter::WriteFrame(std::shared_ptr<Frame> frame)
|
||||
// Write the frames once it reaches the correct chunk size
|
||||
if (frame_count % chunk_size == 0 && frame_count >= chunk_size)
|
||||
{
|
||||
std::cout << "Done with chunk" << std::endl;
|
||||
std::cout << "frame_count: " << frame_count << std::endl;
|
||||
std::cout << "chunk_size: " << chunk_size << std::endl;
|
||||
|
||||
// Pad an additional 12 frames
|
||||
for (int z = 0; z<12; z++)
|
||||
{
|
||||
@@ -231,10 +227,6 @@ void ChunkWriter::Close()
|
||||
// Write the frames once it reaches the correct chunk size
|
||||
if (is_writing)
|
||||
{
|
||||
std::cout << "Final chunk" << std::endl;
|
||||
std::cout << "frame_count: " << frame_count << std::endl;
|
||||
std::cout << "chunk_size: " << chunk_size << std::endl;
|
||||
|
||||
// Pad an additional 12 frames
|
||||
for (int z = 0; z<12; z++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user