Microsoft DirectX 8.1 (C++) |
The MapPID method maps the packets of a specified PID to the pin.
Syntax
HRESULT MapPID(
ULONG culPID,
ULONG* pulPID,
MEDIA_SAMPLE_CONTENT MediaSampleContent
);
Parameters
culPID
[in] Variable of type ULONG that specifies the number of elements in the pulPID array.
pulPID
[in] Pointer to an array of PIDs to map. The number of elements in the array must be equal to the value of culPID.
MediaSampleContent
[in] Variable of type MEDIA_SAMPLE_CONTENT that specifies the contents of the stream.
Return Value
Returns S_OK if successful. If the method fails, it returns an HRESULT error code.
Remarks
There may be no more than 255 distinct PIDs mapped at any given time. This includes the PIDs that the Demux maps internally for its own use; this number varies depending on the transport stream. This limitation should never present a problem because applications will typically map no more than 10-12 PIDs on any given transport stream.
See Also