MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
Public Member Functions | Private Attributes
DTSC::Key Class Reference

Basic class for storage of data associated with keyframes. More...

#include <dtsc.h>

Public Member Functions

unsigned long long getBpos ()
 Returns the byteposition of a keyframe. More...
 
unsigned long long getBpos ()
 
char * getData ()
 Returns the data of this keyframe struct. More...
 
char * getData ()
 
unsigned long getLength ()
 
unsigned long getLength ()
 
unsigned long getNumber ()
 
unsigned long getNumber ()
 Returns the number of a keyframe. More...
 
unsigned short getParts ()
 
unsigned short getParts ()
 Returns the number of parts of a keyframe. More...
 
unsigned long long getTime ()
 Returns the timestamp of a keyframe. More...
 
unsigned long long getTime ()
 
void setBpos (unsigned long long newBpos)
 
void setBpos (unsigned long long newBpos)
 
void setLength (unsigned long newLength)
 
void setLength (unsigned long newLength)
 
void setNumber (unsigned long newNumber)
 
void setNumber (unsigned long newNumber)
 Sets the number of a keyframe. More...
 
void setParts (unsigned short newParts)
 
void setParts (unsigned short newParts)
 Sets the number of parts of a keyframe. More...
 
void setTime (unsigned long long newTime)
 Sets the timestamp of a keyframe. More...
 
void setTime (unsigned long long newTime)
 
void toPrettyString (std::ostream &str, int indent=0)
 Converts a keyframe to a human readable string. More...
 
void toPrettyString (std::ostream &str, int indent=0)
 

Private Attributes

char data [PACKED_KEY_SIZE]
 Data storage for this Key. More...
 

Detailed Description

Basic class for storage of data associated with keyframes.

When deleting this object, make sure to remove all DTSC::Part associated with it, if any. If you fail doing this, it will cause data corruption.

Member Function Documentation

unsigned long long DTSC::Key::getBpos ( )

Returns the byteposition of a keyframe.

unsigned long long DTSC::Key::getBpos ( )
char * DTSC::Key::getData ( )

Returns the data of this keyframe struct.

char* DTSC::Key::getData ( )
unsigned long DTSC::Key::getLength ( )
unsigned long DTSC::Key::getLength ( )
unsigned long DTSC::Key::getNumber ( )
unsigned long DTSC::Key::getNumber ( )

Returns the number of a keyframe.

unsigned short DTSC::Key::getParts ( )
unsigned short DTSC::Key::getParts ( )

Returns the number of parts of a keyframe.

unsigned long long DTSC::Key::getTime ( )

Returns the timestamp of a keyframe.

unsigned long long DTSC::Key::getTime ( )
void DTSC::Key::setBpos ( unsigned long long  newBpos)
void DTSC::Key::setBpos ( unsigned long long  newBpos)
void DTSC::Key::setLength ( unsigned long  newLength)
void DTSC::Key::setLength ( unsigned long  newLength)
void DTSC::Key::setNumber ( unsigned long  newNumber)
void DTSC::Key::setNumber ( unsigned long  newNumber)

Sets the number of a keyframe.

void DTSC::Key::setParts ( unsigned short  newParts)
void DTSC::Key::setParts ( unsigned short  newParts)

Sets the number of parts of a keyframe.

void DTSC::Key::setTime ( unsigned long long  newTime)

Sets the timestamp of a keyframe.

void DTSC::Key::setTime ( unsigned long long  newTime)
void DTSC::Key::toPrettyString ( std::ostream &  str,
int  indent = 0 
)

Converts a keyframe to a human readable string.

Parameters
strThe stringstream to append to
indentthe amount of indentation needed
void DTSC::Key::toPrettyString ( std::ostream &  str,
int  indent = 0 
)

Field Documentation

char DTSC::Key::data
private

Data storage for this Key.

  • 5 bytes: MSB storage of the position of the first packet of this keyframe within the file.
  • 3 bytes: MSB storage of the duration of this keyframe.
  • 2 bytes: MSB storage of the number of this keyframe.
  • 2 bytes: MSB storage of the amount of parts in this keyframe.
  • 4 bytes: MSB storage of the timestamp associated with this keyframe's first packet.

The documentation for this class was generated from the following files: