equal
deleted
inserted
replaced
21 |
21 |
22 #include "recorder.h" |
22 #include "recorder.h" |
23 #include "gameuiconfig.h" |
23 #include "gameuiconfig.h" |
24 #include "hwconsts.h" |
24 #include "hwconsts.h" |
25 #include "game.h" |
25 #include "game.h" |
26 #include "libav_iteraction.h" |
26 #include "LibavInteraction.h" |
27 |
27 |
28 // Encoding is memory expensive process, so we need to limit maximum number |
28 // Encoding is memory expensive process, so we need to limit maximum number |
29 // of simultaneous encoders. |
29 // of simultaneous encoders. |
30 static const int maxRecorders = 3; |
30 static const int maxRecorders = 3; |
31 static int numRecorders = 0; |
31 static int numRecorders = 0; |
36 TCPBase(false) |
36 TCPBase(false) |
37 { |
37 { |
38 this->config = config; |
38 this->config = config; |
39 this->prefix = prefix; |
39 this->prefix = prefix; |
40 finished = false; |
40 finished = false; |
41 name = prefix + "." + LibavIteraction::instance().getExtension(config->AVFormat()); |
41 name = prefix + "." + LibavInteraction::instance().getExtension(config->AVFormat()); |
42 } |
42 } |
43 |
43 |
44 HWRecorder::~HWRecorder() |
44 HWRecorder::~HWRecorder() |
45 { |
45 { |
46 emit encodingFinished(finished); |
46 emit encodingFinished(finished); |