Basic class for storage of data associated with fragments.
More...
#include <dtsc.h>
Basic class for storage of data associated with fragments.
char * DTSC::Fragment::getData |
( |
| ) |
|
Returns thte data of this fragment structure.
char* DTSC::Fragment::getData |
( |
| ) |
|
unsigned long DTSC::Fragment::getDuration |
( |
| ) |
|
Returns the duration of this fragment.
unsigned long DTSC::Fragment::getDuration |
( |
| ) |
|
char DTSC::Fragment::getLength |
( |
| ) |
|
Returns the length of this fragment.
char DTSC::Fragment::getLength |
( |
| ) |
|
unsigned long DTSC::Fragment::getNumber |
( |
| ) |
|
Returns the number of the first keyframe in this fragment.
unsigned long DTSC::Fragment::getNumber |
( |
| ) |
|
unsigned long DTSC::Fragment::getSize |
( |
| ) |
|
unsigned long DTSC::Fragment::getSize |
( |
| ) |
|
Returns the size of a fragment.
void DTSC::Fragment::setDuration |
( |
unsigned long |
newDuration | ) |
|
Sets the duration of this fragment.
void DTSC::Fragment::setDuration |
( |
unsigned long |
newDuration | ) |
|
void DTSC::Fragment::setLength |
( |
char |
newLength | ) |
|
Sets the length of this fragment.
void DTSC::Fragment::setLength |
( |
char |
newLength | ) |
|
void DTSC::Fragment::setNumber |
( |
unsigned long |
newNumber | ) |
|
void DTSC::Fragment::setNumber |
( |
unsigned long |
newNumber | ) |
|
Sets the number of the first keyframe in this fragment.
void DTSC::Fragment::setSize |
( |
unsigned long |
newSize | ) |
|
void DTSC::Fragment::setSize |
( |
unsigned long |
newSize | ) |
|
Sets the size of a fragement.
void DTSC::Fragment::toPrettyString |
( |
std::ostream & |
str, |
|
|
int |
indent = 0 |
|
) |
| |
void DTSC::Fragment::toPrettyString |
( |
std::ostream & |
str, |
|
|
int |
indent = 0 |
|
) |
| |
Converts a fragment to a human readable string.
- Parameters
-
str | The stringstream to append to |
indent | the amount of indentation needed |
char DTSC::Fragment::data |
|
private |
Data storage for this Fragment.
- 4 bytes: duration (in milliseconds)
- 1 byte: length (amount of keyframes)
- 2 bytes: number of first keyframe in fragment
- 4 bytes: size of fragment in bytes
The documentation for this class was generated from the following files: