IVideoMixer::SetOutputSize

From AVObjects Knowledge Base
(Difference between revisions)
Jump to: navigation, search
(Return Values)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
===Syntax===
 
===Syntax===
  
<cpp>
+
<source lang="cpp">
 
HRESULT SetOutputSize(
 
HRESULT SetOutputSize(
 
   [in] DWORD _dwWidth,
 
   [in] DWORD _dwWidth,
 
   [in] DWORD _dwHeight
 
   [in] DWORD _dwHeight
 
);
 
);
</cpp>
+
</source>
 
+
<cpp>
+
#include <iostream> // provides std::cout
+
#include <ostream>  // provides std::ostream and std::endl
+
+
int main()
+
{
+
    std::cout << "Hello, world!" << std::endl;
+
    return 0;
+
}
+
</cpp>
+
  
 
===Parameters===
 
===Parameters===
Line 38: Line 27:
 
|-
 
|-
 
|S_OK
 
|S_OK
|Success
+
|Success.
 
|-
 
|-
|E_OUTOFMEMORY
+
|S_FALSE
|Insufficient memory
+
|The size is the same.
 
|-
 
|-
|E_POINTER
+
|VFW_E_TYPE_NOT_ACCEPTED
|Null pointer argument
+
|Downstream filter does not support this resolution.
 
|-
 
|-
 
|}
 
|}

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.)

Personal tools