From 17cf6c746fdc186e86de4e1f5e945316ab8a0853 Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 18 Jun 2002 16:28:26 +0000 Subject: STR still... --- str-util.cpp | 25 +++++++++++++------------ 1 file 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"); } -- cgit v1.2.3