Improved seeking in DTSC::File, also, now tested working.
This commit is contained in:
parent
8c8bf628b9
commit
4a940f7514
2 changed files with 77 additions and 25 deletions
|
@ -69,11 +69,17 @@ namespace DTSC{
|
|||
~File();
|
||||
std::string & getHeader();
|
||||
bool writeHeader(std::string & header, bool force = false);
|
||||
void seekNext();
|
||||
std::string & getPacket();
|
||||
JSON::Value & getJSON();
|
||||
bool seek_frame(int frameno);
|
||||
private:
|
||||
bool seek_time(int seconds);
|
||||
private:
|
||||
std::string strbuffer;
|
||||
JSON::Value jsonbuffer;
|
||||
std::map<int, long> frames;
|
||||
std::map<int, long> msframes;
|
||||
long long int currtime;
|
||||
int currframe;
|
||||
FILE * F;
|
||||
unsigned long headerSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue