Speeding up DTSC Reading without header
This commit is contained in:
parent
149fe75b1c
commit
d6b503b267
2 changed files with 4 additions and 18 deletions
|
@ -39,17 +39,9 @@ namespace Analysers {
|
|||
long long unsigned int bfrm_max = 0;
|
||||
long long unsigned int bps = 0;
|
||||
|
||||
std::set<int> selector;
|
||||
for (JSON::ObjIter trackIt = meta["tracks"].ObjBegin(); trackIt != meta["tracks"].ObjEnd(); trackIt++){
|
||||
selector.insert(trackIt->second["trackid"].asInt());
|
||||
}
|
||||
F.selectTracks(selector);
|
||||
|
||||
F.getMeta().null();
|
||||
|
||||
F.seek_time(0);
|
||||
|
||||
F.seekNext();
|
||||
F.parseNext();
|
||||
while (F.getJSON()){
|
||||
nowpack = F.getJSON()["time"].asInt();
|
||||
std::cout << F.getJSON().toPrettyString() << std::endl;
|
||||
|
@ -104,7 +96,7 @@ namespace Analysers {
|
|||
totalvideo += F.getJSON()["data"].asString().size();
|
||||
lastvideo = nowpack;
|
||||
}
|
||||
F.seekNext();
|
||||
F.parseNext();
|
||||
}
|
||||
|
||||
std::cout << std::endl << "Summary:" << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue