C# Class HCS_Encoder.Outputs.SmoothStream.Multiplexing.MpegTS_Demux.PES

Class to handle 2nd level packetised elementary streams (ITU-T Rec H.222.0 (2000 E) -- page 31..33)
Show file Open project: i-e-b/HLS---Smooth-Encoder

Public Properties

Property Type Description
DTS long
FrameData byte[]
HasEsRate bool
HeaderLength int
HighPriority bool
PTS long
ScrambleControl int
StreamId int

Public Methods

Method Description
PES ( byte RawPayload ) : System

Digest a PES payload into structured table. Does not handle split-payloads -- agregate payloads before calling

Private Methods

Method Description
DecodeElementaryStream ( BitSplitter bs ) : void
ReadDTS_PTS ( BitSplitter bs ) : void

Decode the bizzare PTS+DTS format

ReadExtendedHeader ( BitSplitter bs ) : void
ReadFlags ( BitSplitter bs ) : void

Reads the long list of flags in the default PES header.

ReadPTS ( BitSplitter bs ) : void

Decode the bizzare PTS format

ReadSpecialForm ( BitSplitter bs ) : void
SpecialStream ( int StreamId ) : bool

If true, the stream uses the alternate PES header form. If false, the stream uses the default PES header form.

Method Details

PES() public method

Digest a PES payload into structured table. Does not handle split-payloads -- agregate payloads before calling
public PES ( byte RawPayload ) : System
RawPayload byte
return System

Property Details

DTS public property

public long DTS
return long

FrameData public property

public byte[] FrameData
return byte[]

HasEsRate public property

public bool HasEsRate
return bool

HeaderLength public property

public int HeaderLength
return int

HighPriority public property

public bool HighPriority
return bool

PTS public property

public long PTS
return long

ScrambleControl public property

public int ScrambleControl
return int

StreamId public property

public int StreamId
return int