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

Basic class for storage of data associated with single DTSC packets, a.k.a. parts. More...

#include <dtsc.h>

Public Member Functions

char * getData ()
 Returns the data of a part. More...
 
char * getData ()
 
short getDuration ()
 
short getDuration ()
 Retruns the duration of a part. More...
 
long getOffset ()
 returns the offset of a part More...
 
long getOffset ()
 
long getSize ()
 
long getSize ()
 Returns the payloadsize of a part. More...
 
void setDuration (short newDuration)
 Sets the duration of a part. More...
 
void setDuration (short newDuration)
 
void setOffset (long newOffset)
 
void setOffset (long newOffset)
 Sets the offset of a part. More...
 
void setSize (long newSize)
 
void setSize (long newSize)
 Sets the payloadsize of a part. More...
 
void toPrettyString (std::ostream &str, int indent=0)
 
void toPrettyString (std::ostream &str, int indent=0)
 Converts a part to a human readable string. More...
 

Private Attributes

char data [9]
 Data storage for this Part. More...
 

Detailed Description

Basic class for storage of data associated with single DTSC packets, a.k.a. parts.

Member Function Documentation

char * DTSC::Part::getData ( )

Returns the data of a part.

char* DTSC::Part::getData ( )
short DTSC::Part::getDuration ( )
short DTSC::Part::getDuration ( )

Retruns the duration of a part.

long DTSC::Part::getOffset ( )

returns the offset of a part

long DTSC::Part::getOffset ( )
long DTSC::Part::getSize ( )
long DTSC::Part::getSize ( )

Returns the payloadsize of a part.

void DTSC::Part::setDuration ( short  newDuration)

Sets the duration of a part.

void DTSC::Part::setDuration ( short  newDuration)
void DTSC::Part::setOffset ( long  newOffset)
void DTSC::Part::setOffset ( long  newOffset)

Sets the offset of a part.

void DTSC::Part::setSize ( long  newSize)
void DTSC::Part::setSize ( long  newSize)

Sets the payloadsize of a part.

void DTSC::Part::toPrettyString ( std::ostream &  str,
int  indent = 0 
)
void DTSC::Part::toPrettyString ( std::ostream &  str,
int  indent = 0 
)

Converts a part to a human readable string.

Parameters
strThe stringstream to append to
indentthe amount of indentation needed

Field Documentation

char DTSC::Part::data
private

Data storage for this Part.

  • 3 bytes: MSB storage of the payload size of this packet in bytes.
  • 2 bytes: MSB storage of the duration of this packet in milliseconds.
  • 4 bytes: MSB storage of the presentation time offset of this packet in milliseconds.

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