Microsoft DirectX 8.0

IMPEG2Component Interface

The IMPEG2Component interface contains methods for getting and setting properties on an MPEG2 elementary stream.

IComponent Method NameDescription
get_TypeRetrieves an IComponentType object describing the general characteristics of the Component.
put_TypeSets an IComponentType object describing the general characteristics of the Component.
get_DescLangIDRetrieves the language for presentation of the description.
put_DescLangIDSets the language for presentation of the description.
get_StatusRetrieves the requested or actual status of the component.
put_StatusSets the requested or actual status of the component.
get_DescriptionRetrieves the description of the component.
put_DescriptionSets the description of the component.
CloneCreates a new copy of the component.
IMPEG2Component Method NameDescription
get_PCRPIDReturns the MPEG2 Packet ID for this substream's timestamps.
get_PIDGet the packet identifier for this substream.
get_ProgramNumberGets the program number, which provides a reverse lookup to PAT.
put_PCRPIDSets the MPEG2 Packet ID for this substream's timestamps.
put_PIDSet the packet identifier for this substream.
put_ProgramNumberSets the program number, which provides a reverse lookup to PAT.

IMPEG2Component::get_PCRPID

IMPEG2Component Interface

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.

IMPEG2Component::get_PID

IMPEG2Component 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.

IMPEG2Component::get_ProgramNumber

IMPEG2Component 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.

IMPEG2Component::put_PCRPID

IMPEG2Component 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.

IMPEG2Component::put_PID

IMPEG2Component 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.

IMPEG2Component::put_ProgramNumber

IMPEG2Component 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.