1 #ifndef _jmd__hpp__included__
2 #define _jmd__hpp__included__
14 jmd_dumper(const std::string
& filename
, unsigned level
);
16 void video(uint64_t ts
, uint32_t* memory
, uint32_t width
, uint32_t height
);
17 void audio(uint64_t ts
, short l
, short r
);
18 void gameinfo(const std::string
& gamename
, const std::string
& authors
, uint64_t gametime
, uint64_t rerecords
);
19 void end(uint64_t ts
);
24 std::vector
<char> data
;
33 std::deque
<frame_buffer
> frames
;
34 std::deque
<sample_buffer
> samples
;
36 std::vector
<char> compress_frame(uint32_t* memory
, uint32_t width
, uint32_t height
);
37 void flush_buffers(bool force
);
38 void flush_frame(frame_buffer
& f
);
39 void flush_sample(sample_buffer
& s
);
42 uint64_t last_written_ts
;