IVideoMixer::SetOutputSize
From AVObjects Knowledge Base
(Difference between revisions)
(→Return Values) |
|||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | The '''SetOutputSize''' method sets the output frame size. See [[IVideoMixer]] for other methods. | |
| + | |||
| + | ===Syntax=== | ||
| + | |||
| + | <source lang="cpp"> | ||
| + | HRESULT SetOutputSize( | ||
| + | [in] DWORD _dwWidth, | ||
| + | [in] DWORD _dwHeight | ||
| + | ); | ||
| + | </source> | ||
| + | |||
| + | ===Parameters=== | ||
| + | |||
| + | ''_dwWidth'' | ||
| + | |||
| + | [in] Sets the width of the output frame. | ||
| + | |||
| + | ''_dwHeight'' | ||
| + | |||
| + | [in] Sets the height of the output frame. | ||
| + | |||
| + | ===Return Values=== | ||
| + | |||
| + | {| | ||
| + | |'''Return code''' | ||
| + | |'''Description''' | ||
| + | |- | ||
| + | |S_OK | ||
| + | |Success. | ||
| + | |- | ||
| + | |S_FALSE | ||
| + | |The size is the same. | ||
| + | |- | ||
| + | |VFW_E_TYPE_NOT_ACCEPTED | ||
| + | |Downstream filter does not support this resolution. | ||
| + | |- | ||
| + | |} | ||
| + | |||
| + | ===Remarks=== | ||
| + | |||
| + | If ''_dwWidth'' and ''_dwHeight'' are zero, default output size will be set. (Default output size is the size of the maximum input frame.) | ||
Latest revision as of 14:48, 31 July 2007
The SetOutputSize method sets the output frame size. See IVideoMixer for other methods.
Contents |
Syntax
HRESULT SetOutputSize( [in] DWORD _dwWidth, [in] DWORD _dwHeight );
Parameters
_dwWidth
[in] Sets the width of the output frame.
_dwHeight
[in] Sets the height of the output frame.
Return Values
| Return code | Description |
| S_OK | Success. |
| S_FALSE | The size is the same. |
| VFW_E_TYPE_NOT_ACCEPTED | Downstream filter does not support this resolution. |
Remarks
If _dwWidth and _dwHeight are zero, default output size will be set. (Default output size is the size of the maximum input frame.)