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

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

#include <dtsc.h>

Public Member Functions

char * getData ()
 Returns thte data of this fragment structure. More...
 
char * getData ()
 
unsigned long getDuration ()
 Returns the duration of this fragment. More...
 
unsigned long getDuration ()
 
char getLength ()
 Returns the length of this fragment. More...
 
char getLength ()
 
unsigned long getNumber ()
 Returns the number of the first keyframe in this fragment. More...
 
unsigned long getNumber ()
 
unsigned long getSize ()
 
unsigned long getSize ()
 Returns the size of a fragment. More...
 
void setDuration (unsigned long newDuration)
 Sets the duration of this fragment. More...
 
void setDuration (unsigned long newDuration)
 
void setLength (char newLength)
 Sets the length of this fragment. More...
 
void setLength (char newLength)
 
void setNumber (unsigned long newNumber)
 
void setNumber (unsigned long newNumber)
 Sets the number of the first keyframe in this fragment. More...
 
void setSize (unsigned long newSize)
 
void setSize (unsigned long newSize)
 Sets the size of a fragement. More...
 
void toPrettyString (std::ostream &str, int indent=0)
 
void toPrettyString (std::ostream &str, int indent=0)
 Converts a fragment to a human readable string. More...
 

Private Attributes

char data [PACKED_FRAGMENT_SIZE]
 Data storage for this Fragment. More...
 

Detailed Description

Basic class for storage of data associated with fragments.

Member Function Documentation

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
strThe stringstream to append to
indentthe amount of indentation needed

Field Documentation

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: