summaryrefslogtreecommitdiff
path: root/str-util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'str-util.cpp')
-rw-r--r--str-util.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/str-util.cpp b/str-util.cpp
index f0dd3f7..c944508 100644
--- a/str-util.cpp
+++ b/str-util.cpp
@@ -37,6 +37,8 @@ struct STR_Header {
Uint16 Channels;
} __attribute__((packed));
+
+
void process_one_sector(FILE * f) {
Byte sector[2336];
STR_Header * h;
@@ -51,23 +53,22 @@ void process_one_sector(FILE * f) {
if (sector[2] == 0x48) {
printm(M_BARE, "Video sector\n");
+ printm(M_BARE, "Status : %04x\n", h->StSTATUS);
+ printm(M_BARE, "Type : %04x\n", h->StTYPE);
+ printm(M_BARE, "Sector Offset: %i\n", h->StSECTOR_OFFSET);
+ printm(M_BARE, "Sector Size : %i\n", h->StSECTOR_SIZE);
+ printm(M_BARE, "Frame Number : %i\n", h->StFRAME_NO);
+ printm(M_BARE, "Frame Size : %i\n", h->StFRAME_SIZE);
+ printm(M_BARE, "Movie Width : %i\n", h->StMOVIE_WIDTH);
+ printm(M_BARE, "Movie Height : %i\n", h->StMOVIE_HEIGHT);
+ printm(M_BARE, "Movie HeadM : %08x\n", h->StMOVIE_HEADM);
+ printm(M_BARE, "Movie HeadV : %08x\n", h->StMOVIE_HEADV);
+ printm(M_BARE, "Channels : %04x\n", h->Channels);
} else if (sector[2] == 0x64) {
printm(M_BARE, "Audio sector\n");
} else {
printm(M_BARE, "Unknow sector\n");
}
-
- printm(M_BARE, "Status : %04x\n", h->StSTATUS);
- printm(M_BARE, "Type : %04x\n", h->StTYPE);
- printm(M_BARE, "Sector Offset: %i\n", h->StSECTOR_OFFSET);
- printm(M_BARE, "Sector Size : %i\n", h->StSECTOR_SIZE);
- printm(M_BARE, "Frame Number : %i\n", h->StFRAME_NO);
- printm(M_BARE, "Frame Size : %i\n", h->StFRAME_SIZE);
- printm(M_BARE, "Movie Width : %i\n", h->StMOVIE_WIDTH);
- printm(M_BARE, "Movie Height : %i\n", h->StMOVIE_HEIGHT);
- printm(M_BARE, "Movie HeadM : %08x\n", h->StMOVIE_HEADM);
- printm(M_BARE, "Movie HeadV : %08x\n", h->StMOVIE_HEADV);
- printm(M_BARE, "Channels : %04x\n", h->Channels);
printm(M_BARE, "---------------------------------\n\n");
}