summaryrefslogtreecommitdiff
path: root/memory.h
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-12-16 20:16:43 -0500
committerFox Caminiti <fox@foxcam.net>2022-12-16 20:16:43 -0500
commitbedd6906eabdd513042d6a178d4dc56a3a41d1d3 (patch)
tree2bcbd3e46ae61e583707a2ccc5b3f5cfeacb61a8 /memory.h
parentcdb9e1f7240cb0716b7d99df5e1fd7c3fc3407a8 (diff)
v3, file/build organization
Diffstat (limited to 'memory.h')
-rw-r--r--memory.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/memory.h b/memory.h
deleted file mode 100644
index f4460ed..0000000
--- a/memory.h
+++ /dev/null
@@ -1,69 +0,0 @@
-enum memory_table_list {
-
- P_AVInfo,
- P_UndoBuffer,
- P_MiscCache,
-
- F_File,
- F_Precomps,
- F_Layers,
- F_Sources,
- F_Properties,
- F_Bezier,
- F_Effects,
- F_Strings,
- F_PrincipalBitmaps,
-
- B_Thumbnails,
- B_ScratchSpace,
- B_CachedBitmaps,
-};
-
-struct memory_table {
- char *Name;
- void *Address;
- uint64 Size;
- uint32 Block_ElementSize;
-};
-
-struct global_memory {
- void *Address;
- uint64 CurrentPosition;
- uint64 Size;
-};
-
-enum history_action_type {
- action_type_swap,
- action_type_swap_bitmap,
- action_type_shift
-};
-
-struct history_action {
- memory_table_list TableName;
- history_action_type Type;
- uint64 Size;
- uint64 ByteOffset;
- uint64 ShiftAmount; // Only for type_shift
- int16 Direction; // Only for type_shift
-};
-
-struct history_entry {
- char *Name;
- uint16 NumberOfActions;
-};
-
-struct history_entry_list {
- history_entry Entry[256];
- history_action Action[1024];
- uint16 NumberOfEntries;
- uint16 EntryPlayhead;
-};
-
-struct memory {
- memory_table Slot[16];
- history_entry_list History;
- uint64 ScratchPos;
- uint32 EntryCount;
- bool32 IsFileSaved;
-};
-