lsnes rr1-β13
[lsnes.git] / avi / sdmp.hpp
blob85907efeb87a03bee854d1fabf8b44fa322d3d9f
1 #ifndef _sdmp__hpp__included__
2 #define _sdmp__hpp__included__
4 #include <string>
5 #include <fstream>
6 #include <cstdint>
8 #define SDUMP_FLAG_HIRES 1
9 #define SDUMP_FLAG_INTERLACED 2
10 #define SDUMP_FLAG_OVERSCAN 4
11 #define SDUMP_FLAG_PAL 8
13 class sdump_dumper
15 public:
16 sdump_dumper(const std::string& prefix, bool ssflag);
17 ~sdump_dumper() throw();
18 void frame(const uint32_t* rawdata, unsigned flags);
19 void sample(short l, short r);
20 void end();
21 private:
22 std::string oprefix;
23 bool sdump_ss;
24 uint64_t ssize;
25 uint64_t next_seq;
26 bool sdump_iopen;
27 std::ofstream out;
30 #endif