summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <Pixel>2002-06-18 16:28:26 +0000
committerPixel <Pixel>2002-06-18 16:28:26 +0000
commit17cf6c746fdc186e86de4e1f5e945316ab8a0853 (patch)
treecee2e33d0e8acea0daff4ac427d38cba3825d3dc
parente22f9ba56569a703812c2ac2eb88112872efc0a0 (diff)
STR still...
-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");
}