cTS2PES Class Reference

Collaboration diagram for cTS2PES:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cTS2PES (int Pid, cRingBufferLinear *ResultBuffer, int Size, uint8_t RewriteCid=0x00, uint8_t SubStreamId=0x00, cRepacker *Repacker=NULL)
 ~cTS2PES ()
int Pid (void)
void ts_to_pes (const uint8_t *Buf)
void Clear (void)

Private Member Functions

void store (uint8_t *Data, int Count)
void reset_ipack (void)
void send_ipack (void)
void write_ipack (const uint8_t *Data, int Count)
void instant_repack (const uint8_t *Buf, int Count)

Private Attributes

int pid
int size
int found
int count
uint8_t * buf
uint8_t cid
uint8_t rewriteCid
uint8_t subStreamId
int plength
uint8_t plen [2]
uint8_t flag1
uint8_t flag2
uint8_t hlength
int mpeg
uint8_t check
int mpeg1_required
int mpeg1_stuffing
bool done
cRingBufferLinearresultBuffer
int tsErrors
int ccErrors
int ccCounter
cRepackerrepacker

Static Private Attributes

static uint8_t headr [] = { 0x00, 0x00, 0x01 }


Detailed Description

Definition at line 1439 of file remux.c.


Constructor & Destructor Documentation

cTS2PES::cTS2PES ( int  Pid,
cRingBufferLinear ResultBuffer,
int  Size,
uint8_t  RewriteCid = 0x00,
uint8_t  SubStreamId = 0x00,
cRepacker Repacker = NULL 
)

Definition at line 1480 of file remux.c.

References buf, ccCounter, ccErrors, esyslog, MALLOC, pid, cRepacker::QuerySnoopSize(), repacker, reset_ipack(), resultBuffer, rewriteCid, cRepacker::SetMaxPacketSize(), cRepacker::SetSubStreamId(), size, subStreamId, and tsErrors.

Here is the call graph for this function:

cTS2PES::~cTS2PES (  ) 

Definition at line 1504 of file remux.c.

References buf, ccErrors, dsyslog, repacker, and tsErrors.


Member Function Documentation

void cTS2PES::store ( uint8_t *  Data,
int  Count 
) [private]

Definition at line 1519 of file remux.c.

References cRepacker::Put(), cRepacker::Repack(), repacker, and resultBuffer.

Referenced by send_ipack().

Here is the call graph for this function:

void cTS2PES::reset_ipack ( void   )  [private]

Definition at line 1527 of file remux.c.

References check, cid, count, done, flag1, flag2, found, hlength, mpeg, mpeg1_required, mpeg1_stuffing, and plength.

Referenced by Clear(), cTS2PES(), instant_repack(), and ts_to_pes().

void cTS2PES::send_ipack ( void   )  [private]

Definition at line 1543 of file remux.c.

References buf, cid, count, mpeg, rewriteCid, and store().

Referenced by instant_repack(), ts_to_pes(), and write_ipack().

Here is the call graph for this function:

void cTS2PES::write_ipack ( const uint8_t *  Data,
int  Count 
) [private]

Definition at line 1566 of file remux.c.

References cRepacker::BreakAt(), buf, count, headr, repacker, send_ipack(), and size.

Referenced by instant_repack().

Here is the call graph for this function:

void cTS2PES::instant_repack ( const uint8_t *  Buf,
int  Count 
) [private]

Definition at line 1618 of file remux.c.

References AUDIO_STREAM_E, AUDIO_STREAM_S, cid, done, DSM_CC_STREAM, ECM_STREAM, EMM_STREAM, esyslog, flag1, flag2, found, hlength, ISO13522_STREAM, MMAX_PLENGTH, mpeg, mpeg1_required, mpeg1_stuffing, PADDING_STREAM, plen, plength, PRIVATE_STREAM1, PRIVATE_STREAM2, PROG_STREAM_DIR, PROG_STREAM_MAP, PTS_ONLY, reset_ipack(), send_ipack(), VIDEO_STREAM_E, VIDEO_STREAM_S, and write_ipack().

Referenced by ts_to_pes().

Here is the call graph for this function:

int cTS2PES::Pid ( void   )  [inline]

Definition at line 1473 of file remux.c.

void cTS2PES::ts_to_pes ( const uint8_t *  Buf  ) 

Definition at line 1804 of file remux.c.

References ADAPT_FIELD, ccCounter, ccErrors, CONT_CNT_MASK, dsyslog, found, instant_repack(), MMAX_PLENGTH, PAY_LOAD, PAY_START, plength, reset_ipack(), send_ipack(), TS_ERROR, TS_SIZE, and tsErrors.

Referenced by cRemux::Put().

Here is the call graph for this function:

void cTS2PES::Clear ( void   ) 

Definition at line 1512 of file remux.c.

References repacker, cRepacker::Reset(), and reset_ipack().

Here is the call graph for this function:


Member Data Documentation

int cTS2PES::pid [private]

Definition at line 1441 of file remux.c.

Referenced by cTS2PES().

int cTS2PES::size [private]

Definition at line 1442 of file remux.c.

Referenced by cTS2PES(), and write_ipack().

int cTS2PES::found [private]

Definition at line 1443 of file remux.c.

Referenced by instant_repack(), reset_ipack(), and ts_to_pes().

int cTS2PES::count [private]

Definition at line 1444 of file remux.c.

Referenced by reset_ipack(), send_ipack(), and write_ipack().

uint8_t* cTS2PES::buf [private]

Definition at line 1445 of file remux.c.

Referenced by cTS2PES(), send_ipack(), write_ipack(), and ~cTS2PES().

uint8_t cTS2PES::cid [private]

Definition at line 1446 of file remux.c.

Referenced by instant_repack(), reset_ipack(), and send_ipack().

uint8_t cTS2PES::rewriteCid [private]

Definition at line 1447 of file remux.c.

Referenced by cTS2PES(), and send_ipack().

uint8_t cTS2PES::subStreamId [private]

Definition at line 1448 of file remux.c.

Referenced by cTS2PES().

int cTS2PES::plength [private]

Definition at line 1449 of file remux.c.

Referenced by instant_repack(), reset_ipack(), and ts_to_pes().

uint8_t cTS2PES::plen[2] [private]

Definition at line 1450 of file remux.c.

Referenced by instant_repack().

uint8_t cTS2PES::flag1 [private]

Definition at line 1451 of file remux.c.

Referenced by instant_repack(), and reset_ipack().

uint8_t cTS2PES::flag2 [private]

Definition at line 1452 of file remux.c.

Referenced by instant_repack(), and reset_ipack().

uint8_t cTS2PES::hlength [private]

Definition at line 1453 of file remux.c.

Referenced by instant_repack(), and reset_ipack().

int cTS2PES::mpeg [private]

Definition at line 1454 of file remux.c.

Referenced by instant_repack(), reset_ipack(), and send_ipack().

uint8_t cTS2PES::check [private]

Definition at line 1455 of file remux.c.

Referenced by reset_ipack().

int cTS2PES::mpeg1_required [private]

Definition at line 1456 of file remux.c.

Referenced by instant_repack(), and reset_ipack().

int cTS2PES::mpeg1_stuffing [private]

Definition at line 1457 of file remux.c.

Referenced by instant_repack(), and reset_ipack().

bool cTS2PES::done [private]

Definition at line 1458 of file remux.c.

Referenced by instant_repack(), and reset_ipack().

cRingBufferLinear* cTS2PES::resultBuffer [private]

Definition at line 1459 of file remux.c.

Referenced by cTS2PES(), and store().

int cTS2PES::tsErrors [private]

Definition at line 1460 of file remux.c.

Referenced by cTS2PES(), ts_to_pes(), and ~cTS2PES().

int cTS2PES::ccErrors [private]

Definition at line 1461 of file remux.c.

Referenced by cTS2PES(), ts_to_pes(), and ~cTS2PES().

int cTS2PES::ccCounter [private]

Definition at line 1462 of file remux.c.

Referenced by cTS2PES(), and ts_to_pes().

cRepacker* cTS2PES::repacker [private]

Definition at line 1463 of file remux.c.

Referenced by Clear(), cTS2PES(), store(), write_ipack(), and ~cTS2PES().

uint8_t cTS2PES::headr = { 0x00, 0x00, 0x01 } [static, private]

Definition at line 1464 of file remux.c.

Referenced by write_ipack().


The documentation for this class was generated from the following file:
Generated on Tue Nov 6 20:31:39 2007 for VDR by  doxygen 1.5.3-20071008