summaryrefslogtreecommitdiff
path: root/str-player.cpp
diff options
context:
space:
mode:
authorpixel <pixel>2004-02-29 17:44:42 +0000
committerpixel <pixel>2004-02-29 17:44:42 +0000
commitbbfc93a5b990d1009777de1fbd3efd51508f18ce (patch)
treed1b9a9256427447e707109b3e03d75c641e78177 /str-player.cpp
parent852c11ab9698566e3a718b53b7a0527f14707504 (diff)
First crude try of implementing BS encoding
Diffstat (limited to 'str-player.cpp')
-rw-r--r--str-player.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/str-player.cpp b/str-player.cpp
index fa5f17a..99ddd15 100644
--- a/str-player.cpp
+++ b/str-player.cpp
@@ -137,6 +137,13 @@ int process_one_sector(Handle * f) {
printm(M_BARE, "Width: %i, Height: %i - bpp: %i\n", width, height, bpp);
#endif
memset(video + h->StFRAME_SIZE, 0, h->StSECTOR_SIZE * 2016 - h->StFRAME_SIZE);
+#ifdef DUMPING
+ String fn;
+ fn.set("frame-%04i.bs", h->StFRAME_NO);
+ Output * tf = new Output(fn);
+ tf->write(video, h->StFRAME_SIZE);
+ delete tf;
+#endif
bs_decode_rgb24(buffer, (bs_header_t *) video, width, height, 0);
// fwrite(screen->pixels, 3, width * height, stdout);