Implement decent seeking in DTSC::File.
This commit is contained in:
parent
c6407b3aa1
commit
b8a2993c73
2 changed files with 44 additions and 7 deletions
|
@ -70,8 +70,11 @@ namespace DTSC{
|
|||
std::string & getHeader();
|
||||
bool writeHeader(std::string & header, bool force = false);
|
||||
std::string & getPacket();
|
||||
bool seek_frame(int frameno);
|
||||
private:
|
||||
std::string strbuffer;
|
||||
std::map<int, long> frames;
|
||||
int currframe;
|
||||
FILE * F;
|
||||
unsigned long headerSize;
|
||||
char buffer[4];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue