IVideoWindow Interface (Compact 2013)
3/26/2014
This interface supports the video window properties of a video renderer. It is a dual interface (accessible through Visual Basic and Microsoft Visual C++®) that controls a generic video window. Generally, this is a video renderer that draws video into a window on the display.
The IVideoWindow interface supports both properties and methods.
Properties are more easily accessible from many Automation controllers (such as Visual Basic). However, some operations require several properties to be changed simultaneously.
For this reason, methods are provided that allow a number of related properties to be changed simultaneously.
For example, setting the window's position and size can be done by four individual put_[property name] calls or by the single method SetWindowPosition.
The methods require only that the video renderer be connected. If it is not, all interface functions return VFW_E_NOT_CONNECTED.
Properties set on a video renderer persist between successive connections and disconnections.
Applications should ensure that they reset the renderer properties before starting a presentation.
Because this interface is Automation-compatible, two aspects are important to remember about parameters accepted by these methods.
- All Boolean returns are OAFALSE (0) or OATRUE (-1), which is different from the C or C++ definition.
- All strings are defined as being of type BSTR.
All strings sent to the interface should be allocated through the Automation SysAllocString function. Similarly, all strings returned from the interface should be freed by using the Automation SysFreeString function.
When to Implement
The video renderer filter supplied with DirectShow implements this interface. It is also implemented by the filter graph manager, through a plug-in distributor, to pass method calls from the application to the video renderer filter's implementation of the interface.
Implement this interface if you are writing a replacement video renderer filter. You can use the CBaseVideoWindow class, which handles the IDispatch implementation for Automation, to help implement this interface.
When to Use
This interface is used by applications or other filters that must control the video window's properties.
Methods in Vtable Order
The following tables show the methods that appear in the Vtable beneath the standard COM methods inherited from IUnknown.
IDispatch method |
Description |
---|---|
Determines whether there is type information available for this dispinterface. |
|
Retrieves the type information for this dispinterface if GetTypeInfoCount returned successfully. |
|
Converts text names of properties and methods (including arguments) to their corresponding DISPIDs. |
|
Calls a method or accesses a property in this dispinterface if given a DISPID and any other necessary parameters. |
IVideoWindow method |
Description |
---|---|
Sets the text caption on the playback window. |
|
Retrieves the text caption on the playback window. |
|
Sets the playback window style. |
|
Retrieves the playback window style. |
|
Sets the style of the control window. |
|
Retrieves the playback window's extended style bits. |
|
Specifies if the window will be automatically shown on the first state change. |
|
Returns if the window will be automatically shown on the first state change. |
|
Sets the current window state (such as visible or minimized). |
|
Retrieves the current window state (such as visible or minimized). |
|
Informs the renderer to realize its palette in the background. |
|
Returns whenever the renderer realizes its palette in the background. |
|
Sets the visibility of the window. |
|
Retrieves the visibility of the window. |
|
Sets the x-axis coordinate for the video window. |
|
Retrieves the x-axis coordinate for the video window. |
|
Sets the width of the video window. |
|
Retrieves the width of the video window. |
|
Sets the y-axis coordinates for the video window. |
|
Retrieves the y-axis coordinates for the video window. |
|
Sets the height of the video window. |
|
Retrieves the height of the video window. |
|
Sets the owning parent window for the video playback window. |
|
Retrieves the owning parent window for the video playback window. |
|
Specifies a window to which the video window will post messages. |
|
Retrieves the window set to receive messages from the video window. |
|
Retrieves the border color for the video window. |
|
Sets the border color for the video window. |
|
Returns the full-screen rendering mode of the video renderer filter supporting this interface. |
|
Sets the full-screen mode for the video renderer filter supporting this interface. |
|
Tells the renderer filter to become the foreground window. |
|
Forwards messages that have been received by a parent window to a child window owned by a filter. |
|
Sets the video window position on the display. |
|
Retrieves the video window position. |
|
Retrieves the ideal minimum image size for the video image playback (client) area. |
|
Retrieves the ideal maximum image size for the video image playback (client) area. |
|
Returns the normal restored window dimensions. |
|
Hides the cursor. |
|
Determines if the cursor is hidden or showing. |
Requirements
Header |
dshow.h |
Library |
Strmiids.lib |