-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Not super efficient, but functional at least.
- Loading branch information
1 parent
b7da875
commit 2f08cf6
Showing
6 changed files
with
143 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
|
||
namespace maxcso { | ||
|
||
static const char *DAX_MAGIC = "DAX\0"; | ||
static const uint32_t DAX_FRAME_SIZE = 0x2000; | ||
static const uint32_t DAX_FRAME_MASK = 0x1FFF; | ||
static const uint8_t DAX_FRAME_SHIFT = 13; | ||
|
||
// TODO: Endian-ify? | ||
struct DAXHeader { | ||
char magic[4]; | ||
uint32_t uncompressed_size; | ||
uint32_t version; | ||
uint32_t nc_areas; | ||
uint32_t unused[4]; | ||
}; | ||
|
||
struct DAXNCArea { | ||
uint32_t start; | ||
uint32_t count; | ||
}; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters