Improved seeking in DTSC::File, also, now tested working.

This commit is contained in:
Thulinma 2012-08-31 16:52:57 +02:00
parent 8c8bf628b9
commit 4a940f7514
2 changed files with 77 additions and 25 deletions

View file

@ -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;