From 34bc216ef9b17e6464910fc678119a4c3670356d Mon Sep 17 00:00:00 2001 From: Michele Fochi aka motoschifo Date: Sun, 7 Feb 2016 11:05:55 +0100 Subject: VideoSnaps patch http://adb.arcadeitalia.net/videosnaps.php --- src/emu/video.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/emu/video.h') diff --git a/src/emu/video.h b/src/emu/video.h index aef70a57f15..2403fe295f6 100644 --- a/src/emu/video.h +++ b/src/emu/video.h @@ -92,6 +92,17 @@ public: void begin_recording(const char *name, movie_format format); void end_recording(movie_format format); void add_sound_to_recording(const INT16 *sound, int numsamples); + + void set_timecode_enabled(bool value) { m_timecode_enabled = value; } + bool get_timecode_enabled() { return m_timecode_enabled; } + bool get_timecode_write() { return m_timecode_write; } + void set_timecode_write(bool value) { m_timecode_write = value; } + void set_timecode_text(std::string &str) { m_timecode_text = str; } + void set_timecode_start(attotime time) { m_timecode_start = time; } + void add_to_total_time(attotime time) { m_timecode_total += time; } + std::string &timecode_text(std::string &str); + std::string &timecode_total_text(std::string &str); + private: // internal helpers @@ -184,6 +195,13 @@ private: static const attoseconds_t ATTOSECONDS_PER_SPEED_UPDATE = ATTOSECONDS_PER_SECOND / 4; static const int PAUSED_REFRESH_RATE = 30; + + bool m_timecode_enabled; // inp.timecode record enabled + bool m_timecode_write; // Show/hide timer at right (partial time) + std::string m_timecode_text; // Message for that video part (intro, gameplay, extra) + attotime m_timecode_start; // Starting timer for that video part (intro, gameplay, extra) + attotime m_timecode_total; // Show/hide timer at left (total elapsed on resulting video preview) + }; #endif /* __VIDEO_H__ */ -- cgit v1.2.3-70-g09d2