liveMedia/MPEG2TransportStreamMultiplexor.cpp File Reference

#include "MPEG2TransportStreamMultiplexor.hh"

Include dependency graph for MPEG2TransportStreamMultiplexor.cpp:

Go to the source code of this file.

Defines

#define TRANSPORT_PACKET_SIZE   188
#define PAT_FREQUENCY   100
#define PMT_FREQUENCY   500
#define PID_TABLE_SIZE   256
#define PAT_PID   0
#define OUR_PROGRAM_NUMBER   1
#define OUR_PROGRAM_MAP_PID   0x30

Functions

static u_int32_t calculateCRC (u_int8_t *data, unsigned dataLength)

Variables

static u_int32_t const CRC32 [256]


Define Documentation

#define OUR_PROGRAM_MAP_PID   0x30

Definition at line 234 of file MPEG2TransportStreamMultiplexor.cpp.

Referenced by MPEG2TransportStreamMultiplexor::deliverPATPacket(), and MPEG2TransportStreamMultiplexor::deliverPMTPacket().

#define OUR_PROGRAM_NUMBER   1

Definition at line 233 of file MPEG2TransportStreamMultiplexor.cpp.

Referenced by MPEG2TransportStreamMultiplexor::deliverPATPacket(), and MPEG2TransportStreamMultiplexor::deliverPMTPacket().

#define PAT_FREQUENCY   100

Definition at line 26 of file MPEG2TransportStreamMultiplexor.cpp.

Referenced by MPEG2TransportStreamMultiplexor::doGetNextFrame().

#define PAT_PID   0

Definition at line 232 of file MPEG2TransportStreamMultiplexor.cpp.

#define PID_TABLE_SIZE   256

Definition at line 29 of file MPEG2TransportStreamMultiplexor.cpp.

#define PMT_FREQUENCY   500

Definition at line 27 of file MPEG2TransportStreamMultiplexor.cpp.

Referenced by MPEG2TransportStreamMultiplexor::doGetNextFrame().

#define TRANSPORT_PACKET_SIZE   188

Definition at line 24 of file MPEG2TransportStreamMultiplexor.cpp.


Function Documentation

static u_int32_t calculateCRC ( u_int8_t *  data,
unsigned  dataLength 
) [static]

Definition at line 423 of file MPEG2TransportStreamMultiplexor.cpp.

Referenced by MPEG2TransportStreamMultiplexor::deliverPATPacket(), and MPEG2TransportStreamMultiplexor::deliverPMTPacket().

00423                                                                    {
00424   u_int32_t crc = 0xFFFFFFFF;
00425 
00426   while (dataLength-- > 0) {
00427     crc = (crc<<8) ^ CRC32[(crc>>24) ^ (u_int32_t)(*data++)];
00428   }
00429 
00430   return crc;
00431 }


Variable Documentation

u_int32_t const CRC32[256] [static]

Definition at line 356 of file MPEG2TransportStreamMultiplexor.cpp.


Generated on Thu May 17 07:14:12 2012 for live by  doxygen 1.5.2