IVPNotify Interface


IVPNotify enables you to control the properties of a filter that uses a video port.

When to Implement

The video port (VP) overlay mixer filter (Overlay Mixer) implements this interface so you won't need to implement it in most cases. Implement this interface when you need to alter the default behavior.

When to Use

Use this interface in your application when you need to access video port properties.

Methods in Vtable Order
IUnknown methods Description
QueryInterface Retrieves pointers to supported interfaces.
AddRef Increments the reference count.
Release Decrements the reference count.
IVPNotify methods Description
RenegotiateVPParameters Initializes the connection to the decoder.
SetMode Sets the mode (such as bob or weave).
GetMode Retrieves the mode (such as bob or weave).


IVPNotify::GetMode

IVPNotify Interface

Retrieves the mode (such as bob or weave).

HRESULT GetMode(
  AMVP_MODE *pmode
  ) PURE;

Parameters
pmode
[out] Pointer to the retrieved mode. This value is a member of the AMVP_MODE enumerated data type.
Return Values

Returns an HRESULT value that depends on the implementation of the interface.

The current DirectShow implementation returns NOERROR for success or E_INVALIDARG if the argument is not valid.

Remarks

This method is not currently functional.


IVPNotify::RenegotiateVPParameters

IVPNotify Interface

Initializes the connection to the decoder.

HRESULT RenegotiateVPParameters(void) PURE;

Return Values

Returns an HRESULT value that depends on the implementation of the interface.

Remarks

The VP mixer filter negotiates various parameters (by using the IVPConfig interface) with the decoder/driver. Call this function if any of those parameters (such as the video format or size) change. Currently, the VP mixer repeats the whole connection process. You can call this method even while the graph is playing.


IVPNotify::SetMode

IVPNotify Interface

Sets the mode (such as bob or weave).

HRESULT SetMode(
  AMVP_MODE mode
  ) PURE;

Parameters
mode
[in] Specified mode. This value is a member of the AMVP_MODE enumerated data type.
Return Values

Returns an HRESULT value that depends on the implementation of the interface.

The current DirectShow™ implementation returns NOERROR for success or E_INVALIDARG if mode is not a member of the AMVP_MODE enumerated data type.

Remarks

This method is not currently functional.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.