Upgraded DTSC Lib to do seeking through selected tracks rather than a list of keyframes.
This commit is contained in:
parent
23813cc9b2
commit
c9f37c57b5
2 changed files with 35 additions and 62 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue