From bbfc93a5b990d1009777de1fbd3efd51508f18ce Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 29 Feb 2004 17:44:42 +0000 Subject: First crude try of implementing BS encoding --- str-player.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'str-player.cpp') 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); -- cgit v1.2.3