MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
Data Structures | Enumerations | Functions | Variables
DTSC Namespace Reference

Data Structures

class  File
 A simple wrapper class that will open a file and allow easy reading/writing of DTSC data from/to it. More...
 
class  Fragment
 Basic class for storage of data associated with fragments. More...
 
class  Ivec
 Basic class supporting initialization Vectors. More...
 
class  Key
 Basic class for storage of data associated with keyframes. More...
 
struct  livePos
 A simple structure used for ordering byte seek positions. More...
 
class  Meta
 Class for storage of meta data. More...
 
class  Packet
 DTSC::Packets can currently be three types: DTSC_HEAD packets are the "DTSC" header string, followed by 4 bytes len and packed content. More...
 
class  Part
 Basic class for storage of data associated with single DTSC packets, a.k.a. parts. More...
 
class  Scan
 This class allows scanning through raw binary format DTSC data. More...
 
struct  seekPos
 A simple structure used for ordering byte seek positions. More...
 
class  Track
 Class for storage of track data. More...
 

Enumerations

enum  datatype {
  AUDIO, VIDEO, META, PAUSEMARK,
  MODIFIEDHEADER, INVALID, AUDIO, VIDEO,
  META, PAUSEMARK, MODIFIEDHEADER, INVALID
}
 This enum holds all possible datatypes for DTSC packets. More...
 
enum  datatype {
  AUDIO, VIDEO, META, PAUSEMARK,
  MODIFIEDHEADER, INVALID, AUDIO, VIDEO,
  META, PAUSEMARK, MODIFIEDHEADER, INVALID
}
 This enum holds all possible datatypes for DTSC packets. More...
 
enum  packType {
  DTSC_INVALID, DTSC_HEAD, DTSC_V1, DTSC_V2,
  DTSC_INVALID, DTSC_HEAD, DTSC_V1, DTSC_V2
}
 
enum  packType {
  DTSC_INVALID, DTSC_HEAD, DTSC_V1, DTSC_V2,
  DTSC_INVALID, DTSC_HEAD, DTSC_V1, DTSC_V2
}
 

Functions

char * convertInt (int input)
 Converts an integer to a char*. More...
 
char * convertLongLong (long long int input)
 Converts a long long to a char*. More...
 
char * convertShort (short input)
 Converts a short to a char*. More...
 
static char hex2c (char c)
 
static char * skipDTSC (char *p, char *max)
 Helper function for skipping over whole DTSC parts. More...
 
static std::string string_escape (const std::string val)
 
static void writePointer (char *&p, const char *src, unsigned int len)
 Writes a pointer to the specified destination. More...
 
static void writePointer (char *&p, const std::string &src)
 Writes a pointer to the specified destination. More...
 

Variables

char Magic_Header [] = "DTSC"
 The magic bytes for a DTSC header. More...
 
char Magic_Packet [] = "DTPD"
 The magic bytes for a DTSC packet. More...
 
char Magic_Packet2 [] = "DTP2"
 The magic bytes for a DTSC packet version 2. More...
 

Enumeration Type Documentation

This enum holds all possible datatypes for DTSC packets.

Enumerator
AUDIO 

Stream Audio data.

VIDEO 

Stream Video data.

META 

Stream Metadata.

PAUSEMARK 

Pause marker.

MODIFIEDHEADER 

Modified header data.

INVALID 

Anything else or no data available.

AUDIO 

Stream Audio data.

VIDEO 

Stream Video data.

META 

Stream Metadata.

PAUSEMARK 

Pause marker.

MODIFIEDHEADER 

Modified header data.

INVALID 

Anything else or no data available.

This enum holds all possible datatypes for DTSC packets.

Enumerator
AUDIO 

Stream Audio data.

VIDEO 

Stream Video data.

META 

Stream Metadata.

PAUSEMARK 

Pause marker.

MODIFIEDHEADER 

Modified header data.

INVALID 

Anything else or no data available.

AUDIO 

Stream Audio data.

VIDEO 

Stream Video data.

META 

Stream Metadata.

PAUSEMARK 

Pause marker.

MODIFIEDHEADER 

Modified header data.

INVALID 

Anything else or no data available.

Enumerator
DTSC_INVALID 
DTSC_HEAD 
DTSC_V1 
DTSC_V2 
DTSC_INVALID 
DTSC_HEAD 
DTSC_V1 
DTSC_V2 
Enumerator
DTSC_INVALID 
DTSC_HEAD 
DTSC_V1 
DTSC_V2 
DTSC_INVALID 
DTSC_HEAD 
DTSC_V1 
DTSC_V2 

Function Documentation

char* DTSC::convertInt ( int  input)

Converts an integer to a char*.

char* DTSC::convertLongLong ( long long int  input)

Converts a long long to a char*.

char* DTSC::convertShort ( short  input)

Converts a short to a char*.

static char DTSC::hex2c ( char  c)
inlinestatic
Todo:
Move this function to some generic area. Duplicate from json.cpp
static char* DTSC::skipDTSC ( char *  p,
char *  max 
)
static

Helper function for skipping over whole DTSC parts.

static std::string DTSC::string_escape ( const std::string  val)
static
Todo:
Move this function to some generic area. Duplicate from json.cpp
static void DTSC::writePointer ( char *&  p,
const char *  src,
unsigned int  len 
)
static

Writes a pointer to the specified destination.

Does a memcpy and increases the destination pointer accordingly

static void DTSC::writePointer ( char *&  p,
const std::string &  src 
)
static

Writes a pointer to the specified destination.

Does a memcpy and increases the destination pointer accordingly

Variable Documentation

char DTSC::Magic_Header = "DTSC"

The magic bytes for a DTSC header.

char DTSC::Magic_Packet = "DTPD"

The magic bytes for a DTSC packet.

char DTSC::Magic_Packet2 = "DTP2"

The magic bytes for a DTSC packet version 2.