diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-12-18 20:00:47 -0500 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-12-18 20:00:47 -0500 |
commit | 4854647d659f75ac6cf4575b61d1dcfd25865791 (patch) | |
tree | 3296bdfa30fa76688844755b37094753ea82d033 /src/include | |
parent | bedd6906eabdd513042d6a178d4dc56a3a41d1d3 (diff) |
lazy
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ffmpeg_backend.h | 2 | ||||
-rw-r--r-- | src/include/main.h | 8 |
2 files changed, 9 insertions, 1 deletions
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" |