description | ms.assetid | title | ms.topic | ms.date | topic_type | api_name | api_type | api_location | ms.custom | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CTransInPlaceOutputPin.EnumMediaTypes method - The EnumMediaTypes method enumerates the pin's preferred media types. This method implements the IPin::EnumMediaTypes method. |
942c6594-3053-484a-a0f7-286dcd3f7550 |
CTransInPlaceOutputPin.EnumMediaTypes method (Transip.h) |
reference |
4/26/2023 |
|
|
|
|
UpdateFrequency5 |
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The EnumMediaTypes
method enumerates the pin's preferred media types. This method implements the IPin::EnumMediaTypes method.
HRESULT EnumMediaTypes(
IEnumMediaTypes **ppEnum
);
-
ppEnum
-
Receives a pointer to the IEnumMediaTypes interface.
Returns an HRESULT value. Possible values include those shown in the following table.
Return code | Description |
---|---|
|
Success. |
|
Insufficient memory. |
|
NULL pointer. |
|
The filter's input pin is not connected. |
This method returns the IEnumMediaTypes interface from the upstream output pin.
Requirement | Value |
---|---|
Header |
|
Library |
|