enum { subpicture_buf_size = 2019 + 25*2024 }; class SubpictureBuf { unsigned char buf[subpicture_buf_size]; int pos; int last_dcsqt; public: SubpictureBuf(); const unsigned char* GetPtr(); int GetSize() { return pos+1; } // clobbers screen buffer void SubpictureOn(int on_time, unsigned char* screen, int left, int right, int top, int bottom, bool ntsc); void SubpictureOff(int off_time, bool ntsc); };