Home Units Hierarchy Routines All identifiers

Class unaMpegTSDemuxer

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaMpegTSDemuxer = class(unaObject)

Description

MPEG-TS Demuxer

Hierarchy

Overview

Methods

Public constructor Create(reader: unaBitReader_abstract);
Public destructor Destroy(); override;
Public function demux(loop, lookupSynch: bool; userData: pointer = nil): bool;
Protected procedure onDX_event(PID: TPID; EV: unaMpegTSEvent); virtual;
Protected procedure onDX_payload(PID: TPID; data: pointer; len: int; userData: pointer = nil); virtual;
Protected procedure onDX_table(PID: TPID; tableID: TPID); virtual;

Properties

Public property desc: unaMpegTSDescriptorList read f_descripors;
Public property estreams: unaMpegTS_pwnIDList read f_estreams;
Public property networks: unaMpegTS_pwnIDList read f_networks;
Protected property NID: TPID read f_NID;
Public property programs: unaMpegTS_pwnIDList read f_programs;
Protected property reader: unaBitReader_abstract read f_reader;
Public property services: unaMpegTS_pwnIDList read f_services;
Public property stat: punaMpegTSDemuxerStat read f_stat;
Public property tolerateContinuity: bool read f_tolerateC write f_tolerateC;
Protected property TSID: TPID read f_ts_id;

Description

Methods

Public constructor Create(reader: unaBitReader_abstract);

Creates a demuxer, prividing a reader for it.

Public destructor Destroy(); override;

Destroys demuxer.

Public function demux(loop, lookupSynch: bool; userData: pointer = nil): bool;

Demux another portion of raw data available in reader.

Parameters
loop
continue demuxing until no more bytes are available in reader
lookupSynch
True = read stream until new sych byte is found, when out of packet's synch; False = fail on first bad synch found
userData
any data to be passed to onDX_payload
Returns

True if demuxing of at least one packet was successfull

Protected procedure onDX_event(PID: TPID; EV: unaMpegTSEvent); virtual;

Override to get events as they appear in stream.

Protected procedure onDX_payload(PID: TPID; data: pointer; len: int; userData: pointer = nil); virtual;

Override to get demuxed payload.

Protected procedure onDX_table(PID: TPID; tableID: TPID); virtual;

Override to get notified about tables.

Properties

Public property desc: unaMpegTSDescriptorList read f_descripors;

Global TS descriptors, indexed by tags

Public property estreams: unaMpegTS_pwnIDList read f_estreams;

Elementary streams, indexed by PIDs

Public property networks: unaMpegTS_pwnIDList read f_networks;

Networks, indexed by nid

Protected property NID: TPID read f_NID;

NID

Public property programs: unaMpegTS_pwnIDList read f_programs;

Programs, indexed by program numbers

Protected property reader: unaBitReader_abstract read f_reader;

Bit reader used by demuxer

Public property services: unaMpegTS_pwnIDList read f_services;

Services, indexed by service id

Public property stat: punaMpegTSDemuxerStat read f_stat;

Some statistic

Public property tolerateContinuity: bool read f_tolerateC write f_tolerateC;

Tolerate minor continuity errors

Protected property TSID: TPID read f_ts_id;

Transport Stream ID

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09