2
class for managing byte positions and associated time positions
3
Copyright (C) 1999 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
19
#include "syncClock.h"
29
int videoFrameCounter;
39
class SyncClock* syncClock;
46
void set(long sec,long usec);
48
void addOffset(TimeStamp* stamp);
49
void addOffset(int sec,long usec);
50
void copyTo(TimeStamp* dest);
54
void setKey(long key,int keylen);
57
void setPTSFlag(int lPTSFlag);
60
double getPTSTimeStamp();
61
void setPTSTimeStamp(double ptsTimeStamp);
63
double getDTSTimeStamp();
64
void setDTSTimeStamp(double dtsTimeStamp);
66
double getSCRTimeStamp();
67
void setSCRTimeStamp(double scrTimeStamp);
69
int getVideoFrameCounter();
70
void setVideoFrameCounter(int nr);
72
SyncClock* getSyncClock();
73
void setSyncClock(class SyncClock* syncClock);
76
void print(const char* name);
77
void minus(TimeStamp* stamp,TimeStamp* dest);
78
void minus(int sec,long usec);
79
int lessThan(TimeStamp* stamp);
80
int lessThan(int sec,long usec);
81
double getAsSeconds();
90
void setTime(timeval_t* newTime);