Microsoft DirectX 8.1 (C++) |
The GetNativeVideoProps method retrieves the current video size and picture aspect ratio of the Overlay Mixer's primary stream.
Syntax
HRESULT GetNativeVideoProps(
DWORD *pdwVideoWidth,
DWORD *pdwVideoHeight,
DWORD *pdwPictAspectRatioX,
DWORD *pdwPictAspectRatioY
);
Parameters
pdwVideoWidth
[out] Address of variable that receives the width of the video.
pdwVideoHeight
[out] Address of variable that receives the height of the video.
pdwPictAspectRatioX
[out] Address of variable that receives the x-axis aspect ratio.
pdwPictAspectRatioY
[out] Address of variable that receives the y-axis aspect ratio.
Return Values
Returns an HRESULT value. Possible values include the following.
Return code | Description |
S_OK | Success. |
E_INVALIDARG | Argument is invalid. |
Remarks
The filter graph should look for the EC_VIDEO_SIZE_CHANGED event, and on its receipt call this method to adjust the aspect ratio and position.
See Also