C# Class MediaPortal.Player.Teletext.TeletextReceiver

ファイルを表示 Open project: MediaPortal/MediaPortal-1 Class Usage Examples

Public Methods

Method Description
DecodePTS ( byte header_PTS, byte PTS_DTS_flag ) : System.UInt64
OnEvent ( int eventCode, System.UInt64 eventValue ) : void
OnPesPacket ( int streamid, byte header, int headerlen, byte data, int datalen, bool isStart, System.UInt64 presentTime ) : void

Decodes a PES packet containing a teletext packet

OnServiceInfo ( int page, byte type, byte langb1, byte langb2, byte langb3 ) : void
OnTSPacket ( IntPtr pbuf, int len ) : void

Called from TsReader when a Ts packet containing teletext data is received

TeletextReceiver ( ITeletextSource source, IDVBTeletextDecoder ttxtDecoder ) : System

Private Methods

Method Description
IntToBool ( int i ) : bool
assert ( bool ok, string msg ) : void

Method Details

DecodePTS() public method

public DecodePTS ( byte header_PTS, byte PTS_DTS_flag ) : System.UInt64
header_PTS byte
PTS_DTS_flag byte
return System.UInt64

OnEvent() public method

public OnEvent ( int eventCode, System.UInt64 eventValue ) : void
eventCode int
eventValue System.UInt64
return void

OnPesPacket() public method

Decodes a PES packet containing a teletext packet
public OnPesPacket ( int streamid, byte header, int headerlen, byte data, int datalen, bool isStart, System.UInt64 presentTime ) : void
streamid int
header byte
headerlen int
data byte
datalen int
isStart bool
presentTime System.UInt64
return void

OnServiceInfo() public method

public OnServiceInfo ( int page, byte type, byte langb1, byte langb2, byte langb3 ) : void
page int
type byte
langb1 byte
langb2 byte
langb3 byte
return void

OnTSPacket() public method

Called from TsReader when a Ts packet containing teletext data is received
public OnTSPacket ( IntPtr pbuf, int len ) : void
pbuf System.IntPtr Pointer to a byte buffer of length len
len int Length of buffer pointed to by buf
return void

TeletextReceiver() public method

public TeletextReceiver ( ITeletextSource source, IDVBTeletextDecoder ttxtDecoder ) : System
source ITeletextSource
ttxtDecoder IDVBTeletextDecoder
return System