B2C2, Inc. - Software Development Kit |
Windows Block Diagram | |||||
Linux Block Diagram | |||||
The customer application sets the tuner and PIDs via the SDK's DirectX filter (B2C2 MPEG-2 Source Filter) and its filter interfaces. The particular SDK method for setting PIDs determines whether the stream will be treated as Audio, Video, Raw TS, or IP data. The SDK communicates with driver SkyNET.sys. When received, Audio, Video or Raw TS are directed to the customer application through the DirectX filter, while IP (Internet Protocol) data is typically directed (see IB2C2MPEG2DataCtrl3::AddIpPIDs method) to the customer's IP application via the socket using the standard IP protocol stack. Alternatively, IP data or any data/media contained within a raw transport stream may be directed through the DirectX filter to the customer application (see IB2C2MPEG2DataCtrl3::AddPIDsToPin method). |
The customer application sets the tuner and PIDs via the SDK's B2C2MPEG2Adapter (static library i.e. *.a files) and its instantiated member classes. The particular SDK method for setting PIDs determines whether the stream will be treated as Audio, Video, Raw TS, or IP data. The SDK handles all communications between the driver and the user application. It communicates with the driver skynet.o through a socket. The custom module custom.o communicates with original driver skynet.o through the DDK (Driver Development Kit). When Audio, Video, or Raw TS packets are received, skynet.o uses a callback structure to inform custom.o of the data size and location on a ring buffer for pick up. What happens next to the data depends entirely on the custom module. Unlike the Audio, Video, and Raw TS mentioned above, IP (Internet Protocol) data is sent to the customer's IP application via the socket using the standard IP protocol stack (see IB2C2MPEG2DataCtrl3::AddIpPIDs method). Alternatively, IP data or any data/media contained within a raw transport stream may be directed through to the customer application via the same callback used for Audio and Video (see IB2C2MPEG2DataCtrl3::AddTsPID method). |
Copyright © 1998-2002 B2C2, Inc. Proprietary and Confidential