Microsoft DirectX 8.0 |
The IMPEG2Component interface contains methods for getting and setting properties on an MPEG2 elementary stream.
IComponent Method Name Description get_Type Retrieves an IComponentType object describing the general characteristics of the Component. put_Type Sets an IComponentType object describing the general characteristics of the Component. get_DescLangID Retrieves the language for presentation of the description. put_DescLangID Sets the language for presentation of the description. get_Status Retrieves the requested or actual status of the component. put_Status Sets the requested or actual status of the component. get_Description Retrieves the description of the component. put_Description Sets the description of the component. Clone Creates a new copy of the component. IMPEG2Component Method Name Description get_PCRPID Returns the MPEG2 Packet ID for this substream's timestamps. get_PID Get the packet identifier for this substream. get_ProgramNumber Gets the program number, which provides a reverse lookup to PAT. put_PCRPID Sets the MPEG2 Packet ID for this substream's timestamps. put_PID Set the packet identifier for this substream. put_ProgramNumber Sets the program number, which provides a reverse lookup to PAT.
Returns the MPEG2 Packet ID for this Substream's Timestamps.
Syntax
HRESULT get_PCRPID( short *PCRPID );
Parameters
- PCRPID
- [out, retval] Pointer to a variable of type short that receives the value of the packet ID.
Return Value
Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.
Get the packet identifier for this substream.
Syntax
HRESULT get_PID( short *PID );
Parameters
- PID
- [out, retval] Pointer to a variable of type short that receives the packet identifier.
Return Value
Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.
Gets the program number, which provides a reverse lookup to PAT.
Syntax
HRESULT get_ProgramNumber( short *ProgramNumber );
Parameters
- ProgramNumber
- [out, retval] Pointer to a variable of type short that receives the program number.
Return Value
Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.
Sets the MPEG2 Packet ID for this substream's timestamps.
Syntax
HRESULT put_PCRPID( short PCRPID );
Parameters
- PCRPID
- [in] Variable of type short that specifies the packet ID.
Return Value
Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.
Sets the packet identifier for this substream.
Syntax
HRESULT put_PID( short PID );
Parameters
- PID
- [in] Variable of type short that specifies the packet identifier.
Return Value
Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.
Sets the program number, which provides a reverse lookup to PAT.
Syntax
HRESULT put_ProgramNumber( short ProgramNumber );
Parameters
- ProgramNumber
- [in] Variable of type short that specifies the program number.
Return Value
Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.