Upgraded DTSC Lib to do seeking through selected tracks rather than a list of keyframes.

This commit is contained in:
Erik Zandvliet 2013-05-13 09:25:49 +02:00
parent 23813cc9b2
commit c9f37c57b5
2 changed files with 35 additions and 62 deletions

View file

@ -88,14 +88,15 @@ namespace DTSC {
bool seek_bpos(int bpos);
void writePacket(std::string & newPacket);
void writePacket(JSON::Value & newPacket);
void selectTracks(std::vector<std::string> & trackIDs);
private:
void readHeader(int pos);
std::string strbuffer;
JSON::Value jsonbuffer;
JSON::Value metadata;
JSON::Value firstmetadata;
std::map<int, long> frames;
std::map<int, long> msframes;
//std::map<int, long> frames;
//std::map<int, long> msframes;
long long int currtime;
long long int lastreadpos;
int currframe;
@ -103,6 +104,7 @@ namespace DTSC {
unsigned long headerSize;
char buffer[4];
bool created;
std::vector<std::string> selectedTracks;
};
//FileWriter