summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/video.h
diff options
context:
space:
mode:
author Michele Fochi aka motoschifo <michele.fochi@gmail.com>2016-02-07 11:05:55 +0100
committer Michele Fochi aka motoschifo <michele.fochi@gmail.com>2016-02-07 11:05:55 +0100
commit34bc216ef9b17e6464910fc678119a4c3670356d (patch)
tree2fe04a4eb85a2e7ef4cc33a23a9ebf52664bd616 /src/emu/video.h
parent44f98845f7bd276a8db6a413e08981c2a44b1d38 (diff)
VideoSnaps patch
http://adb.arcadeitalia.net/videosnaps.php
Diffstat (limited to 'src/emu/video.h')
-rw-r--r--src/emu/video.h18
1 files changed, 18 insertions, 0 deletions
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__ */