summaryrefslogtreecommitdiff
path: root/str-player.cpp
diff options
context:
space:
mode:
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);