From 4854647d659f75ac6cf4575b61d1dcfd25865791 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Sun, 18 Dec 2022 20:00:47 -0500 Subject: lazy --- src/include/ffmpeg_backend.h | 2 +- src/include/main.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/ffmpeg_backend.h b/src/include/ffmpeg_backend.h index 717a33d..0c778f7 100644 --- a/src/include/ffmpeg_backend.h +++ b/src/include/ffmpeg_backend.h @@ -29,7 +29,7 @@ struct av_info { AVPacket *Packet; AVFrame *Frame; - uint32 FrameCount; + real32 SecondCount; uint64 PTSDuration; // likely not always 100% accurate SwsContext *RGBContext; diff --git a/src/include/main.h b/src/include/main.h index 3c7ff83..af92e31 100644 --- a/src/include/main.h +++ b/src/include/main.h @@ -157,12 +157,14 @@ struct sorted_comp_array { uint32 LayerCount; uint32 CurrentSortIndex; // Used intermediately in the sorting algorithm + real32 DisplaySize; }; struct sorted_layer_array { uint16 Block_Layer_Index; real32 SortedOffset; + real32 DisplayOffset; uint16 Sorted_Effect_Index[MAX_EFFECTS]; uint16 SortedPropertyStart; uint16 SortedKeyframeStart; @@ -384,6 +386,12 @@ struct project_state real32 Interact_Offset[12]; void *Interact_Address; + // NOTE(fox): We need to keep track of when the user changes the CurrentValue of a + // channel that has keyframes on it (i.e. CurrentValue will now evaluate to + // its previous value unless the user adds a new keyframe to the channel) + // so we can purge the cache if the user changes to a different frame. + int UncommitedKeyframe; + int32 Initializing = 3; int32 MsgTime; // currently in "frames" -- cgit v1.2.3