diff options
| author | Alex Marshall <SquidMan72@gmail.com> | 2009-03-18 12:32:44 -0700 |
|---|---|---|
| committer | Alex Marshall <SquidMan72@gmail.com> | 2009-03-18 12:32:44 -0700 |
| commit | f8211a90f74d874f144a38a96e10923e546ed270 (patch) | |
| tree | 7f651414fb73a918cc63cdded096f7d0f238fa45 /brlyt.h | |
| parent | 82afee74aba00c54ab59356ab715cbe4206fb14c (diff) | |
| parent | f1551e38d3ecd62b6f09e650eccbe7f6e7518f9e (diff) | |
Merge git@github.com:SquidMan/benzin
Diffstat (limited to '')
| -rw-r--r-- | brlyt.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -19,7 +19,7 @@ typedef struct u32 unk1; // 0xFEFF0008 u32 filesize; // The filesize of the brlyt. u16 lyt_offset; // Offset to the lyt1 section. - u16 unk2; // Unknown. + u16 unk2; // Number of sections. } brlyt_header; typedef struct @@ -81,7 +81,8 @@ typedef struct typedef struct { - int a; + char a; + char pad[3]; float width; float height; } brlyt_lytheader_chunk; @@ -146,6 +147,9 @@ typedef struct u8 unk[16]; } brlyt_10b_chunk; +void swapBytes(unsigned char* char1, unsigned char* char2); +int bitExtraction(unsigned int num, unsigned int start, unsigned int end); + void parse_brlyt(char *filename); void make_brlyt(char* infile, char* outfile); |
